Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions
NCollection_List< TheItemType > Class Template Reference

#include <Poly_CoherentTriangulation.hxx>

Inheritance diagram for NCollection_List< TheItemType >:
Inheritance graph
[legend]

Public Types

typedef NCollection_TListNode
< TheItemType > 
ListNode
 
typedef
NCollection_TListIterator
< TheItemType > 
Iterator
 

Public Member Functions

 NCollection_List (const Handle< NCollection_BaseAllocator > &theAllocator=0L)
 Constructor. More...
 
 NCollection_List (const NCollection_List &theOther)
 Copy constructor. More...
 
virtual Standard_Integer Size (void) const
 Size - Number of items. More...
 
virtual void Assign (const NCollection_BaseCollection< TheItemType > &theOther)
 Replace this list by the items of theOther collection. More...
 
void Assign (const NCollection_List &theOther)
 Replace this list by the items of another list (theOther parameter) More...
 
NCollection_Listoperator= (const NCollection_List &theOther)
 Replace this list by the items of theOther list. More...
 
void Clear (const Handle< NCollection_BaseAllocator > &theAllocator=0L)
 Clear this list. More...
 
const TheItemType & First (void) const
 First item. More...
 
const TheItemType & Last (void) const
 Last item. More...
 
TheItemType & Append (const TheItemType &theItem)
 Append one item at the end. More...
 
void Append (const TheItemType &theItem, Iterator &theIter)
 Append one item at the end and output iterator pointing at the appended item. More...
 
void Append (NCollection_List &theOther)
 Append another list at the end. More...
 
TheItemType & Prepend (const TheItemType &theItem)
 Prepend one item at the beginning. More...
 
void Prepend (NCollection_List &theOther)
 Prepend another list at the beginning. More...
 
void RemoveFirst (void)
 RemoveFirst item. More...
 
void Remove (Iterator &theIter)
 Remove item. More...
 
TheItemType & InsertBefore (const TheItemType &theItem, Iterator &theIter)
 InsertBefore. More...
 
void InsertBefore (NCollection_List &theOther, Iterator &theIter)
 InsertBefore. More...
 
TheItemType & InsertAfter (const TheItemType &theItem, Iterator &theIter)
 InsertAfter. More...
 
void InsertAfter (NCollection_List &theOther, Iterator &theIter)
 InsertAfter. More...
 
void Reverse ()
 Reverse the list. More...
 
 ~NCollection_List (void)
 Destructor - clears the List. More...
 
- Public Member Functions inherited from NCollection_BaseCollection< TheItemType >
 NCollection_BaseCollection (const Handle< NCollection_BaseAllocator > &theAllocator=0L)
 Common for all collections constructor takes care of theAllocator. More...
 
virtual ~NCollection_BaseCollection (void)
 Destructor - must be implemented to release the memory. More...
 
const Handle
< NCollection_BaseAllocator > & 
Allocator () const
 Returns attached allocator. More...
 
- Public Member Functions inherited from NCollection_BaseList
Standard_Integer Extent (void) const
 
Standard_Boolean IsEmpty (void) const
 

Additional Inherited Members

- Protected Member Functions inherited from NCollection_BaseCollection< TheItemType >
const Handle
< NCollection_BaseAllocator > & 
IterAllocator (void) const
 
void exchangeAllocators (NCollection_BaseCollection &theOther)
 Exchange allocators of two collections. More...
 
- Protected Member Functions inherited from NCollection_BaseList
 NCollection_BaseList (void)
 
void PClear (NCollection_DelListNode fDel, Handle< NCollection_BaseAllocator > &theAllocator)
 
const NCollection_ListNodePFirst (void) const
 
const NCollection_ListNodePLast (void) const
 
void PAppend (NCollection_ListNode *theNode)
 
void PAppend (NCollection_ListNode *theNode, Iterator &theIt)
 
void PAppend (NCollection_BaseList &theOther)
 
void PPrepend (NCollection_ListNode *theNode)
 
void PPrepend (NCollection_BaseList &theOther)
 
void PRemoveFirst (NCollection_DelListNode fDel, Handle< NCollection_BaseAllocator > &theAllocator)
 
void PRemove (Iterator &theIter, NCollection_DelListNode fDel, Handle< NCollection_BaseAllocator > &theAllocator)
 
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 ()
 
- Protected Attributes inherited from NCollection_BaseCollection< TheItemType >
Handle< NCollection_BaseAllocatormyAllocator
 
- Protected Attributes inherited from NCollection_BaseList
NCollection_ListNodemyFirst
 
NCollection_ListNodemyLast
 
Standard_Integer myLength
 

Detailed Description

template<class TheItemType>
class NCollection_List< TheItemType >

Purpose: Simple list to link items together keeping the first and the last one. Inherits BaseList, adding the data item to each node.

Member Typedef Documentation

template<class TheItemType>
typedef NCollection_TListIterator<TheItemType> NCollection_List< TheItemType >::Iterator
template<class TheItemType>
typedef NCollection_TListNode<TheItemType> NCollection_List< TheItemType >::ListNode

Constructor & Destructor Documentation

template<class TheItemType>
NCollection_List< TheItemType >::NCollection_List ( const Handle< NCollection_BaseAllocator > &  theAllocator = 0L)
inline

Constructor.

template<class TheItemType>
NCollection_List< TheItemType >::NCollection_List ( const NCollection_List< TheItemType > &  theOther)
inline

Copy constructor.

template<class TheItemType>
NCollection_List< TheItemType >::~NCollection_List ( void  )
inline

Destructor - clears the List.

Member Function Documentation

template<class TheItemType>
TheItemType& NCollection_List< TheItemType >::Append ( const TheItemType &  theItem)
inline

Append one item at the end.

template<class TheItemType>
void NCollection_List< TheItemType >::Append ( const TheItemType &  theItem,
Iterator theIter 
)
inline

Append one item at the end and output iterator pointing at the appended item.

template<class TheItemType>
void NCollection_List< TheItemType >::Append ( NCollection_List< TheItemType > &  theOther)
inline

Append another list at the end.

template<class TheItemType>
virtual void NCollection_List< TheItemType >::Assign ( const NCollection_BaseCollection< TheItemType > &  theOther)
inlinevirtual

Replace this list by the items of theOther collection.

Implements NCollection_BaseCollection< TheItemType >.

template<class TheItemType>
void NCollection_List< TheItemType >::Assign ( const NCollection_List< TheItemType > &  theOther)
inline

Replace this list by the items of another list (theOther parameter)

template<class TheItemType>
void NCollection_List< TheItemType >::Clear ( const Handle< NCollection_BaseAllocator > &  theAllocator = 0L)
inline

Clear this list.

template<class TheItemType>
const TheItemType& NCollection_List< TheItemType >::First ( void  ) const
inline

First item.

template<class TheItemType>
TheItemType& NCollection_List< TheItemType >::InsertAfter ( const TheItemType &  theItem,
Iterator theIter 
)
inline

InsertAfter.

template<class TheItemType>
void NCollection_List< TheItemType >::InsertAfter ( NCollection_List< TheItemType > &  theOther,
Iterator theIter 
)
inline

InsertAfter.

template<class TheItemType>
TheItemType& NCollection_List< TheItemType >::InsertBefore ( const TheItemType &  theItem,
Iterator theIter 
)
inline

InsertBefore.

template<class TheItemType>
void NCollection_List< TheItemType >::InsertBefore ( NCollection_List< TheItemType > &  theOther,
Iterator theIter 
)
inline

InsertBefore.

template<class TheItemType>
const TheItemType& NCollection_List< TheItemType >::Last ( void  ) const
inline

Last item.

template<class TheItemType>
NCollection_List& NCollection_List< TheItemType >::operator= ( const NCollection_List< TheItemType > &  theOther)
inline

Replace this list by the items of theOther list.

template<class TheItemType>
TheItemType& NCollection_List< TheItemType >::Prepend ( const TheItemType &  theItem)
inline

Prepend one item at the beginning.

template<class TheItemType>
void NCollection_List< TheItemType >::Prepend ( NCollection_List< TheItemType > &  theOther)
inline

Prepend another list at the beginning.

template<class TheItemType>
void NCollection_List< TheItemType >::Remove ( Iterator theIter)
inline

Remove item.

template<class TheItemType>
void NCollection_List< TheItemType >::RemoveFirst ( void  )
inline

RemoveFirst item.

template<class TheItemType>
void NCollection_List< TheItemType >::Reverse ( )
inline

Reverse the list.

template<class TheItemType>
virtual Standard_Integer NCollection_List< TheItemType >::Size ( void  ) const
inlinevirtual

Size - Number of items.

Implements NCollection_BaseCollection< TheItemType >.


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