OpenLB 1.7
|
Block level arithmetic operations for BlockF2D functors. More...
#include <blockCalcF2D.h>
Public Member Functions | |
BlockCalcF2D (BlockF2D< T > &f, BlockF2D< T > &g) | |
BlockCalcF2D (BlockF2D< T > &f, GenericF< T, int > &g, int glob) | |
BlockCalcF2D (GenericF< T, int > &f, int glob, BlockF2D< T > &g) | |
bool | operator() (T output[], const int input[]) override |
has to be implemented for 'every' derived class | |
Public Member Functions inherited from olb::BlockF2D< T > | |
virtual BlockStructureD< 2 > & | getBlockStructure () |
virtual destructor for defined behaviour | |
void | setBlockStructure (BlockStructureD< 2 > *blockStructure) |
BlockF2D< T > & | operator- (BlockF2D< T > &rhs) |
BlockF2D< T > & | operator+ (BlockF2D< T > &rhs) |
BlockF2D< T > & | operator* (BlockF2D< T > &rhs) |
BlockF2D< T > & | operator/ (BlockF2D< T > &rhs) |
Public Member Functions inherited from olb::GenericF< T, int > | |
virtual | ~GenericF ()=default |
int | getSourceDim () const |
read only access to member variable _m | |
int | getTargetDim () const |
read only access to member variable _n | |
std::string & | getName () |
read and write access to name | |
std::string const & | getName () const |
read only access to name | |
bool | operator() (T output[]) |
wrapper that call the pure virtual operator() (T output[], const S input[]) from above | |
bool | operator() (T output[], int input0) |
bool | operator() (T output[], int input0, int input1) |
bool | operator() (T output[], int input0, int input1, int input2) |
bool | operator() (T output[], int input0, int input1, int input2, int input3) |
Protected Attributes | |
GenericF< T, int > & | _f |
GenericF< T, int > & | _g |
const int | _glob |
Optional global cuboid ID for mixed super / block usage. | |
const bool | _fIsBlock |
const bool | _gIsBlock |
Protected Attributes inherited from olb::BlockF2D< T > | |
BlockStructureD< 2 > * | _blockStructure |
Additional Inherited Members | |
Public Types inherited from olb::GenericF< T, int > | |
using | targetType |
using | sourceType |
Public Attributes inherited from olb::GenericF< T, int > | |
std::shared_ptr< GenericF< T, int > > | _ptrCalcC |
memory management, frees resouces (calcClass) | |
Protected Member Functions inherited from olb::BlockF2D< T > | |
BlockF2D (BlockStructureD< 2 > &blockStructure, int targetDim) | |
BlockF2D (int targetDim) | |
Protected Member Functions inherited from olb::GenericF< T, int > | |
GenericF (int targetDim, int sourceDim) | |
Block level arithmetic operations for BlockF2D functors.
F | Function object defining the arithmetic operation to be perfomed e.g. std::minus for substraction |
Functors BlockCalcF2D<T,F>::_f and BlockCalcF2D<T,F>::_f are stored as GenericF<T,int> references to support arithmetic operations between block and super functors. For details see BlockCalcF2D<T,F>::operator().
Definition at line 49 of file blockCalcF2D.h.
olb::BlockCalcF2D< T, F >::BlockCalcF2D | ( | BlockF2D< T > & | f, |
BlockF2D< T > & | g ) |
Definition at line 33 of file blockCalcF2D.hh.
References olb::GenericF< T, S >::_ptrCalcC, olb::GenericF< T, S >::getName(), and olb::GenericF< T, int >::getName().
olb::BlockCalcF2D< T, F >::BlockCalcF2D | ( | BlockF2D< T > & | f, |
GenericF< T, int > & | g, | ||
int | glob ) |
f | Block functor |
g | Generic functor to be restricted to block level |
glob | Global cuboid ID to be used to prefix calls to g |
Definition at line 45 of file blockCalcF2D.hh.
References olb::GenericF< T, S >::_ptrCalcC, olb::GenericF< T, S >::getName(), and olb::GenericF< T, int >::getName().
olb::BlockCalcF2D< T, F >::BlockCalcF2D | ( | GenericF< T, int > & | f, |
int | glob, | ||
BlockF2D< T > & | g ) |
f | Generic functor to be restricted to block level |
glob | Global cuboid ID to be used to prefix calls to f |
g | Block functor |
Definition at line 57 of file blockCalcF2D.hh.
|
overridevirtual |
has to be implemented for 'every' derived class
Implements olb::GenericF< T, int >.
Definition at line 69 of file blockCalcF2D.hh.
|
protected |
Definition at line 51 of file blockCalcF2D.h.
|
protected |
Definition at line 56 of file blockCalcF2D.h.
|
protected |
Definition at line 52 of file blockCalcF2D.h.
|
protected |
Definition at line 57 of file blockCalcF2D.h.
|
protected |
Optional global cuboid ID for mixed super / block usage.
Definition at line 55 of file blockCalcF2D.h.