ALMaSS Rabbit ODdox  1.00
The rabbit model description following ODdox protocol
Public Types | Public Member Functions | Public Attributes | List of all members
LowPriPair< ELEMTYPE > Struct Template Reference

Used in event handling. More...

#include <lowqueue.h>

Public Types

typedef LowPriPair value_type
 
typedef LowPriPair size_type
 

Public Member Functions

 LowPriPair ()
 
 LowPriPair (const ELEMTYPE &a_element, long a_priority)
 
bool operator< (const LowPriPair &a_another_pri_pair) const
 

Public Attributes

ELEMTYPE m_element
 
long m_pri
 

Detailed Description

template<class ELEMTYPE>
struct LowPriPair< ELEMTYPE >

Used in event handling.

Definition at line 83 of file lowqueue.h.

Member Typedef Documentation

template<class ELEMTYPE>
typedef LowPriPair LowPriPair< ELEMTYPE >::size_type

Definition at line 86 of file lowqueue.h.

template<class ELEMTYPE>
typedef LowPriPair LowPriPair< ELEMTYPE >::value_type

Definition at line 85 of file lowqueue.h.

Constructor & Destructor Documentation

template<class ELEMTYPE>
LowPriPair< ELEMTYPE >::LowPriPair ( )
inline

Definition at line 91 of file lowqueue.h.

92  {
93  }
template<class ELEMTYPE>
LowPriPair< ELEMTYPE >::LowPriPair ( const ELEMTYPE &  a_element,
long  a_priority 
)
inline

Definition at line 95 of file lowqueue.h.

96  {
97  m_element = a_element;
98  m_pri = a_priority;
99  }
ELEMTYPE m_element
Definition: lowqueue.h:88
long m_pri
Definition: lowqueue.h:89

Member Function Documentation

template<class ELEMTYPE>
bool LowPriPair< ELEMTYPE >::operator< ( const LowPriPair< ELEMTYPE > &  a_another_pri_pair) const
inline

Definition at line 101 of file lowqueue.h.

References LowPriPair< ELEMTYPE >::m_pri.

102  {
103  return m_pri > a_another_pri_pair.m_pri;
104  }
long m_pri
Definition: lowqueue.h:89

Member Data Documentation

template<class ELEMTYPE>
ELEMTYPE LowPriPair< ELEMTYPE >::m_element

Definition at line 88 of file lowqueue.h.

Referenced by Farm::HandleEvents(), OptimisingFarm::HandleEvents(), and Farm::~Farm().

template<class ELEMTYPE>
long LowPriPair< ELEMTYPE >::m_pri

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