Open CASCADE Technology 7.8.2.dev
NCollection_SparseArray< TheItemType >::ConstIterator Class Reference

#include <NCollection_SparseArray.hxx>

Inheritance diagram for NCollection_SparseArray< TheItemType >::ConstIterator:

Public Member Functions

 ConstIterator ()
 Empty constructor - for later Init.
 
 ConstIterator (const NCollection_SparseArray &theVector)
 Constructor with initialisation.
 
void Init (const NCollection_SparseArray &theVector)
 Initialisation.
 
const TheItemType & Value (void) const
 Constant value access.
 
const TheItemType & operator() (void) const
 Constant value access operator.
 
Standard_Size Key (void) const
 Access current index with 'a-la map' interface.
 
- Public Member Functions inherited from NCollection_SparseArrayBase::Iterator
void Restart ()
 Restart iterations on the same array.
 
Standard_Boolean More () const
 Returns True if current item is available.
 
void Next ()
 Advances to the next item.
 
Standard_Size Index () const
 Returns current index.
 

Additional Inherited Members

- Protected Member Functions inherited from NCollection_SparseArrayBase::Iterator
 Iterator (const NCollection_SparseArrayBase *theArray=0)
 Empty constructor.
 
void init (const NCollection_SparseArrayBase *theArray)
 Initialize by the specified array.
 
Standard_Address value () const
 Returns address of the current item.
 

Detailed Description

template<class TheItemType>
class NCollection_SparseArray< TheItemType >::ConstIterator

Implementation of type-specific const Iterator class

Constructor & Destructor Documentation

◆ ConstIterator() [1/2]

template<class TheItemType >
NCollection_SparseArray< TheItemType >::ConstIterator::ConstIterator ( )
inline

Empty constructor - for later Init.

◆ ConstIterator() [2/2]

template<class TheItemType >
NCollection_SparseArray< TheItemType >::ConstIterator::ConstIterator ( const NCollection_SparseArray & theVector)
inline

Constructor with initialisation.

Member Function Documentation

◆ Init()

template<class TheItemType >
void NCollection_SparseArray< TheItemType >::ConstIterator::Init ( const NCollection_SparseArray & theVector)
inline

Initialisation.

◆ Key()

template<class TheItemType >
Standard_Size NCollection_SparseArray< TheItemType >::ConstIterator::Key ( void ) const
inline

Access current index with 'a-la map' interface.

◆ operator()()

template<class TheItemType >
const TheItemType & NCollection_SparseArray< TheItemType >::ConstIterator::operator() ( void ) const
inline

Constant value access operator.

◆ Value()

template<class TheItemType >
const TheItemType & NCollection_SparseArray< TheItemType >::ConstIterator::Value ( void ) const
inline

Constant value access.


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