Class Index | Cross Index | Namespace Index |
A class storing seconds & nanoseconds.
Contained in: FrameCPP::Version_3_4_5
Derived from:
none
Derived by:
none
#include "../../../../../lib/framecpp/src/Version3_4_5/time.hh"
public function member index: |
|||
inline explicit | Time | (INT_4S sec = 0, INT_4U nsec = 0); | Constructor. |
inline | Time | (const Time& time); | Copy Constructor. |
inline INT_4U | getNSec | () const; | Get the number of nanoseconds. |
inline INT_4S | getSec | () const; | Get the number of seconds. |
bool | operator != | (const Time& time) const; | Not equal comparison. |
const Time& | operator *= | (const double& d); | Multiplication and assignment. |
const Time& | operator += | (const Time& time); | Addition & assignment. |
const Time& | operator -= | (const Time& time); | Subtraction and assignment. |
double | operator / | (const Time& time); | Division. |
const Time& | operator /= | (const double& d); | Division and assignment. |
bool | operator < | (const Time& time) const; | Less than comparison. |
bool | operator <= | (const Time& time) const; | Less than or equal to comparison. |
const Time& | operator = | (const Time& time); | Assignment Operator. |
bool | operator == | (const Time& time) const; | Equal comparison. |
bool | operator > | (const Time& time) const; | Greater than comparison. |
bool | operator >= | (const Time& time) const; | Greater than or equal to comparison. |
INT_4U | setNSec | (INT_4U nsec); | Set nanosecond residual |
INT_4S | setSec | (INT_4S s); | Set seconds |
Parameters:
Parameter | Description |
INT_4S sec | number of seconds. Default: 0 |
INT_4U nsec | number of nanoseconds. Default: 0 |
Exceptions:
Exception | Description |
None. | |
None. |
Parameters:
Parameter | Description |
const Time& time | Object to be copied. |
Exceptions:
Exception | Description |
None. | |
None. |
Return value:
INT_4UThe number of nanoseconds.
Exceptions:
Exception | Description |
None. | |
None. |
Return value:
INT_4SNumber of seconds.
Exceptions:
Exception | Description |
None. | |
None. |
Parameters:
Parameter | Description |
const Time& time | The object to compare with. |
Return value:
boolTrue if this object's time is not equal to `time'.
Exceptions:
Exception | Description |
None. |
Parameters:
Parameter | Description |
const double& d | Multiplier. |
Return value:
const Time& timeThis object.
Exceptions:
Exception | Description |
None. |
Parameters:
Parameter | Description |
const Time& time | Time to be added. |
Return value:
const Time& timeThis object.
Exceptions:
Exception | Description |
None. |
Parameters:
Parameter | Description |
const Time& time | Time to be subtracted. |
Return value:
const Time& timeThis object.
Exceptions:
Exception | Description |
None. |
Parameters:
Parameter | Description |
const Time& time | Divider. |
Return value:
doubleThis object time devided by `time'.
Exceptions:
Exception | Description |
None. |
Parameters:
Parameter | Description |
const double& d | Divider. |
Return value:
const Time& timeThis object.
Exceptions:
Exception | Description |
None. |
Parameters:
Parameter | Description |
const Time& time | The object to compare with. |
Return value:
boolTrue if this object's time is less than `time'.
Exceptions:
Exception | Description |
None. |
Parameters:
Parameter | Description |
const Time& time | The object to compare with. |
Return value:
boolTrue if this object's time is less than ot equal to `time'.
Exceptions:
Exception | Description |
None. |
Parameters:
Parameter | Description |
const Time& time | Time to be assigned to. |
Return value:
const Time&This object.
Exceptions:
Exception | Description |
None. |
Determines whether two Time objects are equal.
Parameters:
Parameter | Description |
const Time& time | The object to compare with. |
Return value:
boolTrue if the objects are equal.
Exceptions:
Exception | Description |
None. |
Parameters:
Parameter | Description |
const Time& time | The object to compare with. |
Return value:
boolTrue if this object's time is greater than `time'.
Exceptions:
Exception | Description |
None. |
Parameters:
Parameter | Description |
const Time& time | The object to compare with. |
Return value:
boolTrue if this object's time is greater or equal to `time'.
Exceptions:
Exception | Description |
None. |
Exceptions:
Exception | Description |
None. |
Exceptions:
Exception | Description |
None. |