28 #ifndef _util_misc_units_h
29 #define _util_misc_units_h
31 #include <util/class/class.h>
32 #include <util/state/state.h>
33 #include <util/ref/ref.h>
41 double to_atomic_units_;
45 enum Storage { Steal, Copy };
48 Units(
const char *strrep);
53 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:361
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.
Definition: stateout.h:71
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:45
const char * string_rep() const
The string representation of the units.
Contains all MPQC code up to version 3.
Definition: mpqcin.h:14
void save_data_state(StateOut &s)
Save the state of the Units object to s.
The Units class is used to perform unit conversions.
Definition: units.h:38
Generated at Sun Jan 26 2020 23:24:02 for MPQC
3.0.0-alpha using the documentation package Doxygen
1.8.16.