User Documentation
Centre for Vision, Speech & Signal Processing
DEVELOP IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
PriQueueLC::PriQueueLC(void)
PriQueueLC::PriQueueLC(const PriQueueLC &)
PriQueueLC::~PriQueueLC(void)
PriQueueLC::operator=(const PriQueueLC &)
PriQueueLC::IsElm(void) const
PriQueueLC::IsEmpty(void) const
PriQueueLC::Top(void)
PriQueueLC::Top(void) const
PriQueueLC::TopKey(void) const
PriQueueLC::DelTop(void)
PriQueueLC::GetTopPair(void)
PriQueueLC::GetTop(void)
PriQueueLC::Insert(const K &,const D &)
PriQueueLC::Insert(Tuple2C &)
PriQueueLC::Remove(const Tuple2C &)
PriQueueLC::Remove(const K &)
PriQueueLC::Size(void) const
PriQueueLC::Dump(HeapNodeC *,int)
PriQueueLC::Empty(void)
PriQueueLC<class K,class D>
 
Pointer based version of Priority Queue.
 
include "amma/PriQueueL.hh"
User Level:Default
Library:Mtype
Example:TPriQ.cc
Section:Containers.Queues
In Scope:std

Comments:
It is faster to use plain PriQueueC if you know the maximum size of the queue before its constructed.

 Notes:
   This is a BIG OBJECT.
   Keys must have operation '<' defined.
   This queue assumes: **** Small numbers == High priority. ****
 
The order in which items of equal priority are retrieved should be treated as 'unknown'.

Parent Classes: Variables:
Methods:
PriQueueLC()
Default constructor.

PriQueueLC(const PriQueueLC<K,D> & Oth)

~PriQueueLC()
Destructor.

PriQueueLC & operator=(const PriQueueLC<K,D> & Oth)
Assignment operator

BooleanT IsElm(void) const
Does the queue contains any items ?

BooleanT IsEmpty(void) const
Is the queue empty ?

D & Top(void)
Look/Modify data on top of queue.

const D & Top(void) const
Look at data on top of queue.

const K & TopKey(void) const
Look at key on top of queue.

void DelTop(void)
Delete item on top of queue.
NB. IsElm(), must be true before calling this.

Tuple2C<K,D> & GetTopPair(void)
Get Key/Data pair from queue.
WARNING: For advanced users only. !! Users responsability to delete returned info after use. !!

D GetTop(void)
Get Data from top of queue.

void Insert(const K & Key,const D & Data)
Insert Data/Key into queue.

void Insert(Tuple2C<K,D> & New)
Insert Data/Key into queue.

BooleanT Remove(const Tuple2C<K,D> & New)
Remove all instances of Key from queue.
Returns True if found.
BUG: NOT IMPLEMENTED

BooleanT Remove(const K & Key)
Remove all instances of Key from queue.
Returns True if found.
BUG: NOT IMPLEMENTED

int Size(void) const
Get number of items in queue. Slow !!!

void Dump(HeapNodeC<K,D> * Place = 0,int level = 0)
Dump to stdout

void Empty(void)
Empty the queue of all its contents.


Programmer:Charles Galambos, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001