Class representing on Field coordinate.
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 FieldPointer is a class that behaves like a FieldIterator but can be constructed from x,y,z,f coordinates. So the code can be rewritten as:
Do not use this directly use the typedef Field::Ptr
#include <FieldPointer.h>
Public Types | |
using | value_type = Value_T |
Public Member Functions | |
FieldPointer (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 |
value_type & | neighbor (stencil::Direction d, cell_idx_t cf=0) const |
value_type & | neighbor (stencil::Direction d, uint_t cf) const |
value_type & | neighbor (cell_idx_t cx, cell_idx_t cy, cell_idx_t cz, cell_idx_t cf=0) const |
value_type & | neighbor (cell_idx_t cx, cell_idx_t cy, cell_idx_t cz, 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::FieldPointer< 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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |