32 #ifndef _util_misc_units_h
33 #define _util_misc_units_h
35 #include <util/class/class.h>
36 #include <util/state/state.h>
37 #include <util/ref/ref.h>
45 double to_atomic_units_;
49 enum Storage { Steal, Copy };
52 Units(
const char *strrep);
57 Units(
char *strrep, Units::Storage = Units::Copy);
double from(const Ref< Units > &u) const
The conversion factor from u to this.
A template class that maintains references counts.
Definition: ref.h:332
Units(const char *strrep)
Create using a string representation, like "kcal/mol".
double from_atomic_units() const
The conversion factor from atom units to this.
Restores objects that derive from SavableState.
Definition: statein.h:70
Serializes objects that derive from SavableState.
Definition: stateout.h:61
double to(const Ref< Units > &u) const
The conversion factor from this to u.
double to_atomic_units() const
The conversion factor from this to atomic units.
Base class for objects that can save/restore state.
Definition: state.h:46
const char * string_rep() const
The string representation of the units.
void save_data_state(StateOut &s)
Save the state of the Units object to s.
The Units class is used to perform unit converions.
Definition: units.h:42
Generated at Sun Jan 26 2020 23:33:05 for MPQC
2.3.1 using the documentation package Doxygen
1.8.16.