Flow123d  JS_before_hm-1621-g63a12c7
Public Member Functions | Private Attributes | List of all members
FieldListAccessor Class Reference

#include <field_set.hh>

Collaboration diagram for FieldListAccessor:
Collaboration graph
[legend]

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...
 
FieldCommonfield () 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
 
FieldCommonoperator-> () 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

FieldListAccessor::FieldListAccessor ( )
inline

Default constructor.

Definition at line 64 of file field_set.hh.

FieldListAccessor::FieldListAccessor ( std::vector< FieldCommon * >  field_list,
unsigned int  field_idx 
)
inline

Constructor.

Definition at line 68 of file field_set.hh.

Member Function Documentation

FieldCommon* FieldListAccessor::field ( ) const
inline

Returns pointer to actual field held by accessor.

Definition at line 95 of file field_set.hh.

unsigned int FieldListAccessor::field_component_idx ( ) const
inline

Getter for field_component_idx_.

Definition at line 90 of file field_set.hh.

unsigned int FieldListAccessor::field_idx ( ) const
inline

Getter for field_idx_.

Definition at line 85 of file field_set.hh.

void FieldListAccessor::inc ( )
inline

Iterates to next Field.

Definition at line 72 of file field_set.hh.

bool FieldListAccessor::operator!= ( const FieldListAccessor other) const
inline

Definition at line 107 of file field_set.hh.

FieldCommon* FieldListAccessor::operator-> ( ) const
inline

Dereference operator simplify access to actual field held by accessor.

Definition at line 112 of file field_set.hh.

bool FieldListAccessor::operator== ( const FieldListAccessor other)
inline

Comparison of accessors.

Definition at line 103 of file field_set.hh.

Member Data Documentation

unsigned int FieldListAccessor::field_component_idx_
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.

unsigned int FieldListAccessor::field_idx_
private

Index of actual Field in field_list.

Definition at line 121 of file field_set.hh.

std::vector<FieldCommon *> FieldListAccessor::field_list_
private

List of FieldCommon objects (combine Fields and MultiFields.

Definition at line 120 of file field_set.hh.


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