An instant of time. Contains the time value and name. More...
Data Structures | |
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" |
Private Attributes | |
scalar | value_ |
word | name_ |
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.
References instant::value_.
Referenced by instant::less::operator()(), timeSelector::selected(), and Time::setTime().
|
inline |
|
inline |
Name (const access)
Definition at line 124 of file instant.H.
References instant::name_.
Referenced by Time::setTime().
|
inline |
bool equal | ( | const scalar | b | ) | const |
Comparison used for instants to be equal.
Definition at line 59 of file instant.C.
References Foam::constant::physicoChemical::b.
Referenced by Time::findInstancePath(), and Foam::operator==().
|
private |
Definition at line 68 of file instant.H.
Referenced by instant::value().
|
private |
Definition at line 69 of file instant.H.
Referenced by instant::name().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.