|
User Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
BIG OBJECT
Keys must have operation '<' defined.
This queue assumes: **** Small numbers == High priority. ****
Variables:
Methods:
- PriQueueC(UIntT initSize = 32)
-
Default constructor.
- PriQueueC(const PriQueueC<K,D> & body)
-
Copy constructor.
- 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.
Refrence not garanteed to stay valid
after any insert/delete operation !
- const D & Top(void) const
-
Look at data on top of queue.
Refrence not garanteed to stay valid
after any insert/delete operation !
- const K & TopKey(void) const
-
Look at key on top of queue.
Refrence not garanteed to stay valid
after any insert/delete operation !
- 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.
- D GetTop(void)
-
Get Data from top of queue.
- void Insert(const K & Key,const D & Data)
-
Insert Data/Key into queue.
- void Insert(const Tuple2C<K,D> & dat)
-
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
- UIntT Size(void) const
-
Get number of items in queue.
- void Empty(void)
-
Empty the queue of all its contents.
- BooleanT Check()
-
Check consistancy.
|
Programmer:Charles Galambos, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001
|