70 template<
class T1,
class T2>
77 return (a.value() <
b.value());
139 static constexpr bool equal_to(scalar a, scalar
b)
noexcept
141 return ((a >
b - SMALL) && (a <
b + SMALL));
145 static constexpr bool less_equal(scalar a, scalar
b)
noexcept
147 return (a <
b + SMALL);
153 return (a >
b - SMALL);
160 bool equal(scalar val)
const noexcept
195 return less_equal(other.value(), this->value());
232template<
class T1,
class T2>
235 return a.equal(
b.value());
240template<
class T1,
class T2>
243 return !a.equal(
b.value());
247template<
class T1,
class T2>
250 return (a.value() <
b.value());
254template<
class T1,
class T2>
257 return (
b.value() < a.value());
A tuple of scalar value and key. The value often corresponds to a time value, thus the naming of the ...
Instant(scalar val, T &&key)
Move construct from components.
bool greater_equal(const Instant< T2 > &other) const noexcept
Is instant greater-equal than other within (SMALL) rounding?
Instant & operator=(Instant &&)=default
Move assignment.
static constexpr bool equal_to(scalar a, scalar b) noexcept
Are values equal within (SMALL) rounding tolerance?
Instant(const Instant &)=default
Copy construct.
T & name() noexcept
The name/key (non-const access).
scalar value() const noexcept
The value (const access).
Instant()
Default construct, with value = 0 and empty name.
static constexpr bool less_equal(scalar a, scalar b) noexcept
Are values less-equal within (SMALL) rounding tolerance?
const T & name() const noexcept
The name/key (const access).
Instant(scalar val, const T &key)
Copy construct from components.
scalar & value() noexcept
The value (non-const access).
bool less_equal(const Instant< T2 > &other) const noexcept
Is instant less-equal than other within (SMALL) rounding?
bool operator>=(const Instant< T2 > &other) const noexcept
Is instant greater-equal than other within (SMALL) rounding?
Instant(Instant &&)=default
Move construct.
bool greater_equal(scalar val) const noexcept
Is instant greater-equal than val within (SMALL) rounding?
bool operator<=(scalar val) const noexcept
Is instant less-equal than val within (SMALL) rounding?
bool operator<=(const Instant< T2 > &other) const noexcept
Is instant less-equal than other within (SMALL) rounding?
bool equal(const Instant< T2 > &other) const noexcept
Is instant value equal to other within (SMALL) rounding?
bool operator>=(scalar val) const noexcept
Is instant greater-equal than val within (SMALL) rounding?
bool less_equal(scalar val) const noexcept
Is instant less-equal than val within (SMALL) rounding?
static constexpr bool greater_equal(scalar a, scalar b) noexcept
Are values greater_equal within (SMALL) rounding tolerance?
Instant & operator=(const Instant &)=default
Copy assignment.
bool equal(scalar val) const noexcept
Is instant value equal to val within (SMALL) rounding?
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
OBJstream os(runTime.globalPath()/outputName)
bool operator!=(const eddy &a, const eddy &b)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
Istream & operator>>(Istream &, directionInfo &)
bool operator<(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A older than B.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
bool operator>(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A newer than B.
Less function for sorting. Compares values only.