Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
NCollection_Sequence< TheItemType >::Iterator Class Reference

Implementation of the Iterator interface. More...

#include <NCollection_Sequence.hxx>

Inheritance diagram for NCollection_Sequence< TheItemType >::Iterator:

Public Member Functions

 Iterator ()=default
 Empty constructor - for later Init.
 Iterator (const NCollection_Sequence &theSeq, const bool isStart=true)
 Constructor with initialisation.
bool More () const noexcept
 Check end.
void Next () noexcept
 Make step.
const TheItemType & Value () const noexcept
 Constant value access.
TheItemType & ChangeValue () const noexcept
 Variable value access.
bool IsEqual (const Iterator &theOther) const noexcept
 Performs comparison of two iterators.
Public Member Functions inherited from NCollection_BaseSequence::Iterator
 Iterator () noexcept
 Empty constructor.
 Iterator (const NCollection_BaseSequence &theSeq, const bool isStart) noexcept
 Constructor with initialisation.
void Init (const NCollection_BaseSequence &theSeq, const bool isStart=true) noexcept
 Initialisation.
void Previous () noexcept
 Switch to previous element; note that it will reset.

Additional Inherited Members

Protected Attributes inherited from NCollection_BaseSequence::Iterator
NCollection_SeqNode * myCurrent
 Pointer to the current node.
NCollection_SeqNode * myPrevious
 Pointer to the previous node.

Detailed Description

template<class TheItemType>
class NCollection_Sequence< TheItemType >::Iterator

Implementation of the Iterator interface.

Constructor & Destructor Documentation

◆ Iterator() [1/2]

template<class TheItemType>
NCollection_Sequence< TheItemType >::Iterator::Iterator ( )
default

Empty constructor - for later Init.

◆ Iterator() [2/2]

template<class TheItemType>
NCollection_Sequence< TheItemType >::Iterator::Iterator ( const NCollection_Sequence & theSeq,
const bool isStart = true )
inline

Constructor with initialisation.

Member Function Documentation

◆ ChangeValue()

template<class TheItemType>
TheItemType & NCollection_Sequence< TheItemType >::Iterator::ChangeValue ( ) const
inlinenoexcept

Variable value access.

◆ IsEqual()

template<class TheItemType>
bool NCollection_Sequence< TheItemType >::Iterator::IsEqual ( const Iterator & theOther) const
inlinenoexcept

Performs comparison of two iterators.

◆ More()

template<class TheItemType>
bool NCollection_Sequence< TheItemType >::Iterator::More ( ) const
inlinenoexcept

Check end.

◆ Next()

template<class TheItemType>
void NCollection_Sequence< TheItemType >::Iterator::Next ( )
inlinenoexcept

Make step.

◆ Value()

template<class TheItemType>
const TheItemType & NCollection_Sequence< TheItemType >::Iterator::Value ( ) const
inlinenoexcept

Constant value access.


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