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

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

#include <blockBaseF2D.h>

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

Public Member Functions

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

BlockIndicatorF2D< T > & _indicatorF
 
- Protected Attributes inherited from olb::BlockExtractComponentF2D< T >
BlockF2D< T > & _f
 
int _extractDim
 
- Protected Attributes inherited from olb::BlockF2D< T >
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)
 
- Protected Member Functions inherited from olb::BlockF2D< T >
 BlockF2D (BlockStructureD< 2 > &blockStructure, int targetDim)
 
 BlockF2D (int targetDim)
 
- Protected Member Functions inherited from olb::GenericF< T, int >
 GenericF (int targetDim, int sourceDim)
 

Detailed Description

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

functor to extract one component inside an indicator

Definition at line 110 of file blockBaseF2D.h.

Constructor & Destructor Documentation

◆ BlockExtractComponentIndicatorF2D()

template<typename T >
olb::BlockExtractComponentIndicatorF2D< T >::BlockExtractComponentIndicatorF2D ( BlockF2D< T > & f,
int extractDim,
BlockIndicatorF2D< T > & indicatorF )

Definition at line 140 of file blockBaseF2D.hh.

142 : BlockExtractComponentF2D<T>(f, extractDim),
143 _indicatorF(indicatorF)
144{
145 this->getName() = f.getName();
146}
BlockIndicatorF2D< T > & _indicatorF
std::string & getName()
read and write access to name
Definition genericF.hh:51

Member Function Documentation

◆ operator()()

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

has to be implemented for 'every' derived class

Reimplemented from olb::BlockExtractComponentF2D< T >.

Definition at line 149 of file blockBaseF2D.hh.

150{
151 output[0] = T{};
152 if (_indicatorF(input)) {
153 return BlockExtractComponentF2D<T>::operator()(output, input);
154 }
155 return true;
156}
bool operator()(T output[], const int input[])
has to be implemented for 'every' derived class

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

+ Here is the call graph for this function:

Member Data Documentation

◆ _indicatorF

template<typename T >
BlockIndicatorF2D<T>& olb::BlockExtractComponentIndicatorF2D< T >::_indicatorF
protected

Definition at line 112 of file blockBaseF2D.h.


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