Skip to content

Class TempLat::ListBinaryOperator

template <typename R, typename T>

ClassList > TempLat > ListBinaryOperator

Wrapper for algebra with FieldCollection . Here we define the base methods for checking and everything. Can use this algebra to implement matrix and vector algebra! IDEA: statically type MATRIXTYPE type and template methods of the type AddMatrixTypes<R,T>::type.More...

  • #include <listbinaryoperator.h>

Inherited by the following classes: TempLat::ListAddition, TempLat::ListDivision, TempLat::ListMultiplication, TempLat::ListPower, TempLat::ListSubtraction

Public Types

Type Name
typedef GetComponent Getter

Public Functions

Type Name
ListBinaryOperator (const R & pR, const T & pT)
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 = 0
Override this method in your derived class, to have an easy implementation of your toString method.
void postGet ()
void preGet ()
std::string toString (Tag< N > i) const
If your descending class implements operatorString() and your operator is of the type "a OP b" (where OP is * or whatever), this toString method does all the work for you.

Public Static Functions

Type Name
consteval size_t getNDim ()

Protected Attributes

Type Name
R mR
T mT

Detailed Description

Unit test: ctest -R test-binaryoperator

Public Types Documentation

typedef Getter

using TempLat::ListBinaryOperator< R, T >::Getter =  GetComponent;

Public Functions Documentation

function ListBinaryOperator

inline TempLat::ListBinaryOperator::ListBinaryOperator (
    const R & pR,
    const T & pT
) 

function confirmGhostsUpToDate

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

function confirmSpace

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

function getToolBox

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

function operatorString

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

virtual std::string TempLat::ListBinaryOperator::operatorString () const = 0


function postGet

inline void TempLat::ListBinaryOperator::postGet () 

function preGet

inline void TempLat::ListBinaryOperator::preGet () 

function toString

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

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


Public Static Functions Documentation

function getNDim

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

Protected Attributes Documentation

variable mR

R TempLat::ListBinaryOperator< R, T >::mR;

variable mT

T TempLat::ListBinaryOperator< R, T >::mT;


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