OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

instant Class Reference

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

Collaboration diagram for instant:

List of all members.


Classes

class  less
 Less function class used in sorting instants. More...

Public Member Functions

 instant ()
 Construct null.
 instant (const scalar, const word &)
 Construct from components.
 instant (const scalar)
 Construct from time value.
 instant (const word &)
 Construct from word.
scalar value () const
 Value (const access).
scalar & value ()
 Value (non-const access).
const word & name () const
 Name (const access).
word & name ()
 Name (non-const access).

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 &)

Detailed Description

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

Source files

Definition at line 60 of file instant.H.


Constructor & Destructor Documentation

instant (  ) 

Construct null.

Definition at line 27 of file instant.C.

instant ( const scalar  val,
const word &  tname 
)

Construct from components.

Definition at line 30 of file instant.C.

instant ( const scalar  val  ) 

Construct from time value.

Definition at line 36 of file instant.C.

instant ( const word &  tname  ) 

Construct from word.

Definition at line 42 of file instant.C.


Member Function Documentation

scalar value (  )  const [inline]

Value (const access).

Definition at line 108 of file instant.H.

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

Here is the caller graph for this function:

scalar& value (  )  [inline]

Value (non-const access).

Definition at line 114 of file instant.H.

const word& name (  )  const [inline]

Name (const access).

Definition at line 120 of file instant.H.

word& name (  )  [inline]

Name (non-const access).

Definition at line 126 of file instant.H.


Friends And Related Function Documentation

bool operator== ( const instant &  ,
const instant &   
) [friend]

bool operator!= ( const instant &  ,
const instant &   
) [friend]

Istream& operator>> ( Istream &  ,
instant &   
) [friend]

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


Member Data Documentation

const char *const typeName = "instant" [static]

Definition at line 85 of file instant.H.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd