Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JFIT::JHistory::is_application Struct Reference

Auxiliary class to test history. More...

#include <JHistory.hh>

Public Member Functions

 is_application (int type)
 Constructor.
 
bool operator() (const JHistory &history) const
 Test history.
 

Public Attributes

int type
 

Detailed Description

Auxiliary class to test history.

Definition at line 166 of file JHistory.hh.

Constructor & Destructor Documentation

◆ is_application()

JFIT::JHistory::is_application::is_application ( int type)
inline

Constructor.

Parameters
typeapplication type

Definition at line 173 of file JHistory.hh.

173 :
174 type(type)
175 {}

Member Function Documentation

◆ operator()()

bool JFIT::JHistory::is_application::operator() ( const JHistory & history) const
inline

Test history.

Parameters
historyhistory
Returns
true if given history ends with this application type; else false

Definition at line 184 of file JHistory.hh.

185 {
186 return !history.empty() && history.rbegin()->type == this->type;
187 }

Member Data Documentation

◆ type

int JFIT::JHistory::is_application::type

Definition at line 189 of file JHistory.hh.


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