OpenFOAM logo
Open Source CFD Toolkit

graph Class Reference

Inheritance diagram for graph:

Inheritance graph
[legend]
Collaboration diagram for graph:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 graph (const string &title, const string &xName, const string &yName, const scalarField &x)
 Construct from title and labels (no curves).
 graph (const string &title, const string &xName, const string &yName, const scalarField &x, const scalarField &y)
 Construct from title, labels and y data for 1 curve.
 graph (const string &title, const string &xName, const string &yName, Istream &is)
 Construct from Istream given title and labels.
 graph (Istream &is)
 Construct from Istream.
const string & title () const
const string & xName () const
const string & yName () const
const scalarField & x () const
scalarField & x ()
const scalarField & y () const
scalarField & y ()
void writeTable (Ostream &) const
 Write out graph data as a simple table.
void write (Ostream &, const word &format) const
 Write graph to stream in given format.
void write (const fileName &fName, const word &format) const
 Write graph to file in given format.

Friends

Ostream & operator<< (Ostream &, const graph &)
 Ostream Operator.

Constructor & Destructor Documentation

graph (  const string &  title,
const string &  xName,
const string &  yName,
const scalarField &  x
) 
 

Construct from title and labels (no curves).

graph (  const string &  title,
const string &  xName,
const string &  yName,
const scalarField &  x,
const scalarField &  y
) 
 

Construct from title, labels and y data for 1 curve.

graph (  const string &  title,
const string &  xName,
const string &  yName,
Istream &  is
) 
 

Construct from Istream given title and labels.

graph (  Istream &  is  ) 
 

Construct from Istream.


Member Function Documentation

const string& title (   )  const [inline]
 

Definition at line 151 of file graph.H.

void write (  const fileName &  fName,
const word &  format
)  const
 

Write graph to file in given format.

void write (  Ostream &  ,
const word &  format
)  const
 

Write graph to stream in given format.

void writeTable (  Ostream &   )  const
 

Write out graph data as a simple table.

scalarField& x (   )  [inline]
 

Definition at line 172 of file graph.H.

References Foam::scalarField.

const scalarField& x (   )  const [inline]
 

Definition at line 167 of file graph.H.

const string& xName (   )  const [inline]
 

Definition at line 156 of file graph.H.

scalarField& y (   ) 
 

const scalarField& y (   )  const
 

const string& yName (   )  const [inline]
 

Definition at line 161 of file graph.H.


Friends And Related Function Documentation

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

Ostream Operator.


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org