OpenLB 1.7
|
Block level arithmetic operations for BlockF3D functors. More...
#include <blockCalcF3D.h>
Public Member Functions | |
BlockCalcF3D (BlockF3D< T > &f, BlockF3D< T > &g) | |
BlockCalcF3D (BlockF3D< T > &f, GenericF< T, int > &g, int glob) | |
BlockCalcF3D (GenericF< T, int > &f, int glob, BlockF3D< T > &g) | |
bool | operator() (T output[], const int input[]) override |
has to be implemented for 'every' derived class | |
Public Member Functions inherited from olb::BlockF3D< T > | |
~BlockF3D () override | |
virtual destructor for defined behaviour | |
virtual BlockStructureD< 3 > & | getBlockStructure () const |
BlockF3D< T > & | operator- (BlockF3D< T > &rhs) |
BlockF3D< T > & | operator+ (BlockF3D< T > &rhs) |
BlockF3D< T > & | operator* (BlockF3D< T > &rhs) |
BlockF3D< T > & | operator/ (BlockF3D< 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::BlockF3D< T > | |
BlockStructureD< 3 > & | _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::BlockF3D< T > | |
BlockF3D (BlockStructureD< 3 > &blockStructure, int targetDim) | |
Protected Member Functions inherited from olb::GenericF< T, int > | |
GenericF (int targetDim, int sourceDim) | |
Block level arithmetic operations for BlockF3D functors.
F | Function object defining the arithmetic operation to be perfomed e.g. std::minus for substraction |
Functors BlockCalcF3D<T,F>::_f and BlockCalcF3D<T,F>::_f are stored as GenericF<T,int> references to support arithmetic operations between block and super functors. For details see BlockCalcF3D<T,F>::operator().
Definition at line 49 of file blockCalcF3D.h.
olb::BlockCalcF3D< T, F >::BlockCalcF3D | ( | BlockF3D< T > & | f, |
BlockF3D< T > & | g ) |
Definition at line 34 of file blockCalcF3D.hh.
References olb::GenericF< T, S >::_ptrCalcC, olb::GenericF< T, S >::getName(), and olb::GenericF< T, int >::getName().
olb::BlockCalcF3D< T, F >::BlockCalcF3D | ( | BlockF3D< 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 46 of file blockCalcF3D.hh.
References olb::GenericF< T, S >::_ptrCalcC, olb::GenericF< T, S >::getName(), and olb::GenericF< T, int >::getName().
olb::BlockCalcF3D< T, F >::BlockCalcF3D | ( | GenericF< T, int > & | f, |
int | glob, | ||
BlockF3D< 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 58 of file blockCalcF3D.hh.
|
overridevirtual |
has to be implemented for 'every' derived class
Implements olb::GenericF< T, int >.
Definition at line 70 of file blockCalcF3D.hh.
|
protected |
Definition at line 51 of file blockCalcF3D.h.
|
protected |
Definition at line 56 of file blockCalcF3D.h.
|
protected |
Definition at line 52 of file blockCalcF3D.h.
|
protected |
Definition at line 57 of file blockCalcF3D.h.
|
protected |
Optional global cuboid ID for mixed super / block usage.
Definition at line 55 of file blockCalcF3D.h.