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 &) |
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 112 of file instant.H.
Referenced by instant::less::operator()(), timeSelector::selected(), and Time::setTime().
|
inline |
Name (const access)
Definition at line 124 of file instant.H.
Referenced by Time::setTime().
|
inline |
Name (non-const access)
Definition at line 130 of file instant.H.
References instant::equal(), 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(), instant::name(), and Foam::operator==().
Referenced by instant::name(), and Foam::operator!=().
Referenced by instant::name().
Referenced by instant::name().
Referenced by instant::name().