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

functor to extract one component inside an indicator More...

#include <blockBaseF3D.h>

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

Public Member Functions

 BlockExtractComponentIndicatorF3D (BlockF3D< T > &f, int extractDim, BlockIndicatorF3D< T > &indicatorF)
 
bool operator() (T output[], const int input[]) override
 has to be implemented for 'every' derived class
 
- Public Member Functions inherited from olb::BlockExtractComponentF3D< T >
 BlockExtractComponentF3D (BlockF3D< T > &f, int extractDim)
 
int getExtractDim ()
 
- 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

BlockIndicatorF3D< T > & _indicatorF
 
- Protected Attributes inherited from olb::BlockExtractComponentF3D< T >
BlockF3D< T > & _f
 
int _extractDim
 
- 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)
 

Detailed Description

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

functor to extract one component inside an indicator

Definition at line 107 of file blockBaseF3D.h.

Constructor & Destructor Documentation

◆ BlockExtractComponentIndicatorF3D()

template<typename T >
olb::BlockExtractComponentIndicatorF3D< T >::BlockExtractComponentIndicatorF3D ( BlockF3D< T > & f,
int extractDim,
BlockIndicatorF3D< T > & indicatorF )

Definition at line 119 of file blockBaseF3D.hh.

121 : BlockExtractComponentF3D<T>(f, extractDim),
122 _indicatorF(indicatorF)
123{
124 this->getName() = f.getName();
125}
BlockIndicatorF3D< T > & _indicatorF
std::string & getName()
read and write access to name
Definition genericF.hh:51

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

+ Here is the call graph for this function:

Member Function Documentation

◆ operator()()

template<typename T >
bool olb::BlockExtractComponentIndicatorF3D< T >::operator() ( T output[],
const int input[] )
overridevirtual

has to be implemented for 'every' derived class

Reimplemented from olb::BlockExtractComponentF3D< T >.

Definition at line 128 of file blockBaseF3D.hh.

129{
130 output[0] = T{};
131 if (_indicatorF(input)) {
132 return BlockExtractComponentF3D<T>::operator()(output, input);
133 }
134 return true;
135}
bool operator()(T output[], const int input[])
has to be implemented for 'every' derived class

References olb::BlockExtractComponentF3D< T >::operator()().

+ Here is the call graph for this function:

Member Data Documentation

◆ _indicatorF

template<typename T >
BlockIndicatorF3D<T>& olb::BlockExtractComponentIndicatorF3D< T >::_indicatorF
protected

Definition at line 109 of file blockBaseF3D.h.


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