OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
olb::BlockF2D< T > Class Template Reference

represents all functors that operate on a cuboid in general, mother class of BlockLatticeF, .. More...

#include <blockBaseF2D.h>

+ Inheritance diagram for olb::BlockF2D< T >:
+ Collaboration diagram for olb::BlockF2D< T >:

Public Member Functions

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
 
virtual bool operator() (T output[], const int input[])=0
 has to be implemented for 'every' derived class
 
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 Member Functions

 BlockF2D (BlockStructureD< 2 > &blockStructure, int targetDim)
 
 BlockF2D (int targetDim)
 
- Protected Member Functions inherited from olb::GenericF< T, int >
 GenericF (int targetDim, int sourceDim)
 

Protected Attributes

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)
 

Detailed Description

template<typename T>
class olb::BlockF2D< T >

represents all functors that operate on a cuboid in general, mother class of BlockLatticeF, ..

Definition at line 47 of file blockBaseF2D.h.

Constructor & Destructor Documentation

◆ BlockF2D() [1/2]

template<typename T >
olb::BlockF2D< T >::BlockF2D ( BlockStructureD< 2 > & blockStructure,
int targetDim )
protected

Definition at line 33 of file blockBaseF2D.hh.

34 : GenericF<T,int>(targetDim,2), _blockStructure(&blockStructure) { }
BlockStructureD< 2 > * _blockStructure

◆ BlockF2D() [2/2]

template<typename T >
olb::BlockF2D< T >::BlockF2D ( int targetDim)
protected

Definition at line 38 of file blockBaseF2D.hh.

39 : GenericF<T,int>(targetDim,2), _blockStructure(nullptr) { }

Member Function Documentation

◆ getBlockStructure()

template<typename T >
BlockStructureD< 2 > & olb::BlockF2D< T >::getBlockStructure ( )
virtual

virtual destructor for defined behaviour

Reimplemented in olb::BlockReduction2D1D< T >, olb::BlockReduction2D2D< T >, and olb::BlockReduction3D2D< T >.

Definition at line 42 of file blockBaseF2D.hh.

43{
44 return *_blockStructure;
45}
+ Here is the caller graph for this function:

◆ operator*()

template<typename T >
BlockF2D< T > & olb::BlockF2D< T >::operator* ( BlockF2D< T > & rhs)

Definition at line 133 of file blockCalcF2D.hh.

134{
135 auto tmp = std::make_shared< BlockCalcMultiplication2D<T> >(*this,rhs);
136 this->_ptrCalcC = tmp;
137 return *tmp;
138}
std::shared_ptr< GenericF< T, int > > _ptrCalcC
memory management, frees resouces (calcClass)
Definition genericF.h:71

◆ operator+()

template<typename T >
BlockF2D< T > & olb::BlockF2D< T >::operator+ ( BlockF2D< T > & rhs)

Definition at line 117 of file blockCalcF2D.hh.

118{
119 auto tmp = std::make_shared< BlockCalcPlus2D<T> >(*this,rhs);
120 this->_ptrCalcC = tmp;
121 return *tmp;
122}

◆ operator-()

template<typename T >
BlockF2D< T > & olb::BlockF2D< T >::operator- ( BlockF2D< T > & rhs)

Definition at line 125 of file blockCalcF2D.hh.

126{
127 auto tmp = std::make_shared< BlockCalcMinus2D<T> >(*this,rhs);
128 this->_ptrCalcC = tmp;
129 return *tmp;
130}

◆ operator/()

template<typename T >
BlockF2D< T > & olb::BlockF2D< T >::operator/ ( BlockF2D< T > & rhs)

Definition at line 141 of file blockCalcF2D.hh.

142{
143 auto tmp = std::make_shared< BlockCalcDivision2D<T> >(*this,rhs);
144 this->_ptrCalcC = tmp;
145 return *tmp;
146}

◆ setBlockStructure()

template<typename T >
void olb::BlockF2D< T >::setBlockStructure ( BlockStructureD< 2 > * blockStructure)

Definition at line 49 of file blockBaseF2D.hh.

50{
51 _blockStructure = blockStructure;
52}

Member Data Documentation

◆ _blockStructure

template<typename T >
BlockStructureD<2>* olb::BlockF2D< T >::_blockStructure
protected

Definition at line 51 of file blockBaseF2D.h.


The documentation for this class was generated from the following files: