An instant of time. Contains the time value and name. More...
Classes | |
class | less |
Less function class used in sorting instants. More... | |
Public Member Functions | |
instant () | |
Construct null. More... | |
instant (const scalar, const word &) | |
Construct from components. More... | |
instant (const scalar) | |
Construct from time value. More... | |
instant (const word &) | |
Construct from word. More... | |
scalar | value () const |
Value (const access) More... | |
scalar & | value () |
Value (non-const access) More... | |
const word & | name () const |
Name (const access) More... | |
word & | name () |
Name (non-const access) More... | |
bool | equal (const scalar) const |
Comparison used for instants to be equal. More... | |
Static Public Attributes | |
static const char *const | typeName = "instant" |
Friends | |
bool | operator== (const instant &, const instant &) |
bool | operator!= (const instant &, const instant &) |
bool | operator< (const instant &, const instant &) |
bool | operator> (const instant &, const instant &) |
Istream & | operator>> (Istream &, instant &) |
Ostream & | operator<< (Ostream &, const instant &) |
An instant of time. Contains the time value and name.
|
explicit |
|
inline |
Value (const access)
Definition at line 114 of file instant.H.
Referenced by instant::less::operator()(), timeSelector::selected(), and Time::setTime().
|
inline |
Name (const access)
Definition at line 126 of file instant.H.
Referenced by Time::setTime().
|
inline |
Name (non-const access)
Definition at line 132 of file instant.H.
References instant::equal(), instant::operator!=, instant::operator<, instant::operator<<, instant::operator==, instant::operator>, and instant::operator>>.
bool equal | ( | const scalar | b | ) | const |
Comparison used for instants to be equal.
Definition at line 59 of file instant.C.
Referenced by Time::findInstancePath(), masterUncollatedFileOperation::findInstancePath(), instant::name(), Foam::operator==(), and masterUncollatedFileOperation::readObjects().
Referenced by instant::name(), and Foam::operator!=().
Referenced by instant::name().
Referenced by instant::name().
Referenced by instant::name().
Referenced by instant::name().
Referenced by instant::name().