Open CASCADE Technology 6.6.0
|
#include <NCollection_List.hxx>
Public Types | |
typedef NCollection_TListNode < TheItemType > | ListNode |
typedef NCollection_TListIterator < TheItemType > | Iterator |
Public Member Functions | |
NCollection_List (const Handle< NCollection_BaseAllocator > &theAllocator=0L) | |
Constructor. | |
NCollection_List (const NCollection_List &theOther) | |
Copy constructor. | |
virtual Standard_Integer | Size (void) const |
Size - Number of items. | |
virtual void | Assign (const NCollection_BaseCollection< TheItemType > &theOther) |
Replace this list by the items of theOther collection. | |
void | Assign (const NCollection_List &theOther) |
Replace this list by the items of another list (theOther parameter) | |
NCollection_List & | operator= (const NCollection_List &theOther) |
Replace this list by the items of theOther list. | |
void | Clear (const Handle< NCollection_BaseAllocator > &theAllocator=0L) |
Clear this list. | |
const TheItemType & | First (void) const |
First item. | |
const TheItemType & | Last (void) const |
Last item. | |
TheItemType & | Append (const TheItemType &theItem) |
Append one item at the end. | |
void | Append (const TheItemType &theItem, Iterator &theIter) |
Append one item at the end and output iterator pointing at the appended item. | |
void | Append (NCollection_List &theOther) |
Append another list at the end. | |
TheItemType & | Prepend (const TheItemType &theItem) |
Prepend one item at the beginning. | |
void | Prepend (NCollection_List &theOther) |
Prepend another list at the beginning. | |
void | RemoveFirst (void) |
RemoveFirst item. | |
void | Remove (Iterator &theIter) |
Remove item. | |
TheItemType & | InsertBefore (const TheItemType &theItem, Iterator &theIter) |
InsertBefore. | |
void | InsertBefore (NCollection_List &theOther, Iterator &theIter) |
InsertBefore. | |
TheItemType & | InsertAfter (const TheItemType &theItem, Iterator &theIter) |
InsertAfter. | |
void | InsertAfter (NCollection_List &theOther, Iterator &theIter) |
InsertAfter. | |
void | Reverse () |
Reverse the list. | |
~NCollection_List (void) | |
Destructor - clears the List. |
Purpose: Simple list to link items together keeping the first and the last one. Inherits BaseList, adding the data item to each node.
typedef NCollection_TListIterator<TheItemType> NCollection_List< TheItemType >::Iterator |
Reimplemented from NCollection_BaseList.
typedef NCollection_TListNode<TheItemType> NCollection_List< TheItemType >::ListNode |
NCollection_List< TheItemType >::NCollection_List | ( | const Handle< NCollection_BaseAllocator > & | theAllocator = 0L | ) | [inline] |
NCollection_List< TheItemType >::NCollection_List | ( | const NCollection_List< TheItemType > & | theOther | ) | [inline] |
NCollection_List< TheItemType >::~NCollection_List | ( | void | ) | [inline] |
TheItemType& NCollection_List< TheItemType >::Append | ( | const TheItemType & | theItem | ) | [inline] |
void NCollection_List< TheItemType >::Append | ( | const TheItemType & | theItem, |
Iterator & | theIter | ||
) | [inline] |
void NCollection_List< TheItemType >::Append | ( | NCollection_List< TheItemType > & | theOther | ) | [inline] |
virtual void NCollection_List< TheItemType >::Assign | ( | const NCollection_BaseCollection< TheItemType > & | theOther | ) | [inline, virtual] |
Implements NCollection_BaseCollection< TheItemType >.
void NCollection_List< TheItemType >::Assign | ( | const NCollection_List< TheItemType > & | theOther | ) | [inline] |
void NCollection_List< TheItemType >::Clear | ( | const Handle< NCollection_BaseAllocator > & | theAllocator = 0L | ) | [inline] |
const TheItemType& NCollection_List< TheItemType >::First | ( | void | ) | const [inline] |
TheItemType& NCollection_List< TheItemType >::InsertAfter | ( | const TheItemType & | theItem, |
Iterator & | theIter | ||
) | [inline] |
void NCollection_List< TheItemType >::InsertAfter | ( | NCollection_List< TheItemType > & | theOther, |
Iterator & | theIter | ||
) | [inline] |
void NCollection_List< TheItemType >::InsertBefore | ( | NCollection_List< TheItemType > & | theOther, |
Iterator & | theIter | ||
) | [inline] |
TheItemType& NCollection_List< TheItemType >::InsertBefore | ( | const TheItemType & | theItem, |
Iterator & | theIter | ||
) | [inline] |
const TheItemType& NCollection_List< TheItemType >::Last | ( | void | ) | const [inline] |
NCollection_List& NCollection_List< TheItemType >::operator= | ( | const NCollection_List< TheItemType > & | theOther | ) | [inline] |
TheItemType& NCollection_List< TheItemType >::Prepend | ( | const TheItemType & | theItem | ) | [inline] |
void NCollection_List< TheItemType >::Prepend | ( | NCollection_List< TheItemType > & | theOther | ) | [inline] |
void NCollection_List< TheItemType >::Remove | ( | Iterator & | theIter | ) | [inline] |
void NCollection_List< TheItemType >::RemoveFirst | ( | void | ) | [inline] |
void NCollection_List< TheItemType >::Reverse | ( | ) | [inline] |
virtual Standard_Integer NCollection_List< TheItemType >::Size | ( | void | ) | const [inline, virtual] |
Implements NCollection_BaseCollection< TheItemType >.