Flow123d  release_2.1.0-84-g6a13a75
Public Member Functions | Protected Attributes | List of all members
Input::IteratorBase Class Reference

#include <accessors.hh>

Inheritance diagram for Input::IteratorBase:
Inheritance graph
[legend]
Collaboration diagram for Input::IteratorBase:
Collaboration graph
[legend]

Public Member Functions

 IteratorBase (const Address &address, const unsigned int index)
 
bool operator== (const IteratorBase &that) const
 Comparison of two Iterators. Do no compare types only position in the storage. More...
 
bool operator!= (const IteratorBase &that) const
 
 operator bool () const
 
unsigned int idx () const
 
const Addressget_address () const
 

Protected Attributes

Address address_
 
unsigned int index_
 

Detailed Description

Base class of input Iterator<Type> template. Main reason is possibility to construct invalid iterator without template parameter ( used in Array::end() )

Definition at line 673 of file accessors.hh.

Constructor & Destructor Documentation

Input::IteratorBase::IteratorBase ( const Address address,
const unsigned int  index 
)

Constructor. Creates iterator effectively pointing to data address_->get_storage()->get_item(index), that is parameter address points to StorageArray and parameter index gives index into this array.

Definition at line 336 of file accessors.cc.

Member Function Documentation

const Address & Input::IteratorBase::get_address ( ) const

Returns address

Definition at line 341 of file accessors.cc.

unsigned int Input::IteratorBase::idx ( ) const
inline

Return index in an array or record.

Definition at line 200 of file accessors_impl.hh.

Input::IteratorBase::operator bool ( ) const
inline

Implicit conversion to bool. Returns true if iterator points to non-null storage.

Definition at line 193 of file accessors_impl.hh.

bool Input::IteratorBase::operator!= ( const IteratorBase that) const
inline

Definition at line 188 of file accessors_impl.hh.

bool Input::IteratorBase::operator== ( const IteratorBase that) const
inline

Comparison of two Iterators. Do no compare types only position in the storage.

Definition at line 183 of file accessors_impl.hh.

Member Data Documentation

Address Input::IteratorBase::address_
protected

Definition at line 705 of file accessors.hh.

unsigned int Input::IteratorBase::index_
protected

Definition at line 706 of file accessors.hh.


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