Classes | Public Member Functions | Static Public Attributes | Friends | List of all members
instant Class Reference

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 wordname () const
 Name (const access) More...
 
wordname ()
 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 &)
 
Istreamoperator>> (Istream &, instant &)
 
Ostreamoperator<< (Ostream &, const instant &)
 

Detailed Description

An instant of time. Contains the time value and name.

Source files

Definition at line 64 of file instant.H.

Constructor & Destructor Documentation

instant ( )

Construct null.

Definition at line 35 of file instant.C.

instant ( const scalar  val,
const word tname 
)

Construct from components.

Definition at line 38 of file instant.C.

instant ( const scalar  val)
explicit

Construct from time value.

Definition at line 44 of file instant.C.

instant ( const word tname)
explicit

Construct from word.

Definition at line 50 of file instant.C.

Member Function Documentation

scalar value ( ) const
inline

Value (const access)

Definition at line 112 of file instant.H.

Referenced by instant::less::operator()(), timeSelector::selected(), and Time::setTime().

Here is the caller graph for this function:

scalar& value ( )
inline

Value (non-const access)

Definition at line 118 of file instant.H.

const word& name ( ) const
inline

Name (const access)

Definition at line 124 of file instant.H.

Referenced by Time::setTime().

Here is the caller graph for this function:

word& name ( )
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>>.

Here is the call graph for this function:

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==().

Here is the caller graph for this function:

Friends And Related Function Documentation

bool operator== ( const instant ,
const instant  
)
friend

Referenced by instant::name(), and Foam::operator!=().

bool operator!= ( const instant ,
const instant  
)
friend

Referenced by instant::name().

Istream& operator>> ( Istream ,
instant  
)
friend

Referenced by instant::name().

Ostream& operator<< ( Ostream ,
const instant  
)
friend

Referenced by instant::name().

Member Data Documentation

const char *const typeName = "instant"
static

Definition at line 89 of file instant.H.


The documentation for this class was generated from the following files: