OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
olb::ContainerF< T, DESCRIPTOR, FIELD_ARRAY_TYPE, W > Class Template Reference

ContainerF is a NON-PARALLELIZED (no block/super differentiation) functor intended to extract data from Container objects as used e.g. More...

#include <groupedFieldF.h>

+ Inheritance diagram for olb::ContainerF< T, DESCRIPTOR, FIELD_ARRAY_TYPE, W >:
+ Collaboration diagram for olb::ContainerF< T, DESCRIPTOR, FIELD_ARRAY_TYPE, W >:

Public Member Functions

 ContainerF (Container< T, DESCRIPTOR, FIELD_ARRAY_TYPE > &container, int targetDim)
 
Container< T, DESCRIPTOR, FIELD_ARRAY_TYPE > & getContainer ()
 
int getContainerSize () const
 
bool operator() (W output[], const int input[])
 
- 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)
 

Public Attributes

Container< T, DESCRIPTOR, FIELD_ARRAY_TYPE > & _container
 
- Public Attributes inherited from olb::GenericF< T, S >
std::shared_ptr< GenericF< T, S > > _ptrCalcC
 memory management, frees resouces (calcClass)
 

Static Public Attributes

static constexpr bool isSuper = false
 
static constexpr unsigned d = DESCRIPTOR::d
 

Additional Inherited Members

- Public Types inherited from olb::GenericF< T, S >
using targetType = T
 
using sourceType = S
 
- Protected Member Functions inherited from olb::GenericF< T, S >
 GenericF (int targetDim, int sourceDim)
 

Detailed Description

template<typename T, typename DESCRIPTOR, typename FIELD_ARRAY_TYPE, typename W = T>
class olb::ContainerF< T, DESCRIPTOR, FIELD_ARRAY_TYPE, W >

ContainerF is a NON-PARALLELIZED (no block/super differentiation) functor intended to extract data from Container objects as used e.g.

in the particle framework.

Definition at line 38 of file groupedFieldF.h.

Constructor & Destructor Documentation

◆ ContainerF()

template<typename T , typename DESCRIPTOR , typename FIELD_ARRAY_TYPE , typename W >
olb::ContainerF< T, DESCRIPTOR, FIELD_ARRAY_TYPE, W >::ContainerF ( Container< T, DESCRIPTOR, FIELD_ARRAY_TYPE > & container,
int targetDim )

Definition at line 33 of file groupedFieldF.hh.

35 : GenericF<W,int>( targetDim, 1), _container(container)
36{
37 this->getName() = "ContainerF";
38}
Container< T, DESCRIPTOR, FIELD_ARRAY_TYPE > & _container
std::string & getName()
read and write access to name
Definition genericF.hh:51

References olb::GenericF< T, S >::getName().

+ Here is the call graph for this function:

Member Function Documentation

◆ getContainer()

template<typename T , typename DESCRIPTOR , typename FIELD_ARRAY_TYPE , typename W >
Container< T, DESCRIPTOR, FIELD_ARRAY_TYPE > & olb::ContainerF< T, DESCRIPTOR, FIELD_ARRAY_TYPE, W >::getContainer ( )
Returns
container

Definition at line 42 of file groupedFieldF.hh.

43{
44 return _container;
45}

◆ getContainerSize()

template<typename T , typename DESCRIPTOR , typename FIELD_ARRAY_TYPE , typename W >
int olb::ContainerF< T, DESCRIPTOR, FIELD_ARRAY_TYPE, W >::getContainerSize ( ) const
Returns
size of container

Definition at line 48 of file groupedFieldF.hh.

49{
50 OLB_ASSERT(_container.size() < INT32_MAX,
51 "cast from std::size_t to int unsafe");
52 return _container.size();
53}
#define OLB_ASSERT(COND, MESSAGE)
Definition olbDebug.h:45

◆ operator()()

template<typename T , typename DESCRIPTOR , typename FIELD_ARRAY_TYPE , typename W >
bool olb::ContainerF< T, DESCRIPTOR, FIELD_ARRAY_TYPE, W >::operator() ( W output[],
const int input[] )

Definition at line 56 of file groupedFieldF.hh.

57{
58 return true; //TODO: add Error handling using true/false
59}

Member Data Documentation

◆ _container

template<typename T , typename DESCRIPTOR , typename FIELD_ARRAY_TYPE , typename W = T>
Container<T,DESCRIPTOR,FIELD_ARRAY_TYPE>& olb::ContainerF< T, DESCRIPTOR, FIELD_ARRAY_TYPE, W >::_container

Definition at line 42 of file groupedFieldF.h.

◆ d

template<typename T , typename DESCRIPTOR , typename FIELD_ARRAY_TYPE , typename W = T>
constexpr unsigned olb::ContainerF< T, DESCRIPTOR, FIELD_ARRAY_TYPE, W >::d = DESCRIPTOR::d
staticconstexpr

Definition at line 46 of file groupedFieldF.h.

◆ isSuper

template<typename T , typename DESCRIPTOR , typename FIELD_ARRAY_TYPE , typename W = T>
constexpr bool olb::ContainerF< T, DESCRIPTOR, FIELD_ARRAY_TYPE, W >::isSuper = false
staticconstexpr

Definition at line 45 of file groupedFieldF.h.


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