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_OrderedMap< TheKeyType, Hasher >::OrderedMapNode Class Reference

    Adaptation of the TListNode to the ordered map notations. Extends the hash-chain node with insertion-order linked list pointers. More...

    #include <NCollection_OrderedMap.hxx>

    Inheritance diagram for NCollection_OrderedMap< TheKeyType, Hasher >::OrderedMapNode:

    Public Member Functions

     OrderedMapNode (const TheKeyType &theKey, NCollection_ListNode *theNext)
     Constructor with copy key.
     OrderedMapNode (TheKeyType &&theKey, NCollection_ListNode *theNext)
     Constructor with move key.
    template<typename... Args>
     OrderedMapNode (std::in_place_t, NCollection_ListNode *theNext, Args &&... theArgs)
     Constructor with in-place key construction.
    const TheKeyType & Key () noexcept
     Key.
    Public Member Functions inherited from NCollection_TListNode< TheKeyType >
     NCollection_TListNode (const TheKeyType &theItem, NCollection_ListNode *theNext=nullptr)
     Constructor.
    const TheKeyType & Value () const noexcept
     Constant value access.
    TheKeyType & ChangeValue () noexcept
     Variable value access.
    Public Member Functions inherited from NCollection_ListNode
     NCollection_ListNode (NCollection_ListNode *theNext) noexcept
     The only constructor.
    NCollection_ListNode *& Next () noexcept
     Next pointer access.
    NCollection_ListNode * Next () const noexcept
     Next pointer const access.

    Static Public Member Functions

    static void delNode (NCollection_ListNode *theNode, occ::handle< NCollection_BaseAllocator > &theAl) noexcept
     Static deleter to be passed to BaseMap.
    Static Public Member Functions inherited from NCollection_TListNode< TheKeyType >
    static void delNode (NCollection_ListNode *theNode, occ::handle< NCollection_BaseAllocator > &theAl)
     Static deleter to be passed to BaseList.

    Data Fields

    OrderedMapNode * myOrderPrev
     Previous node in insertion order.
    OrderedMapNode * myOrderNext
     Next node in insertion order.

    Additional Inherited Members

    Protected Attributes inherited from NCollection_TListNode< TheKeyType >
    TheKeyType myValue
     The item stored in the node.

    Detailed Description

    template<class TheKeyType, class Hasher = NCollection_DefaultHasher<TheKeyType>>
    class NCollection_OrderedMap< TheKeyType, Hasher >::OrderedMapNode

    Adaptation of the TListNode to the ordered map notations. Extends the hash-chain node with insertion-order linked list pointers.

    Constructor & Destructor Documentation

    ◆ OrderedMapNode() [1/3]

    template<class TheKeyType, class Hasher = NCollection_DefaultHasher<TheKeyType>>
    NCollection_OrderedMap< TheKeyType, Hasher >::OrderedMapNode::OrderedMapNode ( const TheKeyType & theKey,
    NCollection_ListNode * theNext )
    inline

    Constructor with copy key.

    ◆ OrderedMapNode() [2/3]

    template<class TheKeyType, class Hasher = NCollection_DefaultHasher<TheKeyType>>
    NCollection_OrderedMap< TheKeyType, Hasher >::OrderedMapNode::OrderedMapNode ( TheKeyType && theKey,
    NCollection_ListNode * theNext )
    inline

    Constructor with move key.

    ◆ OrderedMapNode() [3/3]

    template<class TheKeyType, class Hasher = NCollection_DefaultHasher<TheKeyType>>
    template<typename... Args>
    NCollection_OrderedMap< TheKeyType, Hasher >::OrderedMapNode::OrderedMapNode ( std::in_place_t ,
    NCollection_ListNode * theNext,
    Args &&... theArgs )
    inline

    Constructor with in-place key construction.

    Member Function Documentation

    ◆ delNode()

    template<class TheKeyType, class Hasher = NCollection_DefaultHasher<TheKeyType>>
    void NCollection_OrderedMap< TheKeyType, Hasher >::OrderedMapNode::delNode ( NCollection_ListNode * theNode,
    occ::handle< NCollection_BaseAllocator > & theAl )
    inlinestaticnoexcept

    Static deleter to be passed to BaseMap.

    ◆ Key()

    template<class TheKeyType, class Hasher = NCollection_DefaultHasher<TheKeyType>>
    const TheKeyType & NCollection_OrderedMap< TheKeyType, Hasher >::OrderedMapNode::Key ( )
    inlinenoexcept

    Key.

    Field Documentation

    ◆ myOrderNext

    template<class TheKeyType, class Hasher = NCollection_DefaultHasher<TheKeyType>>
    OrderedMapNode* NCollection_OrderedMap< TheKeyType, Hasher >::OrderedMapNode::myOrderNext

    Next node in insertion order.

    ◆ myOrderPrev

    template<class TheKeyType, class Hasher = NCollection_DefaultHasher<TheKeyType>>
    OrderedMapNode* NCollection_OrderedMap< TheKeyType, Hasher >::OrderedMapNode::myOrderPrev

    Previous node in insertion order.


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