xo-unit: expand bu_store docs + uml diagram

This commit is contained in:
Roland Conybeare 2024-05-08 23:24:52 -04:00
commit 83aceebe33
5 changed files with 93 additions and 2 deletions

View file

@ -210,8 +210,15 @@ namespace xo {
std::array<bu_dim_store, n_dim> bu_abbrev_vv_;
};
/** @brief global abbreviation store.
*
* @note
* Extending the contents of this store at runtime is not supported,
* in favor of preserving constexpr abbreviations.
**/
static constexpr bu_store bu_abbrev_store = bu_store();
/** @brief get abbreviation for basis-unit @p bu **/
constexpr bu_abbrev_type
bu_abbrev(const basis_unit & bu)
{