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

Indicator identity functor. More...

#include <superIndicatorF2D.h>

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

Public Member Functions

 SuperIndicatorIdentity2D (FunctorPtr< SuperIndicatorF2D< T > > &&indicatorF)
 
bool operator() (bool output[], const int input[]) override
 
- Public Member Functions inherited from olb::SuperIndicatorF2D< T >
 SuperIndicatorF2D (SuperGeometry< T, 2 > &geometry)
 
BlockIndicatorF2D< T > & getBlockIndicatorF (int iCloc)
 Get block indicator.
 
SuperGeometry< T, 2 > & getSuperGeometry ()
 Get underlying super geometry.
 
bool operator() (const int input[])
 Indicator specific function operator overload.
 
bool operator() (int iC, int iX, int iY)
 Indicator specific function operator overload.
 
void cache ()
 Optional: initialize _cachedData for faster access.
 
- Public Member Functions inherited from olb::SuperF2D< T, bool >
SuperF2D< T, bool > & operator- (SuperF2D< T, bool > &rhs)
 
SuperF2D< T, bool > & operator+ (SuperF2D< T, bool > &rhs)
 
SuperF2D< T, bool > & operator* (SuperF2D< T, bool > &rhs)
 
SuperF2D< T, bool > & operator/ (SuperF2D< T, bool > &rhs)
 
SuperStructure< T, 2 > & getSuperStructure ()
 
int getBlockFSize () const
 
BlockF2D< bool > & getBlockF (int iCloc)
 
bool operator() (bool output[], const int input[]) override
 
- 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 Attributes

FunctorPtr< SuperIndicatorF2D< T > > _indicatorF
 
- Protected Attributes inherited from olb::SuperIndicatorF2D< T >
SuperGeometry< T, 2 > & _superGeometry
 
std::unique_ptr< SuperData< 2, T, bool > > _cachedData
 
- Protected Attributes inherited from olb::SuperF2D< T, bool >
SuperStructure< T, 2 > & _superStructure
 
std::vector< std::unique_ptr< BlockF2D< bool > > > _blockF
 Super functors may consist of several BlockF2D<W> derived functors.
 

Additional Inherited Members

- Public Types inherited from olb::SuperIndicatorF2D< T >
using identity_functor_type = SuperIndicatorIdentity2D<T>
 
- Public Types inherited from olb::SuperF2D< T, bool >
using identity_functor_type
 
- 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)
 
- Protected Member Functions inherited from olb::SuperF2D< T, bool >
 SuperF2D (SuperStructure< T, 2 > &superStructure, int targetDim)
 
- Protected Member Functions inherited from olb::GenericF< T, S >
 GenericF (int targetDim, int sourceDim)
 

Detailed Description

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

Indicator identity functor.

Proxies a given indicator functor for simplified memory management. i.e. mixing non-owning indicator references and owning indicator pointers in functor compositions.

Definition at line 108 of file superIndicatorF2D.h.

Constructor & Destructor Documentation

◆ SuperIndicatorIdentity2D()

template<typename T >
olb::SuperIndicatorIdentity2D< T >::SuperIndicatorIdentity2D ( FunctorPtr< SuperIndicatorF2D< T > > && indicatorF)

Definition at line 138 of file superIndicatorF2D.hh.

139 : SuperIndicatorF2D<T>(indicatorF->getSuperGeometry()),
140 _indicatorF(std::move(indicatorF))
141{
142 this->getName() = _indicatorF->getName();
143
144 for (int iC = 0; iC < _indicatorF->getBlockFSize(); ++iC) {
145 this->_blockF.emplace_back(
146 new BlockIndicatorIdentity2D<T>(_indicatorF->getBlockIndicatorF(iC)));
147 }
148}
std::string & getName()
read and write access to name
Definition genericF.hh:51
std::vector< std::unique_ptr< BlockF2D< bool > > > _blockF
Super functors may consist of several BlockF2D<W> derived functors.
FunctorPtr< SuperIndicatorF2D< T > > _indicatorF

References olb::SuperF2D< T, bool >::_blockF, olb::SuperIndicatorIdentity2D< T >::_indicatorF, and olb::GenericF< T, S >::getName().

+ Here is the call graph for this function:

Member Function Documentation

◆ operator()()

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

Definition at line 151 of file superIndicatorF2D.hh.

152{
153 return _indicatorF(output, input);
154}

Member Data Documentation

◆ _indicatorF

template<typename T >
FunctorPtr<SuperIndicatorF2D<T> > olb::SuperIndicatorIdentity2D< T >::_indicatorF
protected

Definition at line 110 of file superIndicatorF2D.h.


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