sequentialStackAdapter Class Template Reference
[GroupSequentialContainers]

Implements a sequential stack adapter for STL vectors. More...

#include <sequentialStack.h>

Inheritance diagram for sequentialStackAdapter:

goblinQueue managedObject goblinRootObject

Public Member Functions

 sequentialStackAdapter (TItem _n, goblinController &thisContext) throw ()
 ~sequentialStackAdapter () throw ()
unsigned long Size () const throw ()
unsigned long Allocated () const throw ()
char * Display () const throw ()
deque< TItem > & GetVector ()
void Insert (TItem w, TKey alpha=0) throw (ERRange)
TItem Delete () throw (ERRejected)
TItem Peek () const throw (ERRejected)
bool Empty () const throw ()
TItem Cardinality () const throw ()

Detailed Description

template<class TItem, class TKey = TFloat>
class sequentialStackAdapter< TItem, TKey >

Implements a sequential stack adapter for STL vectors.


Constructor & Destructor Documentation

sequentialStackAdapter (  TItem  _n,
goblinController &  thisContext
)  throw ()
 

~sequentialStackAdapter (   )  throw ()
 


Member Function Documentation

unsigned long Allocated (   )  const throw ()
 

Reimplemented from managedObject.

TItem Cardinality (   )  const throw () [virtual]
 

Query the current queue cardinality.

Returns:
The queue cardinality

Implements goblinQueue.

TItem Delete (   )  throw (ERRejected) [virtual]
 

Delete an element from the queue.

Returns:
The index of the deleted element

Implements goblinQueue.

char* Display (   )  const throw () [virtual]
 

Unconditional display of data objects.

Reimplemented from managedObject.

bool Empty (   )  const throw () [virtual]
 

Check if the queue is empty.

Return values:
true The queue is empty

Implements goblinQueue.

deque<TItem>& GetVector (   ) 
 

Extract the embeded STL vector object.

Returns:
A reference of the embeded STL vector object

void Insert (  TItem  w,
TKey  alpha = 0
)  throw (ERRange) [virtual]
 

Insert an index into the queue.

Parameters:
w The index to be inserted
alpha The priority of the inserted index

Implements goblinQueue.

TItem Peek (   )  const throw (ERRejected) [virtual]
 

Query what is coming next on the queue.

Returns:
The index of the element to be deleted next

Implements goblinQueue.

unsigned long Size (   )  const throw () [virtual]
 

Implements goblinQueue.