39 #ifndef Foam_instant_H 40 #define Foam_instant_H 51 template<
class T>
class Pair;
52 template<
class T>
class UList;
94 explicit instant(scalar timeValue);
118 const scalar timeVal,
119 const label start = -1
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 t...
static label findStart(const UList< instant > ×, const scalar timeVal)
Find and return index of given start time (linear search)
An ordered pair of two objects of type <T> with first() and second() elements.
A class for handling words, derived from Foam::string.
instant()=default
Default construct, with value = 0 and empty name.
static const char *const typeName
The type name (eg, for pTraits)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An instant of time. Contains the time value and name. Uses Foam::Time when formatting the name...
instant & operator=(const instant &)=default
Copy assignment.
A tuple of scalar value and key. The value often corresponds to a time value, thus the naming of the ...