Flow123d
3.9.0-72cb42cb8
|
#include <field_set.hh>
Public Member Functions | |
FieldListAccessor () | |
Default constructor. More... | |
FieldListAccessor (std::vector< FieldCommon * > field_list, unsigned int field_idx) | |
Constructor. More... | |
void | inc () |
Iterates to next Field. More... | |
unsigned int | field_idx () const |
Getter for field_idx_. More... | |
unsigned int | field_component_idx () const |
Getter for field_component_idx_. More... | |
FieldCommon * | field () const |
Returns pointer to actual field held by accessor. More... | |
bool | operator== (const FieldListAccessor &other) |
Comparison of accessors. More... | |
bool | operator!= (const FieldListAccessor &other) const |
FieldCommon * | operator-> () const |
Dereference operator simplify access to actual field held by accessor. More... | |
Private Attributes | |
std::vector< FieldCommon * > | field_list_ |
List of FieldCommon objects (combine Fields and MultiFields. More... | |
unsigned int | field_idx_ |
Index of actual Field in field_list. More... | |
unsigned int | field_component_idx_ |
Index of subfield in MultiField (fo fields hold only value 0 that is not used) More... | |
Accessor to vector of Fields holds in FieldSet.
Class holds position to vector and allows iterate through all instances of Field class and all components (SubFields) of MultiFields.
Base methods:
Definition at line 61 of file field_set.hh.
|
inline |
Default constructor.
Definition at line 64 of file field_set.hh.
|
inline |
Constructor.
Definition at line 68 of file field_set.hh.
|
inline |
Returns pointer to actual field held by accessor.
Definition at line 95 of file field_set.hh.
|
inline |
Getter for field_component_idx_.
Definition at line 90 of file field_set.hh.
|
inline |
Getter for field_idx_.
Definition at line 85 of file field_set.hh.
|
inline |
Iterates to next Field.
Definition at line 72 of file field_set.hh.
|
inline |
Definition at line 107 of file field_set.hh.
|
inline |
Dereference operator simplify access to actual field held by accessor.
Definition at line 112 of file field_set.hh.
|
inline |
Comparison of accessors.
Definition at line 103 of file field_set.hh.
|
private |
Index of subfield in MultiField (fo fields hold only value 0 that is not used)
Definition at line 122 of file field_set.hh.
|
private |
Index of actual Field in field_list.
Definition at line 121 of file field_set.hh.
|
private |
List of FieldCommon objects (combine Fields and MultiFields.
Definition at line 120 of file field_set.hh.