MaMiCo 1.2
Loading...
Searching...
No Matches
coupling::filtering::Constant< dim > Class Template Reference

#include <Constant.h>

Inheritance diagram for coupling::filtering::Constant< dim >:
Collaboration diagram for coupling::filtering::Constant< dim >:

Public Member Functions

 Constant (const std::vector< coupling::datastructures::CouplingCell< dim > * > &inputCellVector, const std::vector< coupling::datastructures::CouplingCell< dim > * > &outputCellVector, const std::array< bool, 7 > filteredValues, const tarch::la::Vector< dim, bool > filteredDims, const double constant)
 
void operator() ()
 
- Public Member Functions inherited from coupling::filtering::FilterInterface< dim >
 FilterInterface (const std::vector< coupling::datastructures::CouplingCell< dim > * > &inputCellVector, const std::vector< coupling::datastructures::CouplingCell< dim > * > &outputCellVector, const std::array< bool, 7 > filteredValues, const char *type)
 
 FilterInterface (const char *type)
 
void updateCellData (const std::vector< coupling::datastructures::CouplingCell< dim > * > &new_inputCells, const std::vector< coupling::datastructures::CouplingCell< dim > * > &new_outputCells)
 
const char * getType () const
 
std::vector< coupling::datastructures::CouplingCell< dim > * > getInputCells () const
 
std::vector< coupling::datastructures::CouplingCell< dim > * > getOutputCells () const
 
coupling::datastructures::CouplingCell< dim > * getInputCellOfIndex (const CellIndex_T &index)
 
coupling::datastructures::CouplingCell< dim > * getOutputCellOfIndex (const CellIndex_T &index)
 
void setInputCells (const std::vector< coupling::datastructures::CouplingCell< dim > * > &newInputCells)
 
int getSize () const
 

Private Attributes

const double _constant
 
const tarch::la::Vector< dim, bool > _filteredDims
 

Additional Inherited Members

- Public Types inherited from coupling::filtering::FilterInterface< dim >
using CellIndex_T
 
- Protected Attributes inherited from coupling::filtering::FilterInterface< dim >
std::vector< coupling::datastructures::CouplingCell< dim > * > _inputCells
 
std::vector< coupling::datastructures::CouplingCell< dim > * > _outputCells
 
std::vector< ScalarAccessFunctionPair_scalarAccessFunctionPairs
 
std::vector< VectorAccessFunctionPair_vectorAccessFunctionPairs
 
const char * _type
 

Detailed Description

template<unsigned int dim>
class coupling::filtering::Constant< dim >

Filter applying a constant floating point value to all cells for all filtered values. Optionally, one can specify to apply this filter only to certain directions of multidimensional cell properties.

Author
Felix Maurer

Member Function Documentation

◆ operator()()

template<unsigned int dim>
void coupling::filtering::Constant< dim >::operator() ( )
inlinevirtual

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