OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    NCollection_SparseArray< TheItemType >::ConstIterator Class Reference

    #include <NCollection_SparseArray.hxx>

    Inheritance diagram for NCollection_SparseArray< TheItemType >::ConstIterator:

    Public Member Functions

     ConstIterator () noexcept=default
     Empty constructor - for later Init.
     ConstIterator (const NCollection_SparseArray &theVector)
     Constructor with initialisation.
    void Init (const NCollection_SparseArray &theVector)
     Initialisation.
    const TheItemType & Value () const
     Constant value access.
    const TheItemType & operator() () 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.
    void * value () const noexcept
     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 ( )
    defaultnoexcept

    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>
    size_t NCollection_SparseArray< TheItemType >::ConstIterator::Key ( ) const
    inlinenoexcept

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

    ◆ operator()()

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

    Constant value access operator.

    ◆ Value()

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

    Constant value access.


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