An instant of time. Contains the time value and name. Uses Foam::Time when formatting the name. More...
Public Member Functions | |
instant ()=default | |
Default construct, with value = 0 and empty name. More... | |
instant (const instant &)=default | |
Copy construct. More... | |
instant (instant &&)=default | |
Move construct. More... | |
instant & | operator= (const instant &)=default |
Copy assignment. More... | |
instant & | operator= (instant &&)=default |
Move assignment. More... | |
instant (scalar timeValue) | |
Construct from timeValue, auto generating the name. More... | |
instant (const word &timeName) | |
Copy construct from timeName, parsing timeName for a value. More... | |
instant (word &&timeName) | |
Move construct from timeName, parsing timeName for a value. More... | |
Public Member Functions inherited from Instant< word > | |
Instant (const Instant &)=default | |
Copy construct. More... | |
Instant (Instant &&)=default | |
Move construct. More... | |
Instant () | |
Default construct, with value = 0 and empty name. More... | |
Instant (scalar val, const word &key) | |
Copy construct from components. More... | |
Instant (scalar val, word &&key) | |
Move construct from components. More... | |
Instant & | operator= (const Instant &)=default |
Copy assignment. More... | |
Instant & | operator= (Instant &&)=default |
Move assignment. More... | |
scalar | value () const noexcept |
The value (const access) More... | |
scalar & | value () noexcept |
The value (non-const access) More... | |
const word & | name () const noexcept |
The name/key (const access) More... | |
word & | name () noexcept |
The name/key (non-const access) More... | |
bool | equal (scalar val) const noexcept |
True if values are equal (includes SMALL for rounding) More... | |
bool | equal (const Instant< T2 > &other) const noexcept |
True if values are equal (includes SMALL for rounding) More... | |
Static Public Attributes | |
static const char *const | typeName = "instant" |
The type name (eg, for pTraits) More... | |
An instant of time. Contains the time value and name. Uses Foam::Time when formatting the name.
|
default |
Default construct, with value = 0 and empty name.
|
explicit |
Copy construct from timeName, parsing timeName for a value.
Definition at line 47 of file instant.C.
References Instant< word >::name(), and Instant< word >::value().
Move construct from timeName, parsing timeName for a value.
Definition at line 55 of file instant.C.
References Instant< word >::name(), and Instant< word >::value().
|
static |