Jpp
 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 149 of file JHistory.hh.

Constructor & Destructor Documentation

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

Constructor.

Parameters
typeapplication type

Definition at line 155 of file JHistory.hh.

156  {
157  this->type = type;
158  }

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 167 of file JHistory.hh.

168  {
169  using namespace std;
170  using namespace JLANG;
171 
172  return count_if(history.begin(), history.end(), make_predicate(&JEvent::type, this->type)) == 0;
173  }
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:85

Member Data Documentation

int JFIT::JHistory::is_not_event::type

Definition at line 175 of file JHistory.hh.


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