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

IndicCalc1D //////////////////////////////// arithmetic helper class for Indicator 1d functors. More...

#include <indicCalc2D.h>

+ Inheritance diagram for olb::IndicCalc1D< S >:
+ Collaboration diagram for olb::IndicCalc1D< S >:

Public Member Functions

 IndicCalc1D (IndicatorF1D< S > &f, IndicatorF1D< S > &g)
 
- Public Member Functions inherited from olb::IndicatorF1D< S >
virtual Vector< S, 1 > & getMin ()
 
virtual Vector< S, 1 > & getMax ()
 
IndicatorF1D< S > & operator+ (IndicatorF1D< S > &rhs)
 
IndicatorF1D< S > & operator- (IndicatorF1D< S > &rhs)
 
IndicatorF1D< S > & operator* (IndicatorF1D< S > &rhs)
 
virtual bool operator() (const S input[])
 Indicator specific function operator overload.
 
- Public Member Functions inherited from olb::GenericF< bool, 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() (bool output[], const S input[])=0
 has to be implemented for 'every' derived class
 
bool operator() (bool output[])
 wrapper that call the pure virtual operator() (T output[], const S input[]) from above
 
bool operator() (bool output[], S input0)
 
bool operator() (bool output[], S input0, S input1)
 
bool operator() (bool output[], S input0, S input1, S input2)
 
bool operator() (bool output[], S input0, S input1, S input2, S input3)
 

Protected Attributes

IndicatorF1D< S > & _f
 
IndicatorF1D< S > & _g
 
- Protected Attributes inherited from olb::IndicatorF1D< S >
Vector< S, 1 > _myMin
 
Vector< S, 1 > _myMax
 

Additional Inherited Members

- Public Types inherited from olb::GenericF< bool, S >
using targetType
 
using sourceType
 
- Public Attributes inherited from olb::GenericF< bool, S >
std::shared_ptr< GenericF< bool, S > > _ptrCalcC
 memory management, frees resouces (calcClass)
 
- Protected Member Functions inherited from olb::IndicatorF1D< S >
 IndicatorF1D ()
 
- Protected Member Functions inherited from olb::GenericF< bool, S >
 GenericF (int targetDim, int sourceDim)
 

Detailed Description

template<typename S>
class olb::IndicCalc1D< S >

IndicCalc1D //////////////////////////////// arithmetic helper class for Indicator 1d functors.

Definition at line 44 of file indicCalc2D.h.

Constructor & Destructor Documentation

◆ IndicCalc1D()

template<typename S >
olb::IndicCalc1D< S >::IndicCalc1D ( IndicatorF1D< S > & f,
IndicatorF1D< S > & g )

Definition at line 35 of file indicCalc2D.hh.

36 : _f(f), _g(g)
37{
38 this->_myMin[0] = util::min(f.getMin()[0], g.getMin()[0]);
39 this->_myMax[0] = util::max(f.getMax()[0], g.getMax()[0]);
40 std::swap(f._ptrCalcC, this->_ptrCalcC);
41}
IndicatorF1D< S > & _f
Definition indicCalc2D.h:46
IndicatorF1D< S > & _g
Definition indicCalc2D.h:47
Vector< S, 1 > _myMin
Vector< S, 1 > _myMax
cpu::simd::Pack< T > min(cpu::simd::Pack< T > rhs, cpu::simd::Pack< T > lhs)
Definition pack.h:124
cpu::simd::Pack< T > max(cpu::simd::Pack< T > rhs, cpu::simd::Pack< T > lhs)
Definition pack.h:130

References olb::IndicatorF1D< S >::_myMax, olb::IndicatorF1D< S >::_myMin, olb::GenericF< T, S >::_ptrCalcC, olb::IndicatorF1D< S >::getMax(), olb::IndicatorF1D< S >::getMin(), olb::util::max(), and olb::util::min().

+ Here is the call graph for this function:

Member Data Documentation

◆ _f

template<typename S >
IndicatorF1D<S>& olb::IndicCalc1D< S >::_f
protected

Definition at line 46 of file indicCalc2D.h.

◆ _g

template<typename S >
IndicatorF1D<S>& olb::IndicCalc1D< S >::_g
protected

Definition at line 47 of file indicCalc2D.h.


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