Iterator class for Adaptors.
Implements same functions as walberla::field::FieldIterator by wrapping a FieldIterator object. When dereferenced the value is first transformed by a functor object provided by the Adaptor.
Template Parameters AdaptedIterator: The iterator type of the base field FieldAdaptor: The Field adaptor class
#include <AdaptorIterator.h>
Public Types | |
using | T = typename FieldAdaptor::value_type |
using | Functor = typename FieldAdaptor::functor_t |
using | OwnType = AdaptorIterator< AdaptedIterator, FieldAdaptor > |
Public Member Functions | |
AdaptorIterator (const AdaptedIterator &baseIterator, const FieldAdaptor *adaptedField) | |
Operators | |
bool | operator== (const OwnType &it) const |
bool | operator!= (const OwnType &it) const |
AdaptorIterator & | operator++ () |
AdaptorIterator & | operator-- () |
Access Functions | |
T | operator* () const |
T | operator-> () const |
T | getF (cell_idx_t cf) const |
T | getF (uint_t cf) const |
T | neighbor (stencil::Direction d, cell_idx_t cf=0) const |
T | neighbor (stencil::Direction d, uint_t cf) const |
T | neighbor (cell_idx_t cx, cell_idx_t cy, cell_idx_t cz, cell_idx_t cf=0) const |
T | neighbor (cell_idx_t cx, cell_idx_t cy, cell_idx_t cz, uint_t cf) const |
Coordinates of current position | |
cell_idx_t | x () const |
cell_idx_t | y () const |
cell_idx_t | z () const |
cell_idx_t | f () const |
Cell | cell () const |
Utility Functions | |
void | print (std::ostream &str) const |
const FieldAdaptor * | getField () const |
Fast Iteration | |
AdaptedIterator | base_ |
const FieldAdaptor * | adaptedField_ |
const Functor & | functor_ |
void | incrOuter () |
void | incrInner () |
bool | testInner () const |
using walberla::field::AdaptorIterator< AdaptedIterator, FieldAdaptor >::Functor = typename FieldAdaptor::functor_t |
using walberla::field::AdaptorIterator< AdaptedIterator, FieldAdaptor >::OwnType = AdaptorIterator<AdaptedIterator, FieldAdaptor> |
using walberla::field::AdaptorIterator< AdaptedIterator, FieldAdaptor >::T = typename FieldAdaptor::value_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |