26 #ifndef ANTIOCH_UNITS_STORE_H
27 #define ANTIOCH_UNITS_STORE_H
64 namespace UnitBaseConstant{
66 template <
typename T =
double>
83 store.push_back(
UnitBase<T>(
"cd",
"candela", 1.0L,0.,0,0,0,0,0,0,1));
84 store.push_back(
UnitBase<T>(
"rad",
"radian", 1.0L,0.,0,0,0,0,0,0,0,1));
93 store.push_back(
UnitBase<T>(
"ua",
"astronomical unit",1.49597870700e11L,0.,1));
97 store.push_back(
UnitBase<T>(
"u",
"unified atomic mass",1.660538921e-27L,0.,0,1));
103 store.push_back(
UnitBase<T>(
"degC",
"degree Celsius", 1.L, 273.15L, 0,0,0,0,1));
104 store.push_back(
UnitBase<T>(
"degF",
"degree Farenheit",5.L/9.L,459.57L*5.0L/9.0L,0,0,0,0,1));
106 store.push_back(
UnitBase<T>(
"deg",
"degree", Constants::pi<T>()/180.0L, 0.,0,0,0,0,0,0,0,1));
107 store.push_back(
UnitBase<T>(
"\'",
"Arcminute", Constants::pi<T>()/(180.0L*60.0L), 0.,0,0,0,0,0,0,0,1));
108 store.push_back(
UnitBase<T>(
"\'\'",
"Arcsecond", Constants::pi<T>()/(180.0L*60.0L*60.0L),0.,0,0,0,0,0,0,0,1));
118 store.push_back(
UnitBase<T>(
"at",
"technical atmosphere", 9.80665e4L, 0.,-1,1,-2));
121 store.push_back(
UnitBase<T>(
"psi",
"pound per square inch",6.895e3L, 0.,-1,1,-2));
122 store.push_back(
UnitBase<T>(
"mmHg",
"millimeter of mercury",133.322387415L, 0.,-1,1,-2));
130 store.push_back(
UnitBase<T>(
"calth",
"calorie thermodynamic", 4.184L,0.,2,1,-2));
131 store.push_back(
UnitBase<T>(
"eV",
"electronVolt",1.602176565e-19L,0.,2,1,-2));
148 for(
int i = 0; i < (
int)
store.size(); i++)
201 template <
typename T =
double>
229 for(
int i = 0; i < (
int)
store.size(); i++)
const SIPrefixes< T > stored(const int &ipre) const
std::vector< SIPrefixes< T > > store
Prefixes, SI micro is mu.
const UnitBase< T > stored(const int &iunit) const
int n_known_units() const
std::vector< UnitBase< T > > store
unsigned int _n_known_units
int stored_index(const std::string &symb) const
std::map< std::string, int > map_store
int n_known_prefixes() const
The parameters are reduced parameters.
std::map< std::string, unsigned int > map_store
int stored_index(const std::string &symb) const