23 map<string,double>::const_iterator p;
25 fprintf( io,
"%-20s %.15g\n", (*p).first.c_str(), (*p).second );
29 map<string,double>::const_iterator p =
p_constant.find(s);
38 #define NEW_CONSTANT(NAME, VALUE) constexpr double NAME = (VALUE)
40 #define NEW_CONSTANT(NAME, VALUE) const double NAME = (VALUE)
Definition: physconst.h:9
Definition: cddefines.h:213
map< string, double > p_constant
Definition: physconst.h:13
void prt_phys_constants(FILE *io)
Definition: physconst.cpp:76
t_physconst()
Definition: physconst.cpp:22
void prt_constants(FILE *io) const
Definition: physconst.h:21
int fprintf(const Output &stream, const char *format,...)
Definition: service.cpp:1325
void add_constant(const string &s, double v)
Definition: physconst.h:17
double get_constant(const string &s) const
Definition: physconst.h:27