Skip to content

Class TempLat::ListAbsoluteValue

template <typename R>

ClassList > TempLat > ListAbsoluteValue

A class which adds two getters. Holds the expression, only evaluates for a single element when you call Multiply::get(pIterCoords). More...

  • #include <listabsolutevalue.h>

Inherits the following classes: TempLat::ListUnaryOperator

Public Types inherited from TempLat::ListUnaryOperator

See TempLat::ListUnaryOperator

Type Name
typedef GetComponent Getter

Public Static Attributes

Type Name
constexpr size_t size = [**tuple\_size**](structTempLat_1_1tuple__size.md)&lt;R&gt;::value

Public Functions

Type Name
ListAbsoluteValue (const R & pR)
void doWeNeedGhosts (Tag< N > i)
auto getComp (Tag< N > t)
virtual std::string operatorString () override const
Override this method in your derived class, to have an easy implementation of your toString method.

Public Functions inherited from TempLat::ListUnaryOperator

See TempLat::ListUnaryOperator

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 inherited from TempLat::ListUnaryOperator

See TempLat::ListUnaryOperator

Type Name
consteval size_t getNDim ()

Protected Attributes inherited from TempLat::ListUnaryOperator

See TempLat::ListUnaryOperator

Type Name
R mR

Detailed Description

Unit test: ctest -R test-multiply

Public Static Attributes Documentation

variable size

constexpr size_t TempLat::ListAbsoluteValue< R >::size;

Public Functions Documentation

function ListAbsoluteValue

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

function doWeNeedGhosts

template<int N>
inline void TempLat::ListAbsoluteValue::doWeNeedGhosts (
    Tag < N > i
) 

function getComp

template<int N>
inline auto TempLat::ListAbsoluteValue::getComp (
    Tag < N > t
) 

function operatorString

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

inline virtual std::string TempLat::ListAbsoluteValue::operatorString () override const

Implements TempLat::ListUnaryOperator::operatorString



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