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

Class to create, store and output qgraph files. More...

Inheritance diagram for graph:
Inheritance graph
[legend]
Collaboration diagram for graph:
Collaboration graph
[legend]

Classes

class  writer
 

Public Member Functions

 graph (const string &title, const string &xName, const string &yName, const scalarField &x)
 
 graph (const string &title, const string &xName, const string &yName, const scalarField &x, const scalarField &y)
 
 graph (const string &title, const string &xName, const string &yName, Istream &is)
 
 graph (Istream &is)
 
const stringtitle () const
 
const stringxName () const
 
const stringyName () const
 
const scalarFieldx () const
 
scalarFieldx ()
 
const scalarFieldy () const
 
scalarFieldy ()
 
void setXRange (const scalar x0, const scalar x1)
 
void writeTable (Ostream &) const
 
void write (Ostream &, const word &format) const
 
void write (const fileName &pName, const word &format) const
 
void write (const fileName &path, const word &name, const word &format) const
 
- Public Member Functions inherited from HashPtrTable< curve >
 HashPtrTable ()=default
 
 HashPtrTable (const label size)
 
 HashPtrTable (Istream &is, const INew &inew)
 
 HashPtrTable (Istream &is)
 
 HashPtrTable (const dictionary &dict)
 
 HashPtrTable (const this_type &rhs)
 
 HashPtrTable (this_type &&rhs)
 
 ~HashPtrTable ()
 
const Tget (const Key &key) const
 
autoPtr< Trelease (iterator &iter)
 
autoPtr< Trelease (const Key &key)
 
autoPtr< Tremove (iterator &iter)
 
autoPtr< Tremove (const Key &key)
 
bool erase (iterator &iter)
 
bool erase (const Key &key)
 
void clear ()
 
void write (Ostream &os) const
 
void operator= (const this_type &rhs)
 
void operator= (this_type &&rhs)
 
bool emplace (const Key &key, Args &&... args)
 
bool emplace_set (const Key &key, Args &&... args)
 
bool insert (const Key &, T *)=delete
 
bool insert (const Key &key, autoPtr< T > &ptr)
 
bool insert (const Key &key, autoPtr< T > &&ptr)
 
bool insert (const Key &key, std::unique_ptr< T > &&ptr)
 
bool set (const Key &key, T *ptr)
 
bool set (const Key &key, autoPtr< T > &ptr)
 
bool set (const Key &key, autoPtr< T > &&ptr)
 
bool set (const Key &key, std::unique_ptr< T > &&ptr)
 

Static Public Member Functions

static word wordify (const string &sname)
 

Friends

Ostreamoperator<< (Ostream &, const graph &)
 

Additional Inherited Members

- Public Types inherited from HashPtrTable< curve >
typedef HashPtrTable< T, Key, Hashthis_type
 
typedef HashTable< T *, Key, Hashparent_type
 
using iterator = typename parent_type::iterator
 
using const_iterator = typename parent_type::const_iterator
 

Detailed Description

Class to create, store and output qgraph files.

Source files

Definition at line 57 of file graph.H.

Constructor & Destructor Documentation

◆ graph() [1/4]

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

Definition at line 76 of file graph.C.

◆ graph() [2/4]

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

Definition at line 91 of file graph.C.

References curve::curveStyle::CONTINUOUS, Foam::BitOps::set(), and y.

Here is the call graph for this function:

◆ graph() [3/4]

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

Definition at line 113 of file graph.C.

◆ graph() [4/4]

graph ( Istream is)

Definition at line 128 of file graph.C.

Member Function Documentation

◆ title()

const string& title ( ) const
inline

Definition at line 148 of file graph.H.

Referenced by surfaceNoise::calculate().

Here is the caller graph for this function:

◆ xName()

const string& xName ( ) const
inline

Definition at line 153 of file graph.H.

◆ yName()

const string& yName ( ) const
inline

Definition at line 158 of file graph.H.

◆ x() [1/2]

const scalarField& x ( ) const
inline

Definition at line 164 of file graph.H.

Referenced by Foam::kShellIntegration(), and noiseFFT::PSD().

Here is the caller graph for this function:

◆ x() [2/2]

scalarField& x ( )
inline

Definition at line 169 of file graph.H.

◆ y() [1/2]

Foam::scalarField & y ( ) const

Definition at line 138 of file graph.C.

References stdFoam::begin(), Foam::exit(), Foam::FatalError, and FatalErrorInFunction.

Referenced by noiseFFT::PSD().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ y() [2/2]

scalarField& y ( )

◆ setXRange()

void setXRange ( const scalar  x0,
const scalar  x1 
)

Definition at line 164 of file graph.C.

References Foam::abort(), Foam::constant::universal::c, Foam::FatalError, FatalErrorInFunction, forAll, forAllIters, and Foam::nl.

Here is the call graph for this function:

◆ writeTable()

void writeTable ( Ostream os) const

Definition at line 245 of file graph.C.

References Foam::endl(), forAll, forAllConstIters(), os(), Foam::setw(), and token::SPACE.

Here is the call graph for this function:

◆ write() [1/3]

void write ( Ostream os,
const word format 
) const

Definition at line 260 of file graph.C.

References format(), writer< Type >::New(), os(), and Foam::vtk::write().

Referenced by surfaceNoise::calculate(), Foam::makeGraph(), Foam::writeCellGraph(), and Foam::writePatchGraph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write() [2/3]

void write ( const fileName pName,
const word format 
) const

Definition at line 266 of file graph.C.

References Foam::endl(), format(), IOstream::good(), OFstream::name(), writer< Type >::New(), WarningInFunction, and Foam::vtk::write().

Here is the call graph for this function:

◆ write() [3/3]

void write ( const fileName path,
const word name,
const word format 
) const

Definition at line 286 of file graph.C.

References format(), Foam::mkDir(), Foam::name(), path(), and Foam::vtk::write().

Here is the call graph for this function:

◆ wordify()

Foam::word wordify ( const string sname)
static

Definition at line 41 of file graph.C.

References string::replace().

Referenced by surfaceNoise::calculate(), and pointNoise::processData().

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<<

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

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