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

perform explicit typecast from output type W2 to W More...

#include <superBaseF3D.h>

+ Inheritance diagram for olb::SuperTypecastF3D< T, W, W2 >:
+ Collaboration diagram for olb::SuperTypecastF3D< T, W, W2 >:

Public Member Functions

 SuperTypecastF3D (FunctorPtr< SuperF3D< T, W2 > > &&f)
 
bool operator() (W output[], const int input[])
 has to be implemented for 'every' derived class
 
- Public Member Functions inherited from olb::SuperF3D< T, W >
SuperF3D< T, W > & operator- (SuperF3D< T, W > &rhs)
 
SuperF3D< T, W > & operator+ (SuperF3D< T, W > &rhs)
 
SuperF3D< T, W > & operator* (SuperF3D< T, W > &rhs)
 
SuperF3D< T, W > & operator/ (SuperF3D< T, W > &rhs)
 
SuperStructure< T, 3 > & getSuperStructure ()
 
int getBlockFSize () const
 
BlockF3D< W > & getBlockF (int iCloc)
 
- Public Member Functions inherited from olb::GenericF< W, 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() (W output[])
 wrapper that call the pure virtual operator() (T output[], const S input[]) from above
 
bool operator() (W output[], int input0)
 
bool operator() (W output[], int input0, int input1)
 
bool operator() (W output[], int input0, int input1, int input2)
 
bool operator() (W output[], int input0, int input1, int input2, int input3)
 

Protected Attributes

FunctorPtr< SuperF3D< T, W2 > > _f
 
- Protected Attributes inherited from olb::SuperF3D< T, W >
SuperStructure< T, 3 > & _superStructure
 
std::vector< std::unique_ptr< BlockF3D< W > > > _blockF
 Super functors may consist of several BlockF3D<W> derived functors.
 

Additional Inherited Members

- Public Types inherited from olb::SuperF3D< T, W >
using identity_functor_type
 
- Public Types inherited from olb::GenericF< W, int >
using targetType
 
using sourceType
 
- Public Attributes inherited from olb::GenericF< W, int >
std::shared_ptr< GenericF< W, int > > _ptrCalcC
 memory management, frees resouces (calcClass)
 
- Static Public Attributes inherited from olb::SuperF3D< T, W >
static constexpr bool isSuper
 
static constexpr unsigned d
 
- Protected Member Functions inherited from olb::SuperF3D< T, W >
 SuperF3D (SuperStructure< T, 3 > &superStructure, int targetDim)
 
- Protected Member Functions inherited from olb::GenericF< W, int >
 GenericF (int targetDim, int sourceDim)
 

Detailed Description

template<typename T, typename W, typename W2>
class olb::SuperTypecastF3D< T, W, W2 >

perform explicit typecast from output type W2 to W

Definition at line 157 of file superBaseF3D.h.

Constructor & Destructor Documentation

◆ SuperTypecastF3D()

template<typename T , typename W , typename W2 >
olb::SuperTypecastF3D< T, W, W2 >::SuperTypecastF3D ( FunctorPtr< SuperF3D< T, W2 > > && f)

Definition at line 221 of file superBaseF3D.hh.

223 : SuperF3D<T,W>(f->getSuperStructure(), f->getTargetDim()),
224 _f(std::move(f))
225{
226 this->getName() = _f->getName();
227
228 for (int iC = 0; iC < f->getBlockFSize(); ++iC) {
229 this->_blockF.emplace_back(
230 new BlockTypecastF3D<W,W2>(
231 f->getBlockF(iC))
232 );
233 }
234}
std::string & getName()
read and write access to name
Definition genericF.hh:51
std::vector< std::unique_ptr< BlockF3D< W > > > _blockF
Super functors may consist of several BlockF3D<W> derived functors.
FunctorPtr< SuperF3D< T, W2 > > _f

References olb::SuperF3D< T, W >::_blockF, olb::SuperTypecastF3D< T, W, W2 >::_f, and olb::GenericF< W, int >::getName().

+ Here is the call graph for this function:

Member Function Documentation

◆ operator()()

template<typename T , typename W , typename W2 >
bool olb::SuperTypecastF3D< T, W, W2 >::operator() ( W output[],
const int input[] )
virtual

has to be implemented for 'every' derived class

Reimplemented from olb::SuperF3D< T, W >.

Definition at line 237 of file superBaseF3D.hh.

238{
239 W2 result[this->getTargetDim()];
240 _f(result, input);
241 for (int i = 0; i < this->getTargetDim(); ++i) {
242 output[i] = static_cast<W>(result[i]);
243 }
244 return true;
245}
int getTargetDim() const
read only access to member variable _n
Definition genericF.hh:45

Member Data Documentation

◆ _f

template<typename T , typename W , typename W2 >
FunctorPtr<SuperF3D<T,W2> > olb::SuperTypecastF3D< T, W, W2 >::_f
protected

Definition at line 159 of file superBaseF3D.h.


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