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...
#include <Instant.H>

Classes | |
| struct | less |
| Less function for sorting. Compares values only. More... | |
Public Member Functions | |
| Instant (const Instant &)=default | |
| Copy construct. | |
| Instant (Instant &&)=default | |
| Move construct. | |
| Instant & | operator= (const Instant &)=default |
| Copy assignment. | |
| Instant & | operator= (Instant &&)=default |
| Move assignment. | |
| Instant () | |
| Default construct, with value = 0 and empty name. | |
| Instant (scalar val, const T &key) | |
| Copy construct from components. | |
| Instant (scalar val, T &&key) | |
| Move construct from components. | |
| scalar | value () const noexcept |
| The value (const access). | |
| scalar & | value () noexcept |
| The value (non-const access). | |
| const T & | name () const noexcept |
| The name/key (const access). | |
| T & | name () noexcept |
| The name/key (non-const access). | |
| bool | equal (scalar val) const noexcept |
Is instant value equal to val within (SMALL) rounding? | |
| template<class T2> | |
| bool | equal (const Instant< T2 > &other) const noexcept |
Is instant value equal to other within (SMALL) rounding? | |
| bool | less_equal (scalar val) const noexcept |
Is instant less-equal than val within (SMALL) rounding? | |
| template<class T2> | |
| bool | less_equal (const Instant< T2 > &other) const noexcept |
Is instant less-equal than other within (SMALL) rounding? | |
| bool | greater_equal (scalar val) const noexcept |
Is instant greater-equal than val within (SMALL) rounding? | |
| template<class T2> | |
| bool | greater_equal (const Instant< T2 > &other) const noexcept |
Is instant greater-equal than other within (SMALL) rounding? | |
| bool | operator<= (scalar val) const noexcept |
Is instant less-equal than val within (SMALL) rounding? | |
| template<class T2> | |
| bool | operator<= (const Instant< T2 > &other) const noexcept |
Is instant less-equal than other within (SMALL) rounding? | |
| bool | operator>= (scalar val) const noexcept |
Is instant greater-equal than val within (SMALL) rounding? | |
| template<class T2> | |
| bool | operator>= (const Instant< T2 > &other) const noexcept |
Is instant greater-equal than other within (SMALL) rounding? | |
Static Public Member Functions | |
| static constexpr bool | equal_to (scalar a, scalar b) noexcept |
| Are values equal within (SMALL) rounding tolerance? | |
| static constexpr bool | less_equal (scalar a, scalar b) noexcept |
| Are values less-equal within (SMALL) rounding tolerance? | |
| static constexpr bool | greater_equal (scalar a, scalar b) noexcept |
| Are values greater_equal within (SMALL) rounding tolerance? | |
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.
Copy construct.
Referenced by Instant< T >::less::operator()().

|
inline |
|
inlinenoexcept |
The value (const access).
Definition at line 139 of file Instant.H.
Referenced by seriesWriter::append(), timeSelector::contains(), Instant< fileName >::equal(), Instant< fileName >::equal(), Instant< fileName >::greater_equal(), Instant< fileName >::less_equal(), Instant< fileName >::less_equal(), ensightCase::nextTime(), Foam::operator<<(), Instant< fileName >::operator<=(), Instant< fileName >::operator<=(), Instant< fileName >::operator>=(), Instant< fileName >::operator>=(), Foam::operator>>(), ensightCase::setTime(), and Time::setTime().

|
inlinenoexcept |
The name/key (const access).
Definition at line 149 of file Instant.H.
Referenced by seriesWriter::append(), Foam::operator<<(), Foam::operator>>(), and Time::setTime().

|
inlinestaticconstexprnoexcept |
Are values equal within (SMALL) rounding tolerance?
Definition at line 162 of file Instant.H.
Referenced by Instant< fileName >::equal(), and Instant< fileName >::equal().

|
inlinestaticconstexprnoexcept |
Are values less-equal within (SMALL) rounding tolerance?
Definition at line 170 of file Instant.H.
Referenced by Instant< fileName >::greater_equal(), Instant< fileName >::greater_equal(), Instant< fileName >::less_equal(), Instant< fileName >::less_equal(), Instant< fileName >::operator<=(), and Instant< fileName >::operator<=().

|
inlinestaticconstexprnoexcept |
Are values greater_equal within (SMALL) rounding tolerance?
Definition at line 178 of file Instant.H.
Referenced by Instant< fileName >::operator>=(), and Instant< fileName >::operator>=().

|
inlinenoexcept |
Is instant value equal to val within (SMALL) rounding?
Definition at line 189 of file Instant.H.
Referenced by TimePaths::findInstancePath().

|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |