Jpp  17.1.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
JFIT::JHistory::is_not_event Struct Reference

Auxiliary class to test history. More...

#include <JHistory.hh>

Public Member Functions

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

Public Attributes

int type
 

Detailed Description

Auxiliary class to test history.

Definition at line 153 of file JHistory.hh.

Constructor & Destructor Documentation

Constructor.

Parameters
typeapplication type

Definition at line 159 of file JHistory.hh.

160  {
161  this->type = type;
162  }

Member Function Documentation

bool JFIT::JHistory::is_not_event::operator() ( const JHistory history) const
inline

Test history.

Parameters
historyhistory
Returns
true if given history does not contain specified event type; else false

Definition at line 171 of file JHistory.hh.

172  {
173  using namespace std;
174  using namespace JPP;
175 
176  return count_if(history.begin(), history.end(), make_predicate(&JEvent::type, this->type)) == 0;
177  }
JPredicate< JResult_t T::*, JComparison::eq > make_predicate(JResult_t T::*member, const JResult_t value)
Helper method to create predicate for data member.
Definition: JPredicate.hh:128
int type
application type
Definition: JHistory.hh:89

Member Data Documentation

int JFIT::JHistory::is_not_event::type

Definition at line 179 of file JHistory.hh.


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