Flow123d  DF_patch_fevalues-8016b85
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() [1/2]

FieldListAccessor::FieldListAccessor ( )
inline

Default constructor.

Definition at line 64 of file field_set.hh.

◆ FieldListAccessor() [2/2]

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

◆ field()

FieldCommon* FieldListAccessor::field ( ) const
inline

Returns pointer to actual field held by accessor.

Definition at line 95 of file field_set.hh.

◆ field_component_idx()

unsigned int FieldListAccessor::field_component_idx ( ) const
inline

Getter for field_component_idx_.

Definition at line 90 of file field_set.hh.

◆ field_idx()

unsigned int FieldListAccessor::field_idx ( ) const
inline

Getter for field_idx_.

Definition at line 85 of file field_set.hh.

◆ inc()

void FieldListAccessor::inc ( )
inline

Iterates to next Field.

Definition at line 72 of file field_set.hh.

◆ operator!=()

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

Definition at line 107 of file field_set.hh.

◆ operator->()

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

Dereference operator simplify access to actual field held by accessor.

Definition at line 112 of file field_set.hh.

◆ operator==()

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

Comparison of accessors.

Definition at line 103 of file field_set.hh.

Member Data Documentation

◆ field_component_idx_

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.

◆ field_idx_

unsigned int FieldListAccessor::field_idx_
private

Index of actual Field in field_list.

Definition at line 121 of file field_set.hh.

◆ field_list_

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: