File failed to load: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/extensions/ams.js
ALMaSS  1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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.

Member Typedef Documentation

◆ size_type

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

◆ value_type

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

Constructor & Destructor Documentation

◆ LowPriPair() [1/2]

template<class ELEMTYPE>
LowPriPair< ELEMTYPE >::LowPriPair ( )
inline
92  {
93  }

◆ LowPriPair() [2/2]

template<class ELEMTYPE>
LowPriPair< ELEMTYPE >::LowPriPair ( const ELEMTYPE &  a_element,
long  a_priority 
)
inline
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
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

Referenced by Farm::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