Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::units::base_unit_info< BaseUnit > Struct Template Reference

traits template for unit names. More...

#include <units_fwd.hpp>

Public Types

typedef void base_unit_info_primary_template
 INTERNAL ONLY. More...
 

Static Public Member Functions

static std::string name ()
 The full name of the unit (returns BaseUnit::name() by default) More...
 
static std::string symbol ()
 The symbol for the base unit (Returns BaseUnit::symbol() by default) More...
 

Detailed Description

template<class BaseUnit>
struct boost::units::base_unit_info< BaseUnit >

traits template for unit names.

Member Typedef Documentation

template<class BaseUnit>
typedef void boost::units::base_unit_info< BaseUnit >::base_unit_info_primary_template

INTERNAL ONLY.

Member Function Documentation

template<class BaseUnit>
static std::string boost::units::base_unit_info< BaseUnit >::name ( )
inlinestatic

The full name of the unit (returns BaseUnit::name() by default)

References boost::iostreams::gzip::flags::name.

Referenced by boost::units::detail::base_unit_name_string().

template<class BaseUnit>
static std::string boost::units::base_unit_info< BaseUnit >::symbol ( )
inlinestatic

The symbol for the base unit (Returns BaseUnit::symbol() by default)

Returns
BaseUnit::symbol(), for example "m"

References boost::spirit::x3::unicode::symbol.

Referenced by boost::units::detail::base_unit_symbol_string().


The documentation for this struct was generated from the following file: