HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TIL_PriorityQueue Class Reference

#include <TIL_PriorityQueue.h>

Public Member Functions

 TIL_PriorityQueue (unsigned int nbuckets, unsigned int bucket_range, unsigned int max_entries)
 
 ~TIL_PriorityQueue ()
 
void add (TIL_PNode *node, unsigned int priority)
 
void remove (TIL_PNode *node)
 
TIL_PNodepop ()
 
bool isEmpty () const
 
void empty (bool delete_nodes=true)
 
void setPriorityRange (unsigned int bucket_range)
 
unsigned int getPriorityRange () const
 
void setMaxSize (unsigned int size)
 
unsigned int getMaxBucketSize (int bn) const
 
unsigned int getNumBuckets () const
 
unsigned int getBucketSize (int bucket) const
 
int traverse (int(*tfunc)(TIL_PNode *, void *), void *data)
 

Detailed Description

Definition at line 22 of file TIL_PriorityQueue.h.

Constructor & Destructor Documentation

TIL_PriorityQueue::TIL_PriorityQueue ( unsigned int  nbuckets,
unsigned int  bucket_range,
unsigned int  max_entries 
)
TIL_PriorityQueue::~TIL_PriorityQueue ( )

Member Function Documentation

void TIL_PriorityQueue::add ( TIL_PNode node,
unsigned int  priority 
)
void TIL_PriorityQueue::empty ( bool  delete_nodes = true)
unsigned int TIL_PriorityQueue::getBucketSize ( int  bucket) const
unsigned int TIL_PriorityQueue::getMaxBucketSize ( int  bn) const
inline

Definition at line 55 of file TIL_PriorityQueue.h.

unsigned int TIL_PriorityQueue::getNumBuckets ( ) const
inline

Definition at line 57 of file TIL_PriorityQueue.h.

unsigned int TIL_PriorityQueue::getPriorityRange ( ) const
inline

Definition at line 50 of file TIL_PriorityQueue.h.

bool TIL_PriorityQueue::isEmpty ( ) const
TIL_PNode* TIL_PriorityQueue::pop ( )
void TIL_PriorityQueue::remove ( TIL_PNode node)
void TIL_PriorityQueue::setMaxSize ( unsigned int  size)
void TIL_PriorityQueue::setPriorityRange ( unsigned int  bucket_range)
int TIL_PriorityQueue::traverse ( int(*)(TIL_PNode *, void *)  tfunc,
void data 
)

The documentation for this class was generated from the following file: