Skip to content

Class TempLat::ExpressionShifterByOne

template <typename R, int _N>

ClassList > TempLat > ExpressionShifterByOne

Inherits the following classes: TempLat::UnaryOperator

Public Static Attributes

Type Name
constexpr int N = \_N &gt; 0 ? \_N : -\_N
constexpr int dir = \_N &gt; 0 ? 1 : -1

Public Functions

Type Name
ExpressionShifterByOne (const R & pR)
void doWeNeedGhosts () const
DEVICE_INLINE_FUNCTION auto eval (const IDX &... idx) const
std::string toString () const

Public Functions inherited from TempLat::UnaryOperator

See TempLat::UnaryOperator

Type Name
UnaryOperator (const R & pR)
device::Idx confirmGhostsUpToDate () const
void confirmSpace (const LayoutStruct< NDim > & newLayout, const SpaceStateType & spaceType) const
void doWeNeedGhosts () const
auto getDx () const
auto getKIR () 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.
void postGet ()
void preGet ()
std::string toString () 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::UnaryOperator

See TempLat::UnaryOperator

Type Name
consteval size_t getNDim ()

Protected Attributes inherited from TempLat::UnaryOperator

See TempLat::UnaryOperator

Type Name
R mR

Public Static Attributes Documentation

variable N

constexpr int TempLat::ExpressionShifterByOne< R, _N >::N;

variable dir

constexpr int TempLat::ExpressionShifterByOne< R, _N >::dir;

Public Functions Documentation

function ExpressionShifterByOne

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

function doWeNeedGhosts

inline void TempLat::ExpressionShifterByOne::doWeNeedGhosts () const

function eval

template<typename... IDX>
inline DEVICE_INLINE_FUNCTION auto TempLat::ExpressionShifterByOne::eval (
    const IDX &... idx
) const

function toString

inline std::string TempLat::ExpressionShifterByOne::toString () const


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