#include <NCollection_List.hxx>
Inheritance diagram for NCollection_List< TheItemType >:
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. | |
Private Member Functions | |
virtual TYPENAME NCollection_BaseCollection< TheItemType >::Iterator & | CreateIterator (void) const |
Creates Iterator for use on BaseCollection. | |
void | appendList (const NCollection_ListNode *pCur) |
append the list headed by the given ListNode | |
void | prependList (const NCollection_ListNode *pCur, Iterator &theIter) |
insert the list headed by the given ListNode before the given iterator |
|
Reimplemented from NCollection_BaseList. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Implements NCollection_BaseCollection< TheItemType >. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Implements NCollection_BaseCollection< TheItemType >. |