Time.  
 More...
#include <JTime.hh>
 | 
|   | JTime () | 
|   | Default constructor.  
  | 
|   | 
|   | JTime (const double t) | 
|   | Constructor.  
  | 
|   | 
| JTime &  | negate () | 
|   | Prefix unary minus.  
  | 
|   | 
| JTime &  | add (const JTime &value) | 
|   | Addition operator.  
  | 
|   | 
| JTime &  | sub (const JTime &value) | 
|   | Subtraction operator.  
  | 
|   | 
| JTime &  | mul (const double value) | 
|   | Multiplication operator.  
  | 
|   | 
| JTime &  | div (const double value) | 
|   | Division operator.  
  | 
|   | 
| void  | setT (const double time) | 
|   | Set time.  
  | 
|   | 
| double  | getT () const | 
|   | Get time.  
  | 
|   | 
Time. 
Definition at line 28 of file JGeometry3D/JTime.hh.
 
◆ JTime() [1/2]
  
  
      
        
          | JGEOMETRY3D::JTime::JTime  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ JTime() [2/2]
  
  
      
        
          | JGEOMETRY3D::JTime::JTime  | 
          ( | 
          const double |           t | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ negate()
  
  
      
        
          | JTime & JGEOMETRY3D::JTime::negate  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Prefix unary minus. 
- Returns
 - time 
 
Definition at line 54 of file JGeometry3D/JTime.hh.
   55    {
   57 
   58      return *this;
   59    }
 
 
 
◆ add()
  
  
      
        
          | JTime & JGEOMETRY3D::JTime::add  | 
          ( | 
          const JTime & |           value | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Addition operator. 
- Parameters
 - 
  
  
 
- Returns
 - time 
 
Definition at line 68 of file JGeometry3D/JTime.hh.
   69    {
   71 
   72      return *this;
   73    }
 
 
 
◆ sub()
  
  
      
        
          | JTime & JGEOMETRY3D::JTime::sub  | 
          ( | 
          const JTime & |           value | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Subtraction operator. 
- Parameters
 - 
  
  
 
- Returns
 - time 
 
Definition at line 82 of file JGeometry3D/JTime.hh.
   83    {
   85 
   86      return *this;
   87    }
 
 
 
◆ mul()
  
  
      
        
          | JTime & JGEOMETRY3D::JTime::mul  | 
          ( | 
          const double |           value | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Multiplication operator. 
- Parameters
 - 
  
    | value | multiplication factor  | 
  
   
- Returns
 - time 
 
Definition at line 96 of file JGeometry3D/JTime.hh.
   97    {
   99 
  100      return *this;
  101    }
 
 
 
◆ div()
  
  
      
        
          | JTime & JGEOMETRY3D::JTime::div  | 
          ( | 
          const double |           value | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Division operator. 
- Parameters
 - 
  
    | value | multiplication factor  | 
  
   
- Returns
 - time 
 
Definition at line 110 of file JGeometry3D/JTime.hh.
  111    {
  113 
  114      return *this;
  115    }
 
 
 
◆ setT()
  
  
      
        
          | void JGEOMETRY3D::JTime::setT  | 
          ( | 
          const double |           time | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ getT()
  
  
      
        
          | double JGEOMETRY3D::JTime::getT  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ operator>> [1/2]
  
  
      
        
          | std::istream & operator>>  | 
          ( | 
          std::istream & |           in,  | 
         
        
           | 
           | 
          JTime & |           time ) | 
         
       
   | 
  
friend   | 
  
 
Read time from input. 
- Parameters
 - 
  
  
 
- Returns
 - input stream 
 
Definition at line 147 of file JGeometry3D/JTime.hh.
  148    {
  149      in >> time.__t;
  150 
  151      return in;
  152    }
 
 
 
◆ operator<< [1/2]
  
  
      
        
          | std::ostream & operator<<  | 
          ( | 
          std::ostream & |           out,  | 
         
        
           | 
           | 
          const JTime & |           time ) | 
         
       
   | 
  
friend   | 
  
 
Write time to output. 
- Parameters
 - 
  
    | out | output stream  | 
    | time | time  | 
  
   
- Returns
 - output stream 
 
Definition at line 162 of file JGeometry3D/JTime.hh.
  163    {
  165 
  166      out << time.__t;
  167 
  168      return out;
  169    }
JFormat_t & getFormat()
Get format for given type.
 
 
 
 
◆ operator>> [2/2]
Read time from input. 
- Parameters
 - 
  
  
 
- Returns
 - reader 
 
Definition at line 179 of file JGeometry3D/JTime.hh.
  180    {
  181      in >> time.__t;
  182 
  183      return in;
  184    }
 
 
 
◆ operator<< [2/2]
Write time to output. 
- Parameters
 - 
  
  
 
- Returns
 - writer 
 
Definition at line 194 of file JGeometry3D/JTime.hh.
  195    {
  196      out << time.__t;
  197 
  198      return out;
  199    }
 
 
 
◆ __t
  
  
      
        
          | double JGEOMETRY3D::JTime::__t | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file: