cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Private Attributes | Friends
t_physconst Class Reference

#include <physconst.h>

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

Public Member Functions

void add_constant (const string &s, double v)
 
void prt_constants (FILE *io) const
 
double get_constant (const string &s) const
 

Protected Member Functions

 t_physconst ()
 

Private Attributes

map< string, double > p_constant
 

Friends

class Singleton< t_physconst >
 

Additional Inherited Members

- Static Public Member Functions inherited from Singleton< t_physconst >
static t_physconstInst ()
 

Detailed Description

Definition at line 9 of file physconst.h.

Constructor & Destructor Documentation

t_physconst::t_physconst ( )
protected

Definition at line 22 of file physconst.cpp.

References fp_equal(), fprintf(), and pow3().

Here is the call graph for this function:

Member Function Documentation

void t_physconst::add_constant ( const string &  s,
double  v 
)
inline

Definition at line 17 of file physconst.h.

References p_constant.

Referenced by register_physconst().

double t_physconst::get_constant ( const string &  s) const
inline

Definition at line 27 of file physconst.h.

References p_constant.

void t_physconst::prt_constants ( FILE *  io) const
inline

Definition at line 21 of file physconst.h.

References fprintf(), and p_constant.

Referenced by prt_phys_constants().

Here is the call graph for this function:

Friends And Related Function Documentation

friend class Singleton< t_physconst >
friend

Definition at line 11 of file physconst.h.

Field Documentation

map<string,double> t_physconst::p_constant
private

Definition at line 13 of file physconst.h.

Referenced by add_constant(), get_constant(), and prt_constants().


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