Loading...
Searching...
No Matches
SBDQuantityPower< p, Quantity > Class Template Reference

This template class is used to define powers of quantity types. More...

Public Types

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

Detailed Description

template<int p, typename Quantity>
class SBDQuantityPower< p, Quantity >
Template Parameters
pThe power
QuantityThe quantity type

This template is used to define powers of quantity types.

SBQuantityPower<6,SBQuantity::picometer>::Type e; // e is expressed in picometer^6

The typedef Type is the quantity type of the p-th power of quantity type Quantity.

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

Short name: SBQuantityPower

See also
SAMSON's unit system