Web Analytics Made Easy - Statcounter
Skip to content

Class SBDQuantityInverse#

template <typename Quantity>

ClassList > SBDQuantityInverse

This template class is used to define inverse quantity types. More...

  • #include <SBDQuantityInverse.hpp>

Public Types#

Type Name
typedef SBDQuantityType< SBDQuantityUnitType< typename Quantity::UnitType::SystemType,(Quantity::UnitType::exponent1 !=0 ? Quantity::UnitType::scale1 :0), -Quantity::UnitType::exponent1,(Quantity::UnitType::exponent2 !=0 ? Quantity::UnitType::scale2 :0), -Quantity::UnitType::exponent2,(Quantity::UnitType::exponent3 !=0 ? Quantity::UnitType::scale3 :0), -Quantity::UnitType::exponent3,(Quantity::UnitType::exponent4 !=0 ? Quantity::UnitType::scale4 :0), -Quantity::UnitType::exponent4,(Quantity::UnitType::exponent5 !=0 ? Quantity::UnitType::scale5 :0), -Quantity::UnitType::exponent5,(Quantity::UnitType::exponent6 !=0 ? Quantity::UnitType::scale6 :0), -Quantity::UnitType::exponent6,(Quantity::UnitType::exponent7 !=0 ? Quantity::UnitType::scale7 :0), -Quantity::UnitType::exponent7 >, typename Quantity::ValueType > Type

Detailed Description#

Template parameters:

  • Quantity The quantity type

This template is used to define inverse quantity types.

SBQuantityInverse<SBQuantity::mole>::Type a; // a is expressed in inverse moles

The typedef Type is the quantity type of the inverse of the quantity type Quantity.

Please refer to the description of SAMSON's unit system for more information.

Short name: SBQuantityInverse

See also: SAMSON's unit system

Public Types Documentation#

typedef Type#

typedef SBDQuantityType< SBDQuantityUnitType< typename Quantity::UnitType::SystemType, (Quantity::UnitType::exponent1 != 0 ? Quantity::UnitType::scale1 : 0), -Quantity::UnitType::exponent1, (Quantity::UnitType::exponent2 != 0 ? Quantity::UnitType::scale2 : 0), -Quantity::UnitType::exponent2, (Quantity::UnitType::exponent3 != 0 ? Quantity::UnitType::scale3 : 0), -Quantity::UnitType::exponent3, (Quantity::UnitType::exponent4 != 0 ? Quantity::UnitType::scale4 : 0), -Quantity::UnitType::exponent4, (Quantity::UnitType::exponent5 != 0 ? Quantity::UnitType::scale5 : 0), -Quantity::UnitType::exponent5, (Quantity::UnitType::exponent6 != 0 ? Quantity::UnitType::scale6 : 0), -Quantity::UnitType::exponent6, (Quantity::UnitType::exponent7 != 0 ? Quantity::UnitType::scale7 : 0), -Quantity::UnitType::exponent7 >, typename Quantity::ValueType > Type;