Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
NCollection_OrderedDataMap< TheKeyType, TheItemType, Hasher >::OrderedDataMapNode Class Reference

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

#include <NCollection_OrderedDataMap.hxx>

Inheritance diagram for NCollection_OrderedDataMap< TheKeyType, TheItemType, Hasher >::OrderedDataMapNode:

Public Member Functions

 OrderedDataMapNode (const TheKeyType &theKey, const TheItemType &theItem, NCollection_ListNode *theNext)
 Constructor with copy key and copy item.
 OrderedDataMapNode (const TheKeyType &theKey, TheItemType &&theItem, NCollection_ListNode *theNext)
 Constructor with copy key and move item.
 OrderedDataMapNode (TheKeyType &&theKey, const TheItemType &theItem, NCollection_ListNode *theNext)
 Constructor with move key and copy item.
 OrderedDataMapNode (TheKeyType &&theKey, TheItemType &&theItem, NCollection_ListNode *theNext)
 Constructor with move key and move item.
template<typename K, typename... Args>
 OrderedDataMapNode (K &&theKey, std::in_place_t, NCollection_ListNode *theNext, Args &&... theArgs)
 Constructor with in-place value construction.
const TheKeyType & Key () const noexcept
 Key.
Public Member Functions inherited from NCollection_TListNode< TheItemType >
 NCollection_TListNode (const TheItemType &theItem, NCollection_ListNode *theNext=nullptr)
 Constructor.
 NCollection_TListNode (TheItemType &&theItem, NCollection_ListNode *theNext=nullptr)
template<typename... Args>
 NCollection_TListNode (std::in_place_t, NCollection_ListNode *theNext, Args &&... theArgs)
 Constructor with in-place value construction.
const TheItemType & Value () const noexcept
 Constant value access.
TheItemType & 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< TheItemType >
static void delNode (NCollection_ListNode *theNode, occ::handle< NCollection_BaseAllocator > &theAl)
 Static deleter to be passed to BaseList.

Data Fields

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

Additional Inherited Members

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

Detailed Description

template<class TheKeyType, class TheItemType, class Hasher = NCollection_DefaultHasher<TheKeyType>>
class NCollection_OrderedDataMap< TheKeyType, TheItemType, Hasher >::OrderedDataMapNode

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

Constructor & Destructor Documentation

◆ OrderedDataMapNode() [1/5]

template<class TheKeyType, class TheItemType, class Hasher = NCollection_DefaultHasher<TheKeyType>>
NCollection_OrderedDataMap< TheKeyType, TheItemType, Hasher >::OrderedDataMapNode::OrderedDataMapNode ( const TheKeyType & theKey,
const TheItemType & theItem,
NCollection_ListNode * theNext )
inline

Constructor with copy key and copy item.

◆ OrderedDataMapNode() [2/5]

template<class TheKeyType, class TheItemType, class Hasher = NCollection_DefaultHasher<TheKeyType>>
NCollection_OrderedDataMap< TheKeyType, TheItemType, Hasher >::OrderedDataMapNode::OrderedDataMapNode ( const TheKeyType & theKey,
TheItemType && theItem,
NCollection_ListNode * theNext )
inline

Constructor with copy key and move item.

◆ OrderedDataMapNode() [3/5]

template<class TheKeyType, class TheItemType, class Hasher = NCollection_DefaultHasher<TheKeyType>>
NCollection_OrderedDataMap< TheKeyType, TheItemType, Hasher >::OrderedDataMapNode::OrderedDataMapNode ( TheKeyType && theKey,
const TheItemType & theItem,
NCollection_ListNode * theNext )
inline

Constructor with move key and copy item.

◆ OrderedDataMapNode() [4/5]

template<class TheKeyType, class TheItemType, class Hasher = NCollection_DefaultHasher<TheKeyType>>
NCollection_OrderedDataMap< TheKeyType, TheItemType, Hasher >::OrderedDataMapNode::OrderedDataMapNode ( TheKeyType && theKey,
TheItemType && theItem,
NCollection_ListNode * theNext )
inline

Constructor with move key and move item.

◆ OrderedDataMapNode() [5/5]

template<class TheKeyType, class TheItemType, class Hasher = NCollection_DefaultHasher<TheKeyType>>
template<typename K, typename... Args>
NCollection_OrderedDataMap< TheKeyType, TheItemType, Hasher >::OrderedDataMapNode::OrderedDataMapNode ( K && theKey,
std::in_place_t ,
NCollection_ListNode * theNext,
Args &&... theArgs )
inline

Constructor with in-place value construction.

Member Function Documentation

◆ delNode()

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

Static deleter to be passed to BaseMap.

◆ Key()

template<class TheKeyType, class TheItemType, class Hasher = NCollection_DefaultHasher<TheKeyType>>
const TheKeyType & NCollection_OrderedDataMap< TheKeyType, TheItemType, Hasher >::OrderedDataMapNode::Key ( ) const
inlinenoexcept

Key.

Field Documentation

◆ myOrderNext

template<class TheKeyType, class TheItemType, class Hasher = NCollection_DefaultHasher<TheKeyType>>
OrderedDataMapNode* NCollection_OrderedDataMap< TheKeyType, TheItemType, Hasher >::OrderedDataMapNode::myOrderNext

Next node in insertion order.

◆ myOrderPrev

template<class TheKeyType, class TheItemType, class Hasher = NCollection_DefaultHasher<TheKeyType>>
OrderedDataMapNode* NCollection_OrderedDataMap< TheKeyType, TheItemType, Hasher >::OrderedDataMapNode::myOrderPrev

Previous node in insertion order.


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