|
Open CASCADE Technology
6.7.1
|
#include <NCollection_Stack.hxx>

Public Types | |
| typedef NCollection_TListNode < TheItemType > | StackNode |
| typedef NCollection_TListIterator < TheItemType > | Iterator |
Public Member Functions | |
| NCollection_Stack (const Handle< NCollection_BaseAllocator > &theAllocator=0L) | |
| Constructor. More... | |
| NCollection_Stack (const NCollection_Stack &theOther) | |
| Copy constructor. More... | |
| virtual Standard_Integer | Size (void) const |
| Size - Number of items. More... | |
| Standard_Integer | Depth (void) const |
| Depth - Number of items. More... | |
| virtual void | Assign (const NCollection_BaseCollection< TheItemType > &theOther) |
| Replace this list by the items of theOther collection. More... | |
| NCollection_Stack & | operator= (const NCollection_Stack &theOther) |
| Replace this list by the items of theOther Stack. More... | |
| void | Clear (void) |
| Clear this stack. More... | |
| const TheItemType & | Top (void) const |
| Top item - constant. More... | |
| TheItemType & | ChangeTop (void) |
| Top item - variable. More... | |
| void | Push (const TheItemType &theItem) |
| Push one item. More... | |
| void | Pop (void) |
| Pop top item. More... | |
| ~NCollection_Stack (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 |
Purpose: A stack is a structure where item can be added and removed from the top. Like a stack of plates in a kitchen. The last entered item will be be the first removed. This is called a LIFO (last In First Out). Inherits BaseList, adding the data item to each node.
| typedef NCollection_TListIterator<TheItemType> NCollection_Stack< TheItemType >::Iterator |
| typedef NCollection_TListNode<TheItemType> NCollection_Stack< TheItemType >::StackNode |
|
inline |
Constructor.
|
inline |
Copy constructor.
|
inline |
Destructor - clears the List.
|
inlinevirtual |
Replace this list by the items of theOther collection.
Implements NCollection_BaseCollection< TheItemType >.
|
inline |
Top item - variable.
|
inline |
Clear this stack.
|
inline |
Depth - Number of items.
|
inline |
Replace this list by the items of theOther Stack.
|
inline |
Pop top item.
|
inline |
Push one item.
|
inlinevirtual |
Size - Number of items.
Implements NCollection_BaseCollection< TheItemType >.
|
inline |
Top item - constant.
1.8.5