name: PriorityQueue<TObject> : public DstrBase

synopsis:


g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_dstr_a

#include <PriorityQueue.h>

boolean push(TObject* item, COMPARE_FUNC comp_func = compare);
TObject* pop(TObject* item = (TObject*)NULL);
const TObject* top() const;
TObject* top();
boolean isEmpty() const;
long length() const;
long getCapacity() const;
boolean setLength(long length, boolean preserve_values = true);
boolean setCapacity(long capacity, boolean preserve_values = true);
quick start:


// declare a priority queue
//
Long* lng_00;
Long lng_01(3);
PriorityQueue<Long> pq_00;

pq_0.push(&lng_01);
lng_01 = pq_0.top();
pq_0.pop(&lng_01);

description:

This class implements a standard priority queue using a vector to implement the underlying heap data structure.

dependencies:

public constants:

error codes:

protected data:

required public methods:

class-specific public methods:

private methods:

examples:

notes: