Class representing one Field coordinate with access only to neighbor values.
What is this class good for?
Suppose there is a PDF field, and a function that calculates the density of a cell
This function cannot be called when only a x,y,z coordinate is available. A FieldNeighborPointer is a class that behaves like a FieldPointer, except accessing the neighbor values by default. So the code can be rewritten as:
#include <FieldNeighborPointer.h>
Public Types | |
using | value_type = Value_T |
Public Member Functions | |
FieldNeighborPointer (FieldMember &field, cell_idx_t _x, cell_idx_t _y, cell_idx_t _z, cell_idx_t _f=0) | |
void | set (cell_idx_t _x, cell_idx_t _y, cell_idx_t _z) |
value_type & | operator* () const |
value_type & | operator-> () const |
value_type & | getF (cell_idx_t cf) const |
value_type & | getF (uint_t cf) const |
value_type & | operator[] (cell_idx_t cf) const |
value_type & | operator[] (uint_t cf) const |
cell_idx_t & | x () |
cell_idx_t | x () const |
cell_idx_t & | y () |
cell_idx_t | y () const |
cell_idx_t & | z () |
cell_idx_t | z () const |
cell_idx_t & | f () |
cell_idx_t | f () const |
Cell | cell () const |
const FieldMember * | getField () const |
Static Public Attributes | |
static const uint_t | F_SIZE = Field_T::F_SIZE |
Protected Attributes | |
cell_idx_t | x_ |
cell_idx_t | y_ |
cell_idx_t | z_ |
cell_idx_t | f_ |
FieldMember & | field_ |
using walberla::field::FieldNeighborPointer< Field_T, FieldMember, Value_T >::value_type = Value_T |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |