Open CASCADE Technology  7.6.0
Public Member Functions

NCollection_Vector< TheItemType >::Iterator Class Reference

Nested class Iterator. More...

#include <NCollection_Vector.hxx>

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

Public Member Functions

 Iterator ()
 Empty constructor - for later Init. More...
 
 Iterator (const NCollection_Vector &theVector, Standard_Boolean theToEnd=Standard_False)
 Constructor with initialisation. More...
 
void Init (const NCollection_Vector &theVector)
 Initialisation. More...
 
Standard_Boolean More () const
 Check end. More...
 
void Next ()
 Increment operator. More...
 
void Previous ()
 Decrement operator. More...
 
void Offset (ptrdiff_t theOffset)
 Offset operator. More...
 
ptrdiff_t Differ (const Iterator &theOther) const
 Difference operator. More...
 
const TheItemType & Value () const
 Constant value access. More...
 
TheItemType & ChangeValue () const
 Variable value access. More...
 
Standard_Boolean IsEqual (const Iterator &theOther) const
 Performs comparison of two iterators. More...
 

Additional Inherited Members

- Protected Member Functions inherited from NCollection_BaseVector::Iterator
 Iterator ()
 
 Iterator (const NCollection_BaseVector &theVector, Standard_Boolean theToEnd=Standard_False)
 
void initV (const NCollection_BaseVector &theVector, Standard_Boolean theToEnd=Standard_False)
 
Standard_Boolean moreV () const
 
void nextV ()
 
void prevV ()
 
void offsetV (Standard_Integer theOffset)
 
Standard_Integer differV (const Iterator &theOther) const
 
const MemBlockcurBlockV () const
 
- Protected Attributes inherited from NCollection_BaseVector::Iterator
const NCollection_BaseVectormyVector
 the Master vector More...
 
Standard_Integer myICurBlock
 
Standard_Integer myIEndBlock
 
Standard_Integer myCurIndex
 Index in the current block. More...
 
Standard_Integer myEndIndex
 

Detailed Description

template<class TheItemType>
class NCollection_Vector< TheItemType >::Iterator

Nested class Iterator.

Constructor & Destructor Documentation

◆ Iterator() [1/2]

template<class TheItemType >
NCollection_Vector< TheItemType >::Iterator::Iterator ( )
inline

Empty constructor - for later Init.

◆ Iterator() [2/2]

template<class TheItemType >
NCollection_Vector< TheItemType >::Iterator::Iterator ( const NCollection_Vector theVector,
Standard_Boolean  theToEnd = Standard_False 
)
inline

Constructor with initialisation.

Member Function Documentation

◆ ChangeValue()

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

Variable value access.

◆ Differ()

template<class TheItemType >
ptrdiff_t NCollection_Vector< TheItemType >::Iterator::Differ ( const Iterator theOther) const
inline

Difference operator.

◆ Init()

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

Initialisation.

◆ IsEqual()

template<class TheItemType >
Standard_Boolean NCollection_Vector< TheItemType >::Iterator::IsEqual ( const Iterator theOther) const
inline

Performs comparison of two iterators.

◆ More()

template<class TheItemType >
Standard_Boolean NCollection_Vector< TheItemType >::Iterator::More ( void  ) const
inline

Check end.

◆ Next()

template<class TheItemType >
void NCollection_Vector< TheItemType >::Iterator::Next ( void  )
inline

Increment operator.

◆ Offset()

template<class TheItemType >
void NCollection_Vector< TheItemType >::Iterator::Offset ( ptrdiff_t  theOffset)
inline

Offset operator.

◆ Previous()

template<class TheItemType >
void NCollection_Vector< TheItemType >::Iterator::Previous ( )
inline

Decrement operator.

◆ Value()

template<class TheItemType >
const TheItemType& NCollection_Vector< TheItemType >::Iterator::Value ( void  ) const
inline

Constant value access.


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