Flow123d  JS_before_hm-995-g9546b8d
Public Member Functions | Protected Attributes | List of all members
ObservePointAccessor Class Reference

Point accessor allow iterate over local Observe points. More...

#include <observe.hh>

Collaboration diagram for ObservePointAccessor:
Collaboration graph
[legend]

Public Member Functions

 ObservePointAccessor ()
 Default invalid accessor. More...
 
 ObservePointAccessor (const Observe *observe, unsigned int loc_idx)
 
unsigned int local_idx () const
 Return local index to point. More...
 
unsigned int global_idx () const
 Return global index to point. More...
 
const ObservePoint observe_point () const
 Return ElementAccessor to element of loc_ele_idx_. More...
 
unsigned int loc_point_time_index () const
 Return local index in data cache (combination of local point index and index of stored time) More...
 
bool is_valid () const
 Check validity of accessor (see default constructor) More...
 
void inc ()
 Iterates to next local point. More...
 
bool operator== (const ObservePointAccessor &other)
 Comparison of accessors. More...
 

Protected Attributes

const Observeobserve_
 Pointer to the Observe owning the point. More...
 
unsigned int loc_point_idx_
 Index into Observe::point_4_loc_ array. More...
 

Detailed Description

Point accessor allow iterate over local Observe points.

Iterator is defined by:

Definition at line 325 of file observe.hh.

Constructor & Destructor Documentation

ObservePointAccessor::ObservePointAccessor ( )
inline

Default invalid accessor.

Definition at line 328 of file observe.hh.

ObservePointAccessor::ObservePointAccessor ( const Observe observe,
unsigned int  loc_idx 
)
inline

Observe point accessor.

Definition at line 335 of file observe.hh.

Member Function Documentation

unsigned int ObservePointAccessor::global_idx ( ) const
inline

Return global index to point.

Definition at line 345 of file observe.hh.

void ObservePointAccessor::inc ( )
inline

Iterates to next local point.

Definition at line 365 of file observe.hh.

bool ObservePointAccessor::is_valid ( ) const
inline

Check validity of accessor (see default constructor)

Definition at line 360 of file observe.hh.

unsigned int ObservePointAccessor::loc_point_time_index ( ) const
inline

Return local index in data cache (combination of local point index and index of stored time)

Definition at line 355 of file observe.hh.

unsigned int ObservePointAccessor::local_idx ( ) const
inline

Return local index to point.

Definition at line 340 of file observe.hh.

const ObservePoint ObservePointAccessor::observe_point ( ) const
inline

Return ElementAccessor to element of loc_ele_idx_.

Definition at line 350 of file observe.hh.

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

Comparison of accessors.

Definition at line 370 of file observe.hh.

Member Data Documentation

unsigned int ObservePointAccessor::loc_point_idx_
protected

Index into Observe::point_4_loc_ array.

Definition at line 378 of file observe.hh.

const Observe* ObservePointAccessor::observe_
protected

Pointer to the Observe owning the point.

Definition at line 376 of file observe.hh.


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