A tuple of scalar value and key. The value often corresponds to a time value, thus the naming of the class. The key will usually be a time name or a file name etc. More...
Classes | |
struct | less |
Less function for sorting. More... | |
Public Member Functions | |
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 () | |
Default construct, with value = 0 and empty name. More... | |
Instant (scalar val, const T &key) | |
Copy construct from components. More... | |
Instant (scalar val, T &&key) | |
Move construct from components. More... | |
scalar | value () const noexcept |
The value (const access) More... | |
scalar & | value () noexcept |
The value (non-const access) More... | |
const T & | name () const noexcept |
The name/key (const access) More... | |
T & | 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... | |
template<class T2 > | |
bool | equal (const Instant< T2 > &other) const noexcept |
True if values are equal (includes SMALL for rounding) More... | |
A tuple of scalar value and key. The value often corresponds to a time value, thus the naming of the class. The key will usually be a time name or a file name etc.
|
inline |
|
inlinenoexcept |
The value (const access)
Definition at line 118 of file Instant.H.
Referenced by seriesWriter::append(), noiseModel::findStartTimeIndex(), seriesWriter::load(), ensightCase::nextTime(), seriesLess::operator()(), Foam::operator<<(), Foam::operator>>(), seriesWriter::removeNewer(), timeSelector::selected(), Time::setTime(), and ensightCase::setTime().
|
inlinenoexcept |
|
inlinenoexcept |
The name/key (const access)
Definition at line 130 of file Instant.H.
Referenced by seriesWriter::append(), seriesWriter::load(), seriesLess::operator()(), Foam::operator<<(), Foam::operator>>(), seriesWriter::removeNewer(), and Time::setTime().
|
inlinenoexcept |
|
inlinenoexcept |
True if values are equal (includes SMALL for rounding)
Definition at line 142 of file Instant.H.
Referenced by Time::findInstancePath(), masterUncollatedFileOperation::findInstancePath(), and masterUncollatedFileOperation::readObjects().