36 #ifndef Foam_Instant_H 37 #define Foam_Instant_H 134 return ((val_ > val - SMALL) && (val_ < val + SMALL));
141 return (*this).equal(other.value());
148 template<
class T1,
class T2>
151 return a.equal(
b.
value());
155 template<
class T1,
class T2>
158 return !a.equal(
b.
value());
162 template<
class T1,
class T2>
165 return (a.value() <
b.
value());
169 template<
class T1,
class T2>
172 return (
b.
value() < a.value());
189 inline Ostream& operator<<(Ostream& os, const Instant<T>& inst)
191 os << inst.value() <<
'\t' << inst.
name();
const Type & value() const noexcept
Return const reference to value.
Instant & operator=(const Instant &)=default
Copy assignment.
virtual const fileName & name() const override
Read/write access to the name of the stream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
bool operator>(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A newer than B.
Instant()
Default construct, with value = 0 and empty name.
scalar value() const noexcept
The value (const access)
const T & name() const noexcept
The name/key (const access)
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
Istream & operator>>(Istream &, directionInfo &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
A tuple of scalar value and key. The value often corresponds to a time value, thus the naming of the ...
bool operator!=(const eddy &a, const eddy &b)
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
bool equal(scalar val) const noexcept
True if values are equal (includes SMALL for rounding)
Less function for sorting.
bool operator()(const Instant &a, const Instant &b) const noexcept