Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Data Structures | Public Member Functions | Protected Member Functions | Protected Attributes
NCollection_BaseList Class Reference

#include <NCollection_BaseList.hxx>

Inheritance diagram for NCollection_BaseList:
Inheritance graph
[legend]

Data Structures

class  Iterator
 Memory allocation. More...
 

Public Member Functions

int Extent () const noexcept
 
int Length () const noexcept
 Length - number of nodes (legacy int-returning API, synonym of Extent()).
 
size_t Size () const noexcept
 Size - number of nodes.
 
bool IsEmpty () const noexcept
 
const occ::handle< NCollection_BaseAllocator > & Allocator () const noexcept
 Returns attached allocator.
 
virtual ~NCollection_BaseList ()=default
 

Protected Member Functions

 NCollection_BaseList (const occ::handle< NCollection_BaseAllocator > &theAllocator=nullptr)
 
void PClear (NCollection_DelListNode fDel)
 
const NCollection_ListNodePFirst () const noexcept
 
const NCollection_ListNodePLast () const noexcept
 
void PAppend (NCollection_ListNode *theNode) noexcept
 
void PAppend (NCollection_ListNode *theNode, Iterator &theIt) noexcept
 
void PAppend (NCollection_BaseList &theOther) noexcept
 
void PPrepend (NCollection_ListNode *theNode) noexcept
 
void PPrepend (NCollection_BaseList &theOther) noexcept
 
void PRemoveFirst (NCollection_DelListNode fDel)
 
void PRemove (Iterator &theIter, NCollection_DelListNode fDel)
 
void PInsertBefore (NCollection_ListNode *theNode, Iterator &theIter)
 
void PInsertBefore (NCollection_BaseList &theOther, Iterator &theIter)
 
void PInsertAfter (NCollection_ListNode *theNode, Iterator &theIter)
 
void PInsertAfter (NCollection_BaseList &theOther, Iterator &theIter)
 
void PReverse () noexcept
 
void PExchange (NCollection_BaseList &theOther) noexcept
 

Protected Attributes

occ::handle< NCollection_BaseAllocatormyAllocator
 
NCollection_ListNodemyFirst
 
NCollection_ListNodemyLast
 
size_t myLength
 

Constructor & Destructor Documentation

◆ ~NCollection_BaseList()

virtual NCollection_BaseList::~NCollection_BaseList ( )
virtualdefault

◆ NCollection_BaseList()

NCollection_BaseList::NCollection_BaseList ( const occ::handle< NCollection_BaseAllocator > & theAllocator = nullptr)
inlineprotected

Member Function Documentation

◆ Allocator()

const occ::handle< NCollection_BaseAllocator > & NCollection_BaseList::Allocator ( ) const
inlinenoexcept

Returns attached allocator.

◆ Extent()

int NCollection_BaseList::Extent ( ) const
inlinenoexcept

◆ IsEmpty()

bool NCollection_BaseList::IsEmpty ( ) const
inlinenoexcept

◆ Length()

int NCollection_BaseList::Length ( ) const
inlinenoexcept

Length - number of nodes (legacy int-returning API, synonym of Extent()).

◆ PAppend() [1/3]

void NCollection_BaseList::PAppend ( NCollection_BaseList & theOther)
protectednoexcept

◆ PAppend() [2/3]

void NCollection_BaseList::PAppend ( NCollection_ListNode * theNode)
protectednoexcept

◆ PAppend() [3/3]

void NCollection_BaseList::PAppend ( NCollection_ListNode * theNode,
Iterator & theIt )
inlineprotectednoexcept

◆ PClear()

void NCollection_BaseList::PClear ( NCollection_DelListNode fDel)
protected

◆ PExchange()

void NCollection_BaseList::PExchange ( NCollection_BaseList & theOther)
inlineprotectednoexcept

◆ PFirst()

const NCollection_ListNode * NCollection_BaseList::PFirst ( ) const
inlineprotectednoexcept

◆ PInsertAfter() [1/2]

void NCollection_BaseList::PInsertAfter ( NCollection_BaseList & theOther,
Iterator & theIter )
protected

◆ PInsertAfter() [2/2]

void NCollection_BaseList::PInsertAfter ( NCollection_ListNode * theNode,
Iterator & theIter )
protected

◆ PInsertBefore() [1/2]

void NCollection_BaseList::PInsertBefore ( NCollection_BaseList & theOther,
Iterator & theIter )
protected

◆ PInsertBefore() [2/2]

void NCollection_BaseList::PInsertBefore ( NCollection_ListNode * theNode,
Iterator & theIter )
protected

◆ PLast()

const NCollection_ListNode * NCollection_BaseList::PLast ( ) const
inlineprotectednoexcept

◆ PPrepend() [1/2]

void NCollection_BaseList::PPrepend ( NCollection_BaseList & theOther)
protectednoexcept

◆ PPrepend() [2/2]

void NCollection_BaseList::PPrepend ( NCollection_ListNode * theNode)
protectednoexcept

◆ PRemove()

void NCollection_BaseList::PRemove ( Iterator & theIter,
NCollection_DelListNode fDel )
protected

◆ PRemoveFirst()

void NCollection_BaseList::PRemoveFirst ( NCollection_DelListNode fDel)
protected

◆ PReverse()

void NCollection_BaseList::PReverse ( )
protectednoexcept

◆ Size()

size_t NCollection_BaseList::Size ( ) const
inlinenoexcept

Size - number of nodes.

Field Documentation

◆ myAllocator

occ::handle<NCollection_BaseAllocator> NCollection_BaseList::myAllocator
protected

◆ myFirst

NCollection_ListNode* NCollection_BaseList::myFirst
protected

◆ myLast

NCollection_ListNode* NCollection_BaseList::myLast
protected

◆ myLength

size_t NCollection_BaseList::myLength
protected

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