This is the documentation for Enlighten.
class Geo GeoPriorityQueue
template<typename T>
class Geo::GeoPriorityQueue
Implements a priority queue, with priority being determined by T's > operator.
Functions
Name | Description |
|---|---|
Destructor deletes all objects in the queue and then releases any memory allocated on init. | |
Empty the queue. | |
Walk all of the objects in the queue and call the callback (oldest first) Returns false if early termination requested by callback. | |
Constructor. | |
Constructor just clears the pointers, queue must have a size specified before it can be used. | |
Allows access to the start of the object array. | |
Read the oldest object in the queue but don't remover it. | |
Read the oldest object in the queue but don't remover it. | |
Read the oldest object in the queue, removing it from the queue. | |
Read the oldest object in the queue, removing it from the queue. | |
Implements the actual moving of data used in SetMaxObjects. | |
Sets the maximum number of objects to the specified value, retaining any objects already in the queue. | |
Write an object to the queue. | |
Write an object to the queue. |
Geo::GeoQueue< T >::~GeoQueue
public: ~GeoQueue()
Destructor deletes all objects in the queue and then releases any memory allocated on init.
void Geo::GeoQueue< T >::EmptyQueue
public: void EmptyQueue()
Empty the queue.
bool Geo::GeoQueue< T >::Enumerate
public: bool Enumerate
(
GeoQueueEnumInterface< T > * callback,
void * context
)
Walk all of the objects in the queue and call the callback (oldest first) Returns false if early termination requested by callback.