Container for historical events.  
 More...
#include <JHistory.hh>
Container for historical events. 
Definition at line 99 of file JHistory.hh.
 
  
  
      
        
          | JFIT::JHistory::JHistory  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | JFIT::JHistory::JHistory  | 
          ( | 
          const int  | 
          type | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 196 of file JHistory.hh.
JHistory & add(const int type)
Add event to history. 
 
 
 
 
  
  
      
        
          | JFIT::JHistory::JHistory  | 
          ( | 
          const JHistory &  | 
          history,  | 
         
        
           | 
           | 
          const int  | 
          type  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | history | history  | 
    | type | application type  | 
  
   
Definition at line 209 of file JHistory.hh.
JHistory & add(const int type)
Add event to history. 
 
 
 
 
  
  
      
        
          | virtual JFIT::JHistory::~JHistory  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
  
  
      
        
          | const JHistory& JFIT::JHistory::getHistory  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get history. 
- Returns
 - histtory 
 
Definition at line 229 of file JHistory.hh.
  231       return static_cast<const JHistory&
>(*this);
 
Container for historical events. 
 
 
 
 
  
  
      
        
          | JHistory& JFIT::JHistory::getHistory  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Get history. 
- Returns
 - histtory 
 
Definition at line 240 of file JHistory.hh.
  242       return static_cast<JHistory&
>(*this);
 
Container for historical events. 
 
 
 
 
  
  
      
        
          | bool JFIT::JHistory::has  | 
          ( | 
          const int  | 
          type | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Has event in history. 
- Parameters
 - 
  
  
 
- Returns
 - true if given event in history; else false 
 
Definition at line 252 of file JHistory.hh.
  254       for (const_iterator i = this->begin(); i != this->end(); ++i) {
 
  255         if (i->type == type) {
 
 
 
 
  
  
      
        
          | bool JFIT::JHistory::getStatus  | 
          ( | 
          const std::vector< int > &  | 
          types | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get status. 
- Parameters
 - 
  
  
 
- Returns
 - true if history matches appplication types; else false 
 
Definition at line 270 of file JHistory.hh.
  272       if (this->size() == types.size()) {
 
  274         for (
size_t i = 0; i != this->size(); ++i) {
 
  275           if ((*
this)[i].type != types[i]) {
 
 
 
 
  
  
      
        
          | JHistory& JFIT::JHistory::add  | 
          ( | 
          const int  | 
          type | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Add event to history. 
- Parameters
 - 
  
  
 
- Returns
 - this history 
 
Definition at line 295 of file JHistory.hh.
 
 
  
  
      
        
          | bool JFIT::JHistory::hasParentUUID  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Has parent UUID. 
Definition at line 306 of file JHistory.hh.
  308       return this->size() >= 2
u;
 
 
 
 
  
  
      
        
          | const JUUID& JFIT::JHistory::getUUID  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get UUID. 
Definition at line 315 of file JHistory.hh.
  317       return this->at(this->size() - 1).uuid;
 
 
 
 
  
  
      
        
          | const JUUID& JFIT::JHistory::getParentUUID  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get parent UUID. 
Definition at line 324 of file JHistory.hh.
  326       return this->at(this->size() - 2).uuid;
 
 
 
 
      
        
          | JFIT::JHistory::ClassDef  | 
          ( | 
          JHistory  | 
          ,  | 
        
        
           | 
           | 
          2  | 
            | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
  
  
      
        
          | std::ostream& operator<<  | 
          ( | 
          std::ostream &  | 
          out,  | 
         
        
           | 
           | 
          const JHistory &  | 
          history  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Write history to output stream. 
- Parameters
 - 
  
    | out | output stream  | 
    | history | history  | 
  
   
- Returns
 - output stream 
 
Definition at line 337 of file JHistory.hh.
  341       for (const_iterator i = history.begin(); i != history.end(); ++i) {
 
 
 
 
The documentation for this struct was generated from the following file: