walberla::field::ComponentExtractionAdaptor< field_t, component, vectorComponent > Class Template Reference

#include <ComponentExtractionAdaptor.h>

+ Inheritance diagram for walberla::field::ComponentExtractionAdaptor< field_t, component, vectorComponent >:

Public Types

using Func = ComponentExtractionFunction< field_t, component, vectorComponent >
 
using baseclass = GhostLayerFieldAdaptor< Func, 0 >
 
- Public Types inherited from walberla::field::GhostLayerFieldAdaptor< ComponentExtractionFunction< field_t, component, 0 >, 0 >
using functor_t = ComponentExtractionFunction< field_t, component, 0 >
 
using basefield_t = typename ComponentExtractionFunction< field_t, component, 0 > ::basefield_t
 
using value_type = typename ComponentExtractionFunction< field_t, component, 0 > ::value_type
 
using T = typename ComponentExtractionFunction< field_t, component, 0 > ::value_type
 
using adapted_base_iterator = typename basefield_t::const_base_iterator
 
using adapted_iterator = typename basefield_t::const_iterator
 
using adapted_reverse_iterator = typename basefield_t::const_reverse_iterator
 
using OwnType = GhostLayerFieldAdaptor< ComponentExtractionFunction< field_t, component, 0 >, glDecrease >
 
using const_base_iterator = AdaptorIterator< adapted_base_iterator, OwnType >
 
using const_iterator = AdaptorIterator< adapted_iterator, OwnType >
 
using const_reverse_iterator = AdaptorIterator< adapted_reverse_iterator, OwnType >
 
using ConstPtr = FieldPointer< OwnType, const OwnType, const T >
 

Public Member Functions

 ComponentExtractionAdaptor (const field_t &field, const Func &func=Func())
 
- Public Member Functions inherited from walberla::field::GhostLayerFieldAdaptor< ComponentExtractionFunction< field_t, component, 0 >, 0 >
bool operator== (const OwnType &other) const
 
bool hasSameAllocSize (const OwnType &other) const
 
bool hasSameSize (const OwnType &other) const
 
const_iterator beginXYZ () const
 
const_iterator beginSlice (cell_idx_t xBeg, cell_idx_t yBeg, cell_idx_t zBeg, cell_idx_t fBeg, cell_idx_t xEnd, cell_idx_t yEnd, cell_idx_t zEnd, cell_idx_t fEnd) const
 
const_iterator beginSliceXYZ (const CellInterval &interval, cell_idx_t f=0) const
 
const const_iterator end () const
 
const_iterator beginWithGhostLayer () const
 
const_iterator beginWithGhostLayerXYZ () const
 
const_iterator beginGhostLayerOnly (stencil::Direction dir) const
 
const_iterator beginGhostLayerOnlyXYZ (stencil::Direction dir, cell_idx_t f=0) const
 
const_iterator beginSliceBeforeGhostLayer (stencil::Direction dir, cell_idx_t width=1) const
 
const_iterator beginSliceBeforeGhostLayerXYZ (stencil::Direction dir, cell_idx_t width=1, cell_idx_t f=0) const
 
void getGhostRegion (stencil::Direction dir, CellInterval &ci) const
 
void getSliceBeforeGhostLayer (stencil::Direction d, CellInterval &ci, cell_idx_t width=1) const
 
uint_t xSize () const
 
uint_t ySize () const
 
uint_t zSize () const
 
uint_t fSize () const
 
uint_t xAllocSize () const
 
uint_t yAllocSize () const
 
uint_t zAllocSize () const
 
uint_t fAllocSize () const
 
uint_t allocSize () const
 
CellInterval xyzSize () const
 
CellInterval xyzAllocSize () const
 
bool coordinatesValid (cell_idx_t x, cell_idx_t y, cell_idx_t z, cell_idx_t f) const
 
Layout layout () const
 
T operator() (cell_idx_t x, cell_idx_t y, cell_idx_t z) const
 
T operator() (cell_idx_t x, cell_idx_t y, cell_idx_t z, cell_idx_t f) const
 
T operator() (cell_idx_t x, cell_idx_t y, cell_idx_t z, uint_t f) const
 
T operator() (const Cell &c) const
 
T operator() (const Cell &c, cell_idx_t f) const
 
T operator() (const Cell &c, uint_t f) const
 
T get (cell_idx_t x, cell_idx_t y, cell_idx_t z) const
 
T get (cell_idx_t x, cell_idx_t y, cell_idx_t z, cell_idx_t f) const
 
T get (cell_idx_t x, cell_idx_t y, cell_idx_t z, uint_t f) const
 
T get (const Cell &c) const
 
T get (const Cell &c, cell_idx_t f) const
 
T get (const Cell &c, uint_t f) const
 
 GhostLayerFieldAdaptor (const basefield_t &field, const ComponentExtractionFunction< field_t, component, 0 > &func=ComponentExtractionFunction< field_t, component, 0 >())
 
virtual ~GhostLayerFieldAdaptor ()=default
 
const functor_tgetFunctor () const
 
const basefield_tgetAdaptedField () const
 
uint_t xSizeWithGhostLayer () const
 
uint_t ySizeWithGhostLayer () const
 
uint_t zSizeWithGhostLayer () const
 
uint_t nrOfGhostLayers () const
 
CellInterval xyzSizeWithGhostLayer () const
 

Additional Inherited Members

- Static Public Attributes inherited from walberla::field::GhostLayerFieldAdaptor< ComponentExtractionFunction< field_t, component, 0 >, 0 >
static const uint_t F_SIZE
 
- Protected Attributes inherited from walberla::field::GhostLayerFieldAdaptor< ComponentExtractionFunction< field_t, component, 0 >, 0 >
const ComponentExtractionFunction< field_t, component, 0 > functor_
 
const basefield_tglField_
 

Member Typedef Documentation

◆ baseclass

template<typename field_t , uint_t component, uint_t vectorComponent = 0>
using walberla::field::ComponentExtractionAdaptor< field_t, component, vectorComponent >::baseclass = GhostLayerFieldAdaptor<Func, 0>

◆ Func

template<typename field_t , uint_t component, uint_t vectorComponent = 0>
using walberla::field::ComponentExtractionAdaptor< field_t, component, vectorComponent >::Func = ComponentExtractionFunction<field_t, component, vectorComponent>

Constructor & Destructor Documentation

◆ ComponentExtractionAdaptor()

template<typename field_t , uint_t component, uint_t vectorComponent = 0>
walberla::field::ComponentExtractionAdaptor< field_t, component, vectorComponent >::ComponentExtractionAdaptor ( const field_t &  field,
const Func func = Func() 
)
inline

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