LLPriQueueMap< DATA_TYPE > Class Template Reference

#include <llpriqueuemap.h>

Inheritance diagram for LLPriQueueMap< DATA_TYPE >:

Inheritance graph
[legend]
Collaboration diagram for LLPriQueueMap< DATA_TYPE >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::map< LLPQMKey<
DATA_TYPE >, DATA_TYPE
>::iterator 
pqm_iter
typedef std::pair< LLPQMKey<
DATA_TYPE >, DATA_TYPE > 
pqm_pair
typedef void(*) set_pri_fn (DATA_TYPE &data, const F32 priority)
typedef F32(*) get_pri_fn (DATA_TYPE &data)

Public Member Functions

 LLPriQueueMap (set_pri_fn set_pri, get_pri_fn get_pri)
void push (const F32 priority, DATA_TYPE data)
BOOL pop (DATA_TYPE *datap)
void reprioritize (const F32 new_priority, DATA_TYPE data)
S32 getLength () const

Public Attributes

std::map< LLPQMKey< DATA_TYPE >,
DATA_TYPE > 
mMap

Protected Attributes

void(* mSetPriority )(DATA_TYPE &data, const F32 priority)
F32(* mGetPriority )(DATA_TYPE &data)

Detailed Description

template<class DATA_TYPE>
class LLPriQueueMap< DATA_TYPE >

Definition at line 73 of file llpriqueuemap.h.


Member Typedef Documentation

template<class DATA_TYPE>
typedef F32(*) LLPriQueueMap< DATA_TYPE >::get_pri_fn(DATA_TYPE &data)

Definition at line 79 of file llpriqueuemap.h.

template<class DATA_TYPE>
typedef std::map<LLPQMKey<DATA_TYPE>, DATA_TYPE>::iterator LLPriQueueMap< DATA_TYPE >::pqm_iter

Definition at line 76 of file llpriqueuemap.h.

template<class DATA_TYPE>
typedef std::pair<LLPQMKey<DATA_TYPE>, DATA_TYPE> LLPriQueueMap< DATA_TYPE >::pqm_pair

Definition at line 77 of file llpriqueuemap.h.

template<class DATA_TYPE>
typedef void(*) LLPriQueueMap< DATA_TYPE >::set_pri_fn(DATA_TYPE &data, const F32 priority)

Definition at line 78 of file llpriqueuemap.h.


Constructor & Destructor Documentation

template<class DATA_TYPE>
LLPriQueueMap< DATA_TYPE >::LLPriQueueMap ( set_pri_fn  set_pri,
get_pri_fn  get_pri 
) [inline]

Definition at line 82 of file llpriqueuemap.h.


Member Function Documentation

template<class DATA_TYPE>
S32 LLPriQueueMap< DATA_TYPE >::getLength (  )  const [inline]

Definition at line 138 of file llpriqueuemap.h.

template<class DATA_TYPE>
BOOL LLPriQueueMap< DATA_TYPE >::pop ( DATA_TYPE *  datap  )  [inline]

Definition at line 98 of file llpriqueuemap.h.

template<class DATA_TYPE>
void LLPriQueueMap< DATA_TYPE >::push ( const F32  priority,
DATA_TYPE  data 
) [inline]

Definition at line 86 of file llpriqueuemap.h.

Referenced by LLTransferSourceChannel::addTransferSource(), and LLPriQueueMap< LLTransferSource * >::reprioritize().

template<class DATA_TYPE>
void LLPriQueueMap< DATA_TYPE >::reprioritize ( const F32  new_priority,
DATA_TYPE  data 
) [inline]

Definition at line 112 of file llpriqueuemap.h.

Referenced by LLTransferSourceChannel::updatePriority().


Member Data Documentation

template<class DATA_TYPE>
F32(* LLPriQueueMap< DATA_TYPE >::mGetPriority)(DATA_TYPE &data) [protected]

Referenced by LLPriQueueMap< LLTransferSource * >::reprioritize().

template<class DATA_TYPE>
std::map<LLPQMKey<DATA_TYPE>, DATA_TYPE> LLPriQueueMap< DATA_TYPE >::mMap

Definition at line 144 of file llpriqueuemap.h.

Referenced by LLTransferSourceChannel::deleteTransfer(), LLTransferSourceChannel::findTransferSource(), LLPriQueueMap< LLTransferSource * >::getLength(), LLPriQueueMap< LLTransferSource * >::pop(), LLPriQueueMap< LLTransferSource * >::push(), LLPriQueueMap< LLTransferSource * >::reprioritize(), LLTransferSourceChannel::updateTransfers(), and LLTransferSourceChannel::~LLTransferSourceChannel().

template<class DATA_TYPE>
void(* LLPriQueueMap< DATA_TYPE >::mSetPriority)(DATA_TYPE &data, const F32 priority) [protected]

Referenced by LLPriQueueMap< LLTransferSource * >::reprioritize().


The documentation for this class was generated from the following file:
Generated on Thu Jul 1 06:11:40 2010 for Second Life Viewer by  doxygen 1.4.7