ALMaSS Partridge ODdox  1.1
The partridge model description following ODdox protocol
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

◆ size_type

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

Definition at line 86 of file lowqueue.h.

◆ value_type

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

Definition at line 85 of file lowqueue.h.

Constructor & Destructor Documentation

◆ LowPriPair() [1/2]

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

Definition at line 91 of file lowqueue.h.

92  {
93  }

◆ LowPriPair() [2/2]

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  }

Member Function Documentation

◆ operator<()

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

Definition at line 101 of file lowqueue.h.

102  {
103  return m_pri > a_another_pri_pair.m_pri;
104  }

References LowPriPair< ELEMTYPE >::m_pri.

Member Data Documentation

◆ m_element

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().

◆ m_pri

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

The documentation for this struct was generated from the following file:
LowPriPair::m_pri
long m_pri
Definition: lowqueue.h:89
LowPriPair::m_element
ELEMTYPE m_element
Definition: lowqueue.h:88