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

BlockDataF3D can store data of any BlockFunctor3D. More...

#include <blockBaseF3D.h>

+ Inheritance diagram for olb::BlockDataF3D< T, BaseType >:
+ Collaboration diagram for olb::BlockDataF3D< T, BaseType >:

Public Member Functions

 BlockDataF3D (BlockData< 3, T, BaseType > &blockData)
 Constructor.
 
 BlockDataF3D (BlockF3D< BaseType > &f)
 to store functor data, constuctor creates _blockData with functor data
 
BlockData< 3, T, BaseType > & getBlockData ()
 returns _blockData
 
bool operator() (BaseType output[], const int input[]) override
 access to _blockData via its get()
 
- Public Member Functions inherited from olb::BlockF3D< BaseType >
 ~BlockF3D () override
 virtual destructor for defined behaviour
 
virtual BlockStructureD< 3 > & getBlockStructure () const
 
BlockF3D< BaseType > & operator- (BlockF3D< BaseType > &rhs)
 
BlockF3D< BaseType > & operator+ (BlockF3D< BaseType > &rhs)
 
BlockF3D< BaseType > & operator* (BlockF3D< BaseType > &rhs)
 
BlockF3D< BaseType > & operator/ (BlockF3D< BaseType > &rhs)
 
- Public Member Functions inherited from olb::GenericF< T, S >
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 S 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[], S input0)
 
bool operator() (T output[], S input0, S input1)
 
bool operator() (T output[], S input0, S input1, S input2)
 
bool operator() (T output[], S input0, S input1, S input2, S input3)
 

Protected Member Functions

 BlockDataF3D (int nx, int ny, int nz, int size=1)
 
- Protected Member Functions inherited from olb::BlockF3D< BaseType >
 BlockF3D (BlockStructureD< 3 > &blockStructure, int targetDim)
 
- Protected Member Functions inherited from olb::GenericF< T, S >
 GenericF (int targetDim, int sourceDim)
 

Protected Attributes

std::unique_ptr< BlockData< 3, T, BaseType > > _blockDataStorage
 
BlockData< 3, T, BaseType > & _blockData
 
- Protected Attributes inherited from olb::BlockF3D< BaseType >
BlockStructureD< 3 > & _blockStructure
 

Additional Inherited Members

- Public Types inherited from olb::GenericF< T, S >
using targetType = T
 
using sourceType = S
 
- Public Attributes inherited from olb::GenericF< T, S >
std::shared_ptr< GenericF< T, S > > _ptrCalcC
 memory management, frees resouces (calcClass)
 

Detailed Description

template<typename T, typename BaseType>
class olb::BlockDataF3D< T, BaseType >

BlockDataF3D can store data of any BlockFunctor3D.

Definition at line 65 of file blockBaseF3D.h.

Constructor & Destructor Documentation

◆ BlockDataF3D() [1/3]

template<typename T , typename BaseType >
olb::BlockDataF3D< T, BaseType >::BlockDataF3D ( int nx,
int ny,
int nz,
int size = 1 )
protected

Definition at line 56 of file blockBaseF3D.hh.

59 : BlockF3D<T>(*(new BlockData<3,T,BaseType>({{nx, ny, nz}, 0}, size)), size),
60 _blockDataStorage(static_cast<BlockData<3,T,BaseType>*>(&(this->getBlockStructure()))),
62{ }
BlockData< 3, T, BaseType > & _blockData
std::unique_ptr< BlockData< 3, T, BaseType > > _blockDataStorage
virtual BlockStructureD< 3 > & getBlockStructure() const

◆ BlockDataF3D() [2/3]

template<typename T , typename BaseType >
olb::BlockDataF3D< T, BaseType >::BlockDataF3D ( BlockData< 3, T, BaseType > & blockData)

Constructor.

Definition at line 43 of file blockBaseF3D.hh.

44 : BlockF3D<T>(blockData, blockData.getSize()),
45 _blockData(blockData)
46{ }
unsigned getSize() const
Definition blockData.hh:118

◆ BlockDataF3D() [3/3]

template<typename T , typename BaseType >
olb::BlockDataF3D< T, BaseType >::BlockDataF3D ( BlockF3D< BaseType > & f)

to store functor data, constuctor creates _blockData with functor data

Definition at line 49 of file blockBaseF3D.hh.

50 : BlockF3D<T>(f.getBlockStructure(), f.getTargetDim()),
51 _blockDataStorage(new BlockData<3,T,BaseType>(f)),
53{ }
int getTargetDim() const
read only access to member variable _n
Definition genericF.hh:45

Member Function Documentation

◆ getBlockData()

template<typename T , typename BaseType >
BlockData< 3, T, BaseType > & olb::BlockDataF3D< T, BaseType >::getBlockData ( )

returns _blockData

Definition at line 65 of file blockBaseF3D.hh.

66{
67 return _blockData;
68}

◆ operator()()

template<typename T , typename BaseType >
bool olb::BlockDataF3D< T, BaseType >::operator() ( BaseType output[],
const int input[] )
override

access to _blockData via its get()

Definition at line 71 of file blockBaseF3D.hh.

72{
73 for (int iDim = 0; iDim < this->getTargetDim(); ++iDim) {
74 output[iDim] = _blockData.get(input, iDim);
75 }
76 return true;
77}
U & get(std::size_t iCell, int iD=0)
Definition blockData.hh:94

Member Data Documentation

◆ _blockData

template<typename T , typename BaseType >
BlockData<3,T,BaseType>& olb::BlockDataF3D< T, BaseType >::_blockData
protected

Definition at line 70 of file blockBaseF3D.h.

◆ _blockDataStorage

template<typename T , typename BaseType >
std::unique_ptr<BlockData<3,T,BaseType> > olb::BlockDataF3D< T, BaseType >::_blockDataStorage
protected

Definition at line 69 of file blockBaseF3D.h.


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