Container for historical events.  
 More...
#include <JHistory.hh>
Container for historical events. 
Definition at line 98 of file JHistory.hh.
 
  
  
      
        
          | JFIT::JHistory::JHistory  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | JFIT::JHistory::JHistory  | 
          ( | 
          const int  | 
          type | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 195 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 208 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 228 of file JHistory.hh.
  230       return static_cast<const JHistory&
>(*this);
 
Container for historical events. 
 
 
 
 
  
  
      
        
          | JHistory& JFIT::JHistory::getHistory  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Get history. 
- Returns
 - histtory 
 
Definition at line 239 of file JHistory.hh.
  241       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 251 of file JHistory.hh.
  253       for (const_iterator i = this->begin(); i != this->end(); ++i) {
 
  254         if (i->type == type) {
 
 
 
 
  
  
      
        
          | JHistory& JFIT::JHistory::add  | 
          ( | 
          const int  | 
          type | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Add event to history. 
- Parameters
 - 
  
  
 
- Returns
 - this history 
 
Definition at line 269 of file JHistory.hh.
  271       push_back(
JEvent(type, this->size() + 1));
 
 
 
 
      
        
          | JFIT::JHistory::ClassDef  | 
          ( | 
          JHistory  | 
          ,  | 
        
        
           | 
           | 
          1  | 
            | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
  
  
      
        
          | 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 284 of file JHistory.hh.
  288       for (const_iterator i = history.begin(); i != history.end(); ++i) {
 
 
 
 
The documentation for this struct was generated from the following file: