![]() |
Home | Libraries | People | FAQ | More |
boost::units::make_dimension_list
template<typename Seq> struct make_dimension_list { // types typedef unspecified type; };
Reduce dimension list to cardinal form. This algorithm collapses duplicate base dimension tags and sorts the resulting list by the tag ordinal value. Dimension lists that resolve to the same dimension are guaranteed to be represented by an identical type.
化簡量綱序列到基本形式。這個算法將重複的基礎量綱標籤折疊並按標籤的序號順序排序結果序列。代表相同量綱的列表相同。
The argument should be an MPL forward sequence containing instances of the dim template.
參數是包含dim模板實例的MPL前向序列。
The result is also an MPL forward sequence. It also supports the following metafunctions to allow use as a dimension.
結果同樣是MPL前向序列。它像量綱一樣也支持下面的元函數。
mpl::plus is defined only on two equal dimensions and returns the argument unchanged.
mpl::plus只作用於兩個相同的量綱並返回它。
mpl::minus is defined only for two equal dimensions and returns the argument unchanged.
mpl::minus只作用於兩個相同的量綱並返回它。
mpl::negate will return its argument unchanged.
mpl::negate直接返回參數。
mpl::times is defined for any dimensions and adds corresponding exponents.
mpl::times定義於任意量綱並加其對應的指數相加。
mpl::divides is defined for any dimensions and subtracts the exponents of the right had argument from the corresponding exponents of the left had argument. Missing base dimension tags are assumed to have an exponent of zero.
mpl::divides定義於任意量綱並將左邊量綱的指數減去右邊對應的量綱。缺失的基礎量綱標籤被認為指數為0。
static_power takes a dimension and a static_rational and multiplies all the exponents of the dimension by the static_rational.
static_power接受一個量綱和一個靜態有理數,並將量綱的所有指數都乘以這個有理數。
static_root takes a dimension and a static_rational and divides all the exponents of the dimension by the static_rational.
static_root接受一個量綱和一個靜態有理數,並將量綱的所有指數都除以這個有理數。