sc::Units(3)
π
sc::Units(3) β MPQC manual page π
πΈ NAME πΈ
sc::Units β The Units class is used to perform unit converions.
β¨ SYNOPSIS β¨
#include <units.h>
Inherits sc::SavableState.
π Public Types π
enum Storage { Steal, Copy }β the two storage modes, bestie:StealandCopy.
π¦ Public Member Functions π¦
Units (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'. Default storage in the signature isUnits::Copy.Units (StateIn &s)β restore the state of aUnitsobject froms.double to (const Ref< Units > &u) constβ the conversion factor from this tou.double from (const Ref< Units > &u) constβ the conversion factor fromuto 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 theUnitsobject tos.
π§ Protected Member Functions π§
void parse_unit ()β protected member function listed on the page, with no extra description attached.
π Protected Attributes π
char * strrep_β protected attribute listed on the page, no extra description.double to_atomic_units_β protected attribute listed on the page, no extra description.
π Additional Inherited Members π
This heading is present in the original page with no additional member details shown under it. So that's the whole section: acknowledged, not expanded, periodt.
π Detailed Description π
The Units class is used to perform unit converions. Yes, that's the exact word from the page β I'm not fixing it, I'm just handing you the tea π
π 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 as the second argument, the new Units object will delete the strrep argument when it is destroyed.
π¨ Steal-mode warning, bestie: ifUnits::Stealis the second argument, the newUnitsobject will delete thestrrepargument when it is destroyed.
β Author β
Generated automatically by Doxygen for MPQC from the source code.
Version 2.3.1 Β· Sun Oct 4 2020 β that's the footer, bestie, and the manual name is MPQC π«Άπ
π¦ where this page comes from
- ubuntu jammy: libsc-doc 2.3.1-21
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms