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 27 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 53 of file JGeometry3D/JTime.hh.
54 {
56
57 return *this;
58 }
◆ add()
JTime & JGEOMETRY3D::JTime::add |
( |
const JTime & | value | ) |
|
|
inline |
Addition operator.
- Parameters
-
- Returns
- time
Definition at line 67 of file JGeometry3D/JTime.hh.
68 {
70
71 return *this;
72 }
◆ sub()
JTime & JGEOMETRY3D::JTime::sub |
( |
const JTime & | value | ) |
|
|
inline |
Subtraction operator.
- Parameters
-
- Returns
- time
Definition at line 81 of file JGeometry3D/JTime.hh.
82 {
84
85 return *this;
86 }
◆ mul()
JTime & JGEOMETRY3D::JTime::mul |
( |
const double | value | ) |
|
|
inline |
Multiplication operator.
- Parameters
-
value | multiplication factor |
- Returns
- time
Definition at line 95 of file JGeometry3D/JTime.hh.
96 {
98
99 return *this;
100 }
◆ div()
JTime & JGEOMETRY3D::JTime::div |
( |
const double | value | ) |
|
|
inline |
Division operator.
- Parameters
-
value | multiplication factor |
- Returns
- time
Definition at line 109 of file JGeometry3D/JTime.hh.
110 {
112
113 return *this;
114 }
◆ 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 146 of file JGeometry3D/JTime.hh.
147 {
148 in >> time.__t;
149
150 return in;
151 }
◆ 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 161 of file JGeometry3D/JTime.hh.
162 {
164
165 out << time.__t;
166
167 return out;
168 }
JFormat_t & getFormat()
Get format for given type.
◆ operator>> [2/2]
Read time from input.
- Parameters
-
- Returns
- reader
Definition at line 178 of file JGeometry3D/JTime.hh.
179 {
180 in >> time.__t;
181
182 return in;
183 }
◆ operator<< [2/2]
Write time to output.
- Parameters
-
- Returns
- writer
Definition at line 193 of file JGeometry3D/JTime.hh.
194 {
195 out << time.__t;
196
197 return out;
198 }
◆ __t
double JGEOMETRY3D::JTime::__t |
|
protected |
The documentation for this class was generated from the following file: