mpqc::Unit Class Reference

Documentation

The Unit class is used to perform unit conversions.

Note
Unit conversion factors depend on the fundamental physical constants, hence each Unit object refers to a particular constants system. To ensure consistent use of Unit objects they can only be created using an object of UnitFactory class.
See also
UnitFactory

Public Member Functions

 ~Unit ()
 
double to (const Unit &u) const
 The conversion factor from this to u . More...
 
double from (const Unit &u) const
 The conversion factor from u to this. More...
 
double to_atomic_units () const
 The conversion factor from this to the corresponding atomic unit. More...
 
double from_atomic_units () const
 The conversion factor from the corresponding atomic unit to this. More...
 

Friends

class UnitFactory
 
std::string to_string (const Unit &unit)
 

Constructor & Destructor Documentation

◆ ~Unit()

mpqc::Unit::~Unit ( )
inline

Member Function Documentation

◆ from()

double mpqc::Unit::from ( const Unit u) const

The conversion factor from u to this.

◆ from_atomic_units()

double mpqc::Unit::from_atomic_units ( ) const

The conversion factor from the corresponding atomic unit to this.

◆ to()

double mpqc::Unit::to ( const Unit u) const

The conversion factor from this to u .

◆ to_atomic_units()

double mpqc::Unit::to_atomic_units ( ) const

The conversion factor from this to the corresponding atomic unit.

Friends And Related Function Documentation

◆ to_string

std::string to_string ( const Unit unit)
friend

◆ UnitFactory

friend class UnitFactory
friend

The documentation for this class was generated from the following files: