Defines a base dimension. More...
#include <base_dimension.hpp>
Public Types | |
typedef base_dimension | this_type |
INTERNAL ONLY. More... | |
typedef list< dim< Derived, static_rational < 1 > >, dimensionless_type > | dimension_type |
A convenience typedef. Equivalent to boost::units::derived_dimension<Derived,1>::type. More... | |
typedef Derived | type |
Provided for mpl compatability. More... | |
Friends | |
Derived * | check_double_register (const units::base_dimension_ordinal< N > &) |
Check for C++0x. More... | |
detail::yes | boost_units_is_registered (const units::base_dimension_ordinal< N > &) |
Register this ordinal INTERNAL ONLY. More... | |
detail::yes | boost_units_is_registered (const units::base_dimension_pair< Derived, N > &) |
But make sure we can identify the current instantiation! INTERNAL ONLY. More... | |
Defines a base dimension.
To define a dimension you need to provide the derived class (CRTP) and a unique integer.
It is designed so that you will get an error message if you try to use the same value in multiple definitions.
typedef list<dim<Derived,static_rational<1> >, dimensionless_type> boost::units::base_dimension< Derived, N, class >::dimension_type |
A convenience typedef. Equivalent to boost::units::derived_dimension<Derived,1>::type.
typedef base_dimension boost::units::base_dimension< Derived, N, class >::this_type |
INTERNAL ONLY.
typedef Derived boost::units::base_dimension< Derived, N, class >::type |
Provided for mpl compatability.
|
friend |
Register this ordinal INTERNAL ONLY.
|
friend |
But make sure we can identify the current instantiation! INTERNAL ONLY.
|
friend |
Check for C++0x.
In C++0x, we have to have identical arguments but a different return type to trigger an error. Note that this is only needed for clang as check_base_dimension will trigger an error earlier for compilers with less strict name lookup. INTERNAL ONLY