Open CASCADE Technology 6.6.0
|
#include <NCollection_Queue.hxx>
Public Types | |
typedef NCollection_TListNode < TheItemType > | QueueNode |
typedef NCollection_TListIterator < TheItemType > | Iterator |
Public Member Functions | |
NCollection_Queue (const Handle< NCollection_BaseAllocator > &theAllocator=0L) | |
Constructor. | |
NCollection_Queue (const NCollection_Queue &theOther) | |
Copy constructor. | |
virtual Standard_Integer | Size (void) const |
Size - Number of items. | |
Standard_Integer | Length (void) const |
Length - number of items. | |
virtual void | Assign (const NCollection_BaseCollection< TheItemType > &theOther) |
Replace this list by the items of theOther collection. | |
NCollection_Queue & | operator= (const NCollection_Queue &theOther) |
Replace this list by the items of theOther queue. | |
void | Clear (void) |
Clear this queue. | |
const TheItemType & | Front (void) const |
Frontal item - constant. | |
TheItemType & | ChangeFront (void) |
Frontal item - variable. | |
void | Push (const TheItemType &theItem) |
Push one item. | |
void | Pop (void) |
Pop first item. | |
~NCollection_Queue (void) | |
Destructor - clears the List. |
Purpose: A queue is a structure where Items are added at the end and removed from the front. The first entered Item will be the first removed. This is called a FIFO (First In First Out). Inherits BaseList, adds the data item to each node.
typedef NCollection_TListIterator<TheItemType> NCollection_Queue< TheItemType >::Iterator |
Reimplemented from NCollection_BaseList.
typedef NCollection_TListNode<TheItemType> NCollection_Queue< TheItemType >::QueueNode |
NCollection_Queue< TheItemType >::NCollection_Queue | ( | const Handle< NCollection_BaseAllocator > & | theAllocator = 0L | ) | [inline] |
NCollection_Queue< TheItemType >::NCollection_Queue | ( | const NCollection_Queue< TheItemType > & | theOther | ) | [inline] |
NCollection_Queue< TheItemType >::~NCollection_Queue | ( | void | ) | [inline] |
virtual void NCollection_Queue< TheItemType >::Assign | ( | const NCollection_BaseCollection< TheItemType > & | theOther | ) | [inline, virtual] |
Implements NCollection_BaseCollection< TheItemType >.
TheItemType& NCollection_Queue< TheItemType >::ChangeFront | ( | void | ) | [inline] |
void NCollection_Queue< TheItemType >::Clear | ( | void | ) | [inline] |
const TheItemType& NCollection_Queue< TheItemType >::Front | ( | void | ) | const [inline] |
Standard_Integer NCollection_Queue< TheItemType >::Length | ( | void | ) | const [inline] |
NCollection_Queue& NCollection_Queue< TheItemType >::operator= | ( | const NCollection_Queue< TheItemType > & | theOther | ) | [inline] |
void NCollection_Queue< TheItemType >::Pop | ( | void | ) | [inline] |
void NCollection_Queue< TheItemType >::Push | ( | const TheItemType & | theItem | ) | [inline] |
virtual Standard_Integer NCollection_Queue< TheItemType >::Size | ( | void | ) | const [inline, virtual] |
Implements NCollection_BaseCollection< TheItemType >.