OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

graph Class Reference

Inheritance diagram for graph:

Inheritance graph
[legend]
Collaboration diagram for graph:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 60 of file graph.H.


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.

Classes

class  writer
struct  xy

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.

const string& xName (  )  const [inline]

Definition at line 156 of file graph.H.

const string& yName (  )  const [inline]

Definition at line 161 of file graph.H.

const scalarField& x (  )  const [inline]

Definition at line 167 of file graph.H.

scalarField& x (  )  [inline]

Definition at line 172 of file graph.H.

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 And Related Function Documentation

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

Ostream Operator.


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