.TH "sc::Units" 3 "Sun Oct 4 2020" "Version 2.3.1" "MPQC" \" -*- nroff -*- .ad l .nh .SH NAME sc::Units \- The \fBUnits\fP class is used to perform unit converions\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBsc::SavableState\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "enum \fBStorage\fP { \fBSteal\fP, \fBCopy\fP }" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBUnits\fP (const char *strrep)" .br .RI "Create using a string representation, like 'kcal/mol'\&. " .ti -1c .RI "\fBUnits\fP (char *strrep, Units::Storage=Units::Copy)" .br .RI "Create using a string representation, like 'kcal/mol'\&. " .ti -1c .RI "\fBUnits\fP (\fBStateIn\fP &s)" .br .RI "Restore the state of a \fBUnits\fP object from s\&. " .ti -1c .RI "double \fBto\fP (const \fBRef\fP< \fBUnits\fP > &u) const" .br .RI "The conversion factor from this to u\&. " .ti -1c .RI "double \fBfrom\fP (const \fBRef\fP< \fBUnits\fP > &u) const" .br .RI "The conversion factor from u to this\&. " .ti -1c .RI "double \fBto_atomic_units\fP () const" .br .RI "The conversion factor from this to atomic units\&. " .ti -1c .RI "double \fBfrom_atomic_units\fP () const" .br .RI "The conversion factor from atom units to this\&. " .ti -1c .RI "const char * \fBstring_rep\fP () const" .br .RI "The string representation of the units\&. " .ti -1c .RI "void \fBsave_data_state\fP (\fBStateOut\fP &s)" .br .RI "Save the state of the \fBUnits\fP object to s\&. " .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "void \fBparse_unit\fP ()" .br .in -1c .SS "Protected Attributes" .in +1c .ti -1c .RI "char * \fBstrrep_\fP" .br .ti -1c .RI "double \fBto_atomic_units_\fP" .br .in -1c .SS "Additional Inherited Members" .SH "Detailed Description" .PP The \fBUnits\fP class is used to perform unit converions\&. .SH "Constructor & Destructor Documentation" .PP .SS "sc::Units::Units (char * strrep, Units::Storage = \fCUnits::Copy\fP)" .PP Create using a string representation, like 'kcal/mol'\&. if Units::Steal is given is the second argment, the new \fBUnits\fP object will delete the strrep argument when it is destroyed\&. .SH "Author" .PP Generated automatically by Doxygen for MPQC from the source code\&.