Public Member Functions

zeus::IPriorityQueue< TKeyType, TValueType > Class Template Reference

#include <IPriorityQueue.hpp>

Inheritance diagram for zeus::IPriorityQueue< TKeyType, TValueType >:
zeus::IQueue< TValueType > zeus::IValueType zeus::TPriorityQueue< TKeyType, TValueType >

List of all members.

Public Member Functions

virtual void MQUALIFIER appendPriorityItem (const TKeyType &rKey, const TValueType &tData)=0
virtual void MQUALIFIER copyToPriorityQueue (IPriorityQueue< TKeyType, TValueType > &rQueue) const =0
virtual const TKeyType &MQUALIFIER peekPriority () const =0

Detailed Description

template<class TKeyType, class TValueType>
class zeus::IPriorityQueue< TKeyType, TValueType >

This interface describes a FIFO list (queue) with priority sort. The sort will be done with the key type.


Member Function Documentation

template<class TKeyType, class TValueType>
virtual void MQUALIFIER zeus::IPriorityQueue< TKeyType, TValueType >::appendPriorityItem ( const TKeyType &  rKey,
const TValueType &  tData 
) [pure virtual]

adds an object to the priority queue

Parameters:
rKey: Priority key
tData: Data object

Implemented in zeus::TPriorityQueue< TKeyType, TValueType >.

template<class TKeyType, class TValueType>
virtual void MQUALIFIER zeus::IPriorityQueue< TKeyType, TValueType >::copyToPriorityQueue ( IPriorityQueue< TKeyType, TValueType > &  rQueue ) const [pure virtual]

Copies the content to the rQueue object

Parameters:
rQueue: Target object

Implemented in zeus::TPriorityQueue< TKeyType, TValueType >.

template<class TKeyType, class TValueType>
virtual const TKeyType& MQUALIFIER zeus::IPriorityQueue< TKeyType, TValueType >::peekPriority (  ) const [pure virtual]

returns the priority of the front element without removing it from the queue

Returns:
priority of the front element

Implemented in zeus::TPriorityQueue< TKeyType, TValueType >.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Sun Jan 22 2012 15:28:35