Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
NCollection_TListNode< TheItemType > Class Template Reference

#include <NCollection_TListNode.hxx>

Inheritance diagram for NCollection_TListNode< TheItemType >:

Public Member Functions

 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)
 Static deleter to be passed to BaseList.

Protected Attributes

TheItemType myValue
 The item stored in the node.

Detailed Description

template<class TheItemType>
class NCollection_TListNode< TheItemType >

Purpose: Abstract list node class. Used by BaseList Remark: Internal class

Constructor & Destructor Documentation

◆ NCollection_TListNode() [1/3]

template<class TheItemType>
NCollection_TListNode< TheItemType >::NCollection_TListNode ( const TheItemType & theItem,
NCollection_ListNode * theNext = nullptr )
inline

Constructor.

◆ NCollection_TListNode() [2/3]

template<class TheItemType>
NCollection_TListNode< TheItemType >::NCollection_TListNode ( TheItemType && theItem,
NCollection_ListNode * theNext = nullptr )
inline

◆ NCollection_TListNode() [3/3]

template<class TheItemType>
template<typename... Args>
NCollection_TListNode< TheItemType >::NCollection_TListNode ( std::in_place_t ,
NCollection_ListNode * theNext,
Args &&... theArgs )
inline

Constructor with in-place value construction.

Member Function Documentation

◆ ChangeValue()

template<class TheItemType>
TheItemType & NCollection_TListNode< TheItemType >::ChangeValue ( )
inlinenoexcept

Variable value access.

◆ delNode()

template<class TheItemType>
void NCollection_TListNode< TheItemType >::delNode ( NCollection_ListNode * theNode,
occ::handle< NCollection_BaseAllocator > & theAl )
inlinestatic

Static deleter to be passed to BaseList.

◆ Value()

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

Constant value access.

Field Documentation

◆ myValue

template<class TheItemType>
TheItemType NCollection_TListNode< TheItemType >::myValue
protected

The item stored in the node.


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