Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

template<typename T>
class Geo::GeoPriorityQueue

    └>Geo::GeoQueue< T >

GeoPriorityQueue.

Implements a priority queue, with priority being determined by T's > operator.

Functions

NameDescription
~GeoQueue()

Destructor deletes all objects in the queue and then releases any memory allocated on init.

EmptyQueue()

Empty the queue.

Enumerate(GeoQueueEnumInterface< T > *, void *)

Walk all of the objects in the queue and call the callback (oldest first) Returns false if early termination requested by callback.

GeoPriorityQueue()

Constructor.

GeoQueue()

Constructor just clears the pointers, queue must have a size specified before it can be used.

GetArrayPointer()

Allows access to the start of the object array.

Peek(T &)

Read the oldest object in the queue but don't remover it.

Peek(T &)

Read the oldest object in the queue but don't remover it.

Read(T &)

Read the oldest object in the queue, removing it from the queue.

Read(T &)

Read the oldest object in the queue, removing it from the queue.

ReSetMaxObjects(Geo::u32)

Implements the actual moving of data used in SetMaxObjects.

SetMaxObjects(Geo::u32)

Sets the maximum number of objects to the specified value, retaining any objects already in the queue.

Write(const T &)

Write an object to the queue.

Write(const T &)

Write an object to the queue.


Anchor
a2a32226aa6b5dc2dee0aed3f18ce0da0
a2a32226aa6b5dc2dee0aed3f18ce0da0

Geo::GeoQueue< T >::~GeoQueue

...

public: ~GeoQueue()

...

Destructor deletes all objects in the queue and then releases any memory allocated on init.


Anchor
abd97f99e45fcf232aa0ad0c34cdb36cc
abd97f99e45fcf232aa0ad0c34cdb36cc

void Geo::GeoQueue< T >::EmptyQueue

...

public: void EmptyQueue()

...

Empty the queue.


Anchor
a4199df5d2b9e444aa36a78b11439c856
a4199df5d2b9e444aa36a78b11439c856

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.


Anchor
ad4ef7c6667fa1f59b8f4620fb67c84ef
ad4ef7c6667fa1f59b8f4620fb67c84ef

Geo::GeoPriorityQueue< T >::GeoPriorityQueue

...

public: GeoPriorityQueue()

...

Constructor.


Anchor
a48079ac8c446f83e76fbeb9accf037c1
a48079ac8c446f83e76fbeb9accf037c1

Geo::GeoQueue< T >::GeoQueue

...

public: GeoQueue()

...

Constructor just clears the pointers, queue must have a size specified before it can be used.


Anchor
a05925a6593d0f1a88ff1282f1200260c
a05925a6593d0f1a88ff1282f1200260c

T* Geo::GeoQueue< T >::GetArrayPointer

...

protected: T * GetArrayPointer()

...

Allows access to the start of the object array.


Anchor
a88a8c1ad43d86aa5b40c7397fa88af7d
a88a8c1ad43d86aa5b40c7397fa88af7d

bool Geo::GeoPriorityQueue< T >::Peek

...

public: bool Peek
(
    T & object
)

...

Read the oldest object in the queue but don't remover it.


Anchor
a66ea237e87ce72bfe307fc01a897a4a1
a66ea237e87ce72bfe307fc01a897a4a1

bool Geo::GeoQueue< T >::Peek

...

public: bool Peek
(
    T & object
) const

...

Read the oldest object in the queue but don't remover it.


Anchor
a8afc54ad9f6621b6579aa4f39b190a8c
a8afc54ad9f6621b6579aa4f39b190a8c

bool Geo::GeoPriorityQueue< T >::Read

...

public: bool Read
(
    T & object
)

...

Read the oldest object in the queue, removing it from the queue.


Anchor
a8404cea1fa69612b05c491865ccb8974
a8404cea1fa69612b05c491865ccb8974

bool Geo::GeoQueue< T >::Read

...

public: bool Read
(
    T & object
)

...

Read the oldest object in the queue, removing it from the queue.


Anchor
a8b7dbefe4989739042a2f648ebbe7b41
a8b7dbefe4989739042a2f648ebbe7b41

bool Geo::GeoQueue< T >::ReSetMaxObjects

...

protected: bool ReSetMaxObjects
(
    Geo::u32 newMaxObjects
)

...

Implements the actual moving of data used in SetMaxObjects.


Anchor
a59c2cdd5a4f87eb9d5a5391ea458dd8b
a59c2cdd5a4f87eb9d5a5391ea458dd8b

bool Geo::GeoQueue< T >::SetMaxObjects

...

public: bool SetMaxObjects
(
    Geo::u32 newMaxObjects
)

...

Sets the maximum number of objects to the specified value, retaining any objects already in the queue.

Max objects of zero means free memory. The new max objects must be larger than the number of objects in the queue.


Anchor
a73d9bd623cb86437be165a4967803a97
a73d9bd623cb86437be165a4967803a97

bool Geo::GeoPriorityQueue< T >::Write

...

public: bool Write
(
    const T & object
)

...

Write an object to the queue.


Anchor
a4d82deac2a1f676e3e3b16790ca78982
a4d82deac2a1f676e3e3b16790ca78982

bool Geo::GeoQueue< T >::Write

...

public: bool Write
(
    const T & object
)

...

Write an object to the queue.