Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
NCollection_SparseArray< TheItemType >::Iterator Class Reference

#include <NCollection_SparseArray.hxx>

Inheritance diagram for NCollection_SparseArray< TheItemType >::Iterator:
Inheritance graph
[legend]

Public Member Functions

 Iterator () noexcept=default
 Empty constructor - for later Init.
 
 Iterator (NCollection_SparseArray &theVector)
 Constructor with initialisation.
 
void Init (const NCollection_SparseArray &theVector)
 Initialisation.
 
TheItemTypeChangeValue ()
 Value access.
 
TheItemTypeoperator() ()
 Value access operator.
 
const TheItemTypeoperator() () const
 Const access operator - the same as in parent class.
 
- Public Member Functions inherited from NCollection_SparseArray< TheItemType >::ConstIterator
 ConstIterator () noexcept=default
 Empty constructor - for later Init.
 
 ConstIterator (const NCollection_SparseArray &theVector)
 Constructor with initialisation.
 
void Init (const NCollection_SparseArray &theVector)
 Initialisation.
 
const TheItemTypeValue () const
 Constant value access.
 
const TheItemTypeoperator() () const
 Constant value access operator.
 
size_t Key () const noexcept
 Access current index with 'a-la map' interface.
 
- Public Member Functions inherited from NCollection_SparseArrayBase::Iterator
void Restart ()
 Restart iterations on the same array.
 
bool More () const noexcept
 Returns True if current item is available.
 
void Next ()
 Advances to the next item.
 
size_t Index () const noexcept
 Returns current index.
 

Additional Inherited Members

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

Detailed Description

template<class TheItemType>
class NCollection_SparseArray< TheItemType >::Iterator

Implementation of type-specific non-const Iterator class

Constructor & Destructor Documentation

◆ Iterator() [1/2]

template<class TheItemType >
NCollection_SparseArray< TheItemType >::Iterator::Iterator ( )
defaultnoexcept

Empty constructor - for later Init.

◆ Iterator() [2/2]

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

Constructor with initialisation.

Member Function Documentation

◆ ChangeValue()

template<class TheItemType >
TheItemType & NCollection_SparseArray< TheItemType >::Iterator::ChangeValue ( )
inline

Value access.

◆ Init()

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

Initialisation.

◆ operator()() [1/2]

template<class TheItemType >
TheItemType & NCollection_SparseArray< TheItemType >::Iterator::operator() ( )
inline

Value access operator.

◆ operator()() [2/2]

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

Const access operator - the same as in parent class.


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