Skip to content

Class TempLat::ListUnaryOperator

template <typename R>

ClassList > TempLat > ListUnaryOperator

A class which. More...

  • #include <listunaryoperator.h>

Inherited by the following classes: TempLat::ListAbsoluteValue, TempLat::ListComplexConjugate, TempLat::ListExponential, TempLat::ListLaplacian, TempLat::ListLog, TempLat::ListPowerN, TempLat::ListShifter, TempLat::ListShifterByOne, TempLat::ListUnaryMinus

Public Types

Type Name
typedef GetComponent Getter

Public Functions

Type Name
ListUnaryOperator (const R & pR)
device::Idx confirmGhostsUpToDate (Tag< N > i) const
void confirmSpace (Tag< N > i, const LayoutStruct< NDim > & newLayout, const SpaceStateType & spaceType) const
auto getToolBox () const
virtual std::string operatorString () const
Override this method in your derived class, to have an easy implementation of your toString method.
std::string toString (Tag< N > i) const
If your descending class implements operatorString() and your operator is of the type "OP b" (where OP is * or whatever), this toString method does all the work for you, only adding parentheses if b contains spaces.

Public Static Functions

Type Name
consteval size_t getNDim ()

Protected Attributes

Type Name
R mR

Detailed Description

Unit test: ctest -R test-listunaryoperator

Public Types Documentation

typedef Getter

using TempLat::ListUnaryOperator< R >::Getter =  GetComponent;

Public Functions Documentation

function ListUnaryOperator

inline TempLat::ListUnaryOperator::ListUnaryOperator (
    const R & pR
) 

function confirmGhostsUpToDate

template<int N>
inline device::Idx TempLat::ListUnaryOperator::confirmGhostsUpToDate (
    Tag < N > i
) const

function confirmSpace

template<int N, size_t NDim>
inline void TempLat::ListUnaryOperator::confirmSpace (
    Tag < N > i,
    const LayoutStruct < NDim > & newLayout,
    const SpaceStateType & spaceType
) const

function getToolBox

inline auto TempLat::ListUnaryOperator::getToolBox () const

For measurement objects.


function operatorString

Override this method in your derived class, to have an easy implementation of your toString method.

inline virtual std::string TempLat::ListUnaryOperator::operatorString () const


function toString

If your descending class implements operatorString() and your operator is of the type "OP b" (where OP is * or whatever), this toString method does all the work for you, only adding parentheses if b contains spaces.

template<int N>
inline std::string TempLat::ListUnaryOperator::toString (
    Tag < N > i
) const


Public Static Functions Documentation

function getNDim

static inline consteval size_t TempLat::ListUnaryOperator::getNDim () 

Protected Attributes Documentation

variable mR

R TempLat::ListUnaryOperator< R >::mR;


The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/lattice/algebra/listoperators/listunaryoperator.h