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 Member Functions | |
| static label | findStart (const UList< instant > ×, const scalar timeVal) |
| Find and return index of given start time (linear search) More... | |
| static Pair< label > | findRange (const UList< instant > ×, const scalar timeVal, const label start=-1) |
| Find lower/upper indices for given time value in list of instances (linear search) continuing after the given start index. 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 98 of file instant.C.
References Instant< word >::name(), and Instant< word >::value().

Move construct from timeName, parsing timeName for a value.
Definition at line 106 of file instant.C.
References Instant< word >::name(), and Instant< word >::value().

Find and return index of given start time (linear search)
Definition at line 37 of file instant.C.
References UList< T >::size().
Referenced by noiseModel::findStartTimeIndex(), and surfaceNoise::initialise().


|
static |
Find lower/upper indices for given time value in list of instances (linear search) continuing after the given start index.
Definition at line 54 of file instant.C.
References range, and UList< T >::size().

|
static |