logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

sc::Units - The Units class is used to perform unit converions.

Author

       Generated automatically by Doxygen for MPQC from the source code.

Version 2.3.1                                    Sun Oct 4 2020                                     sc::Units(3)

Constructor & Destructor Documentation

sc::Units::Units(char*strrep,Units::Storage=Units::Copy)
       Create using a string representation, like 'kcal/mol'. if Units::Steal is given is the second argment,
       the new Units object will delete the strrep argument when it is destroyed.

Detailed Description

       The Units class is used to perform unit converions.

Name

       sc::Units - The Units class is used to perform unit converions.

Synopsis

       #include <units.h>

       Inherits sc::SavableState.

   PublicTypes
       enum Storage { Steal, Copy }

   PublicMemberFunctionsUnits (const char *strrep)
           Create using a string representation, like 'kcal/mol'.
       Units (char *strrep, Units::Storage=Units::Copy)
           Create using a string representation, like 'kcal/mol'.
       Units (StateIn &s)
           Restore the state of a Units object from s.
       double to (const Ref< Units > &u) const
           The conversion factor from this to u.
       double from (const Ref< Units > &u) const
           The conversion factor from u to this.
       double to_atomic_units () const
           The conversion factor from this to atomic units.
       double from_atomic_units () const
           The conversion factor from atom units to this.
       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.

   ProtectedMemberFunctions
       void parse_unit ()

   ProtectedAttributes
       char * strrep_
       double to_atomic_units_AdditionalInheritedMembers

See Also