ALMaSS Rabbit ODdox  1.1
The rabbit model description following ODdox protocol
CompareState Class Reference

Function to compare to TAnimal's Current behavioural state. More...

Public Member Functions

bool operator() (TAnimal *A1, TAnimal *A2) const
 

Detailed Description

Function to compare to TAnimal's Current behavioural state.

NB WhatState must be reimplemented by all descendents of TAnimal that use this functionality (not all do)

Definition at line 171 of file PopulationManager.cpp.

Member Function Documentation

◆ operator()()

bool CompareState::operator() ( TAnimal A1,
TAnimal A2 
) const
inline

Definition at line 173 of file PopulationManager.cpp.

173  {
174  return (A1->WhatState() < A2->WhatState());
175  }

References TAnimal::WhatState().


The documentation for this class was generated from the following file:
TAnimal::WhatState
virtual int WhatState()
Definition: populationmanager.h:263