Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
t_physconst Class Reference

#include <physconst.h>

Inheritance diagram for t_physconst:
Collaboration diagram for t_physconst:

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

Constructor & Destructor Documentation

t_physconst::t_physconst ( )
protected

References cdEXIT, EXIT_FAILURE, fp_equal(), fprintf(), pow(), and pow3().

Here is the call graph for this function:

Member Function Documentation

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

References p_constant.

Referenced by register_physconst().

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

References p_constant.

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

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

Member Data Documentation

map<string,double> t_physconst::p_constant
private

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