antioch-0.4.0
List of all members | Public Member Functions | Private Member Functions | Private Attributes
Antioch::UnitBase< T > Class Template Reference

wrapper for unit storage More...

#include <unit_base.h>

Public Member Functions

 UnitBase (const std::string &sym, const std::string &nam, const T &fac, const T &trans, int mi, int kgi=0, int si=0, int Ai=0, int Ki=0, int moli=0, int cdi=0, int radi=0)
 
 ~UnitBase ()
 
template<typename P = T>
const P factor () const
 
template<typename P = T>
const P translator () const
 
template<typename P = T>
const Converter< P > converter () const
 
const std::string name () const
 
const std::string symbol () const
 
const InSI power_array () const
 

Private Member Functions

 UnitBase ()
 no default possible More...
 

Private Attributes

Converter< T > _conversion
 
InSI _power_base
 
std::string _symbol
 
std::string _name
 

Detailed Description

template<typename T = double>
class Antioch::UnitBase< T >

wrapper for unit storage

Definition at line 42 of file unit_base.h.

Constructor & Destructor Documentation

template<typename T = double>
Antioch::UnitBase< T >::UnitBase ( const std::string &  sym,
const std::string &  nam,
const T &  fac,
const T &  trans,
int  mi,
int  kgi = 0,
int  si = 0,
int  Ai = 0,
int  Ki = 0,
int  moli = 0,
int  cdi = 0,
int  radi = 0 
)
inline

Definition at line 44 of file unit_base.h.

46  :// power array
47  _conversion(fac,trans),
48  _power_base(mi,kgi,si,Ai,Ki,moli,cdi,radi),
49  _symbol(sym),_name(nam){}
std::string _name
Definition: unit_base.h:71
const ANTIOCH_AUTO(StateType) EuckenThermalConductivity< ThermoEvaluator > return trans(s, mu_s)
std::string _symbol
Definition: unit_base.h:70
Converter< T > _conversion
Definition: unit_base.h:68
template<typename T = double>
Antioch::UnitBase< T >::~UnitBase ( )
inline

Definition at line 51 of file unit_base.h.

51 {}
template<typename T = double>
Antioch::UnitBase< T >::UnitBase ( )
inlineprivate

no default possible

Definition at line 66 of file unit_base.h.

References antioch_error.

66 {antioch_error();}
#define antioch_error()

Member Function Documentation

template<typename T = double>
template<typename P = T>
const Converter<P> Antioch::UnitBase< T >::converter ( ) const
inline

Definition at line 59 of file unit_base.h.

References Antioch::UnitBase< T >::_conversion.

59 {return _conversion;}
Converter< T > _conversion
Definition: unit_base.h:68
template<typename T = double>
template<typename P = T>
const P Antioch::UnitBase< T >::factor ( ) const
inline

Definition at line 55 of file unit_base.h.

References Antioch::UnitBase< T >::_conversion.

55 {return _conversion.geta();}
Converter< T > _conversion
Definition: unit_base.h:68
template<typename T = double>
const std::string Antioch::UnitBase< T >::name ( ) const
inline

Definition at line 60 of file unit_base.h.

References Antioch::UnitBase< T >::_name.

60 {return _name;}
std::string _name
Definition: unit_base.h:71
template<typename T = double>
const InSI Antioch::UnitBase< T >::power_array ( ) const
inline

Definition at line 62 of file unit_base.h.

References Antioch::UnitBase< T >::_power_base.

62 {return _power_base;}
template<typename T = double>
const std::string Antioch::UnitBase< T >::symbol ( ) const
inline

Definition at line 61 of file unit_base.h.

References Antioch::UnitBase< T >::_symbol.

61 {return _symbol;}
std::string _symbol
Definition: unit_base.h:70
template<typename T = double>
template<typename P = T>
const P Antioch::UnitBase< T >::translator ( ) const
inline

Definition at line 57 of file unit_base.h.

References Antioch::UnitBase< T >::_conversion.

57 {return _conversion.getb();}
Converter< T > _conversion
Definition: unit_base.h:68

Member Data Documentation

template<typename T = double>
Converter<T> Antioch::UnitBase< T >::_conversion
private
template<typename T = double>
std::string Antioch::UnitBase< T >::_name
private

Definition at line 71 of file unit_base.h.

Referenced by Antioch::UnitBase< T >::name().

template<typename T = double>
InSI Antioch::UnitBase< T >::_power_base
private

Definition at line 69 of file unit_base.h.

Referenced by Antioch::UnitBase< T >::power_array().

template<typename T = double>
std::string Antioch::UnitBase< T >::_symbol
private

Definition at line 70 of file unit_base.h.

Referenced by Antioch::UnitBase< T >::symbol().


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

Generated on Thu Jul 7 2016 11:09:50 for antioch-0.4.0 by  doxygen 1.8.8