NAME
OTC_AscendingQueue -
Implements an ascending priority queue.
SYNOPSIS
#include <OTC/collctn/ascqueue.hh>
template<class T>
class OTC_AscendingQueue : public OTC_PriorityQueue<T>
{
public:
static os_typespec* get_os_typespec();
~OTC_AscendingQueue();
inline OTC_AscendingQueue(int (*theRankFn)(T const&,T const&)=0);
inline OTC_AscendingQueue(OTC_AscendingQueue<T> const& theQueue);
inline OTC_AscendingQueue<T>& operator=(
OTC_AscendingQueue<T> const& theQueue
);
};
CLASS TYPE
Concrete
DESCRIPTION
This class derives from OTC_PriorityQueue, ensuring that
the priority queue is of the ascending type.
INITIALISATION
inline OTC_AscendingQueue(int (*theRankFn)(T const&,T const&)=0);
Creates an empty ascending priority queue.
theRankFn is an optional comparison
function to be used in preference to
OTC_RankActions.
inline OTC_AscendingQueue(OTC_AscendingQueue<T> const& theQueue);
Creates a queue which is a copy of
theQueue. If the queue holds pointers,
only the pointers are copied, not what
the pointers point at.
ASSIGNMENT
inline OTC_AscendingQueue<T>& operator=(
OTC_AscendingQueue<T> const& theQueue
);
Replaces the contents of this queue, with
the contents of theQueue. If the queue
holds pointers, only the pointers are
copied, not what the pointers point at.
SEE ALSO
OTC_PriorityQueue
LIBRARY
OTC
AUTHOR(S)
Graham Dumpleton
COPYRIGHT
Copyright 1992 1993 OTC LIMITED
Copyright 1994 DUMPLETON SOFTWARE CONSULTING PTY LIMITED