.. _bpu-class: BPU === .. ditaa:: +-----------+-----------+ | quantity | xquantity | +-----------+-----------+ | scaled_unit | +-----------------------+ | natural_unit | +-----------------------+ |cYEL bpu | +-------------+ | | bu_store | | +-------------+---------+ | basis_unit | +-----------------------+ | dimension | +-----------------------+ .. code-block:: cpp #include A :code:`xo::qty::bpu` (aka "basis power unit") represents a rational (usually integer) power of a :doc:`basis-unit-class`. For example: .. uml:: :caption: representation for cubic millimeters :scale: 99% :align: center object mm3<> mm3 : native_dim = dim::distance mm3 : scalefactor = 1/1000 mm3 : power = 3/1 .. uml:: :caption: representation for annual (365-day) volatility :scale: 99% :align: center object vol<> vol : native_dim = dim::time vol : scalefactor = 365*24*3600 vol : power = -1/2 .. doxygenclass:: xo::qty::bpu Member Variables ---------------- .. doxygengroup:: bpu-instance-vars Constructors ------------ .. doxygengroup:: bpu-ctors Access Methods -------------- .. doxygengroup:: bpu-access-methods Other Methods ------------- .. doxygengroup:: bpu-methods Comparison ---------- .. doxygengroup:: bpu-comparison Details ------- .. doxygengroup:: bpu-abbrev-helpers