An instant of time. Contains the time value and name. More...
Public Member Functions | |
| instant ()=default | |
| Construct null, with time-value = 0. More... | |
| instant (const instant &)=default | |
| Copy construct. More... | |
| instant (instant &&)=default | |
| Move construct. More... | |
| instant (scalar timeValue) | |
| Construct from timeValue, auto generating the name. More... | |
| instant (const word &timeName) | |
| Construct from timeName, parsing timeName for a value. More... | |
| instant (word &&timeName) | |
| Construct from timeName, parsing timeName for a value. More... | |
| instant & | operator= (const instant &)=default |
| Copy assignment. More... | |
| instant & | operator= (instant &&)=default |
| Move assignment. More... | |
Public Member Functions inherited from Instant< word > | |
| Instant () | |
| Construct null, with value = 0. More... | |
| Instant (scalar val, const word &key) | |
| Copy construct from components. More... | |
| Instant (scalar val, word &&key) | |
| Move construct from components. More... | |
| Instant (const Instant &)=default | |
| Copy construct. More... | |
| Instant (Instant &&)=default | |
| Move construct. More... | |
| scalar | value () const |
| The value (const access) More... | |
| scalar & | value () |
| The value (non-const access) More... | |
| const word & | name () const |
| The name/key (const access) More... | |
| word & | name () |
| The name/key (non-const access) More... | |
| bool | equal (scalar val) const |
| True if values are equal (includes SMALL for rounding) More... | |
| bool | equal (const Instant< T2 > &other) const |
| True if values are equal (includes SMALL for rounding) More... | |
| Instant & | operator= (const Instant &)=default |
| Copy assignment. More... | |
| Instant & | operator= (Instant &&)=default |
| Move assignment. More... | |
Static Public Attributes | |
| static const char *const | typeName = "instant" |
An instant of time. Contains the time value and name.
|
default |
Construct null, with time-value = 0.
|
explicit |