Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

Units::Prefixed< Prefixable< GT, U, ST >, P > Class Template Reference

Spezialization of Prefixed for first parameter Prefixable<GT, U, ST>. More...

#include <Unit.h>

Inheritance diagram for Units::Prefixed< Prefixable< GT, U, ST >, P >:

Units::Prefixable< GT, U, ST > Units::Unit< GT, ST > Units::Units List of all members.

Public Member Functions

ST standard (const ST &value) const
 convert value in Prefixed into the standard unit

ST reverse (const ST &value) const
 convert value in the standard unit into Prefixed

const std::string name (void) const
 return the name of this unit.

const std::string symbol (void) const
 return the symbol of this unit.


Static Public Member Functions

ST Standard (const ST &value)
 convert value in Prefixed into the standard unit

ST standardRatio (void)
 determine the ratio between units for standardization

ST Reverse (const ST &value)
 convert value in the standard unit into Prefixed

std::string Name (void)
 the name of the Prefixed;

std::string Symbol (void)
 the symbol of the Prefixed;


Detailed Description

template<class GT, class U, class P, class ST>
class Units::Prefixed< Prefixable< GT, U, ST >, P >

Spezialization of Prefixed for first parameter Prefixable<GT, U, ST>.

all Prefixed<> Units thus defined are subclasses of Prefixable<GT, U, ST>, and characteristics of Prefixable<GT, U, ST> are used to determine the factor, the name and the symbol of the Prefixed Unit; the storage type ST determines the parameter and return type for the standard and reverse functions.

Definition at line 374 of file Unit.h.


Member Function Documentation

template<class GT, class U, class P, class ST>
const std::string Units::Prefixed< Prefixable< GT, U, ST >, P >::name void   )  const [inline, virtual]
 

return the name of this unit.

dynamic access, to be used polymorphically if exact type is not known at compile time.

Implements Units::Unit< GT, ST >.

Definition at line 427 of file Unit.h.

template<class GT, class U, class P, class ST>
ST Units::Prefixed< Prefixable< GT, U, ST >, P >::reverse const ST &  value  )  const [inline, virtual]
 

convert value in the standard unit into Prefixed

converts additionally into storage type ST; dynamic access.

Reimplemented from Units::Prefixable< GT, U, ST >.

Definition at line 410 of file Unit.h.

template<class GT, class U, class P, class ST>
ST Units::Prefixed< Prefixable< GT, U, ST >, P >::Reverse const ST &  value  )  [inline, static]
 

convert value in the standard unit into Prefixed

converts additionally into storage type ST; static access.

Reimplemented from Units::Prefixable< GT, U, ST >.

Definition at line 402 of file Unit.h.

template<class GT, class U, class P, class ST>
ST Units::Prefixed< Prefixable< GT, U, ST >, P >::standard const ST &  value  )  const [inline, virtual]
 

convert value in Prefixed into the standard unit

converts additionally into storage type ST; dynamic access.

Reimplemented from Units::Prefixable< GT, U, ST >.

Definition at line 389 of file Unit.h.

template<class GT, class U, class P, class ST>
ST Units::Prefixed< Prefixable< GT, U, ST >, P >::Standard const ST &  value  )  [inline, static]
 

convert value in Prefixed into the standard unit

converts additionally into storage type ST; static access.

Reimplemented from Units::Prefixable< GT, U, ST >.

Definition at line 382 of file Unit.h.

template<class GT, class U, class P, class ST>
ST Units::Prefixed< Prefixable< GT, U, ST >, P >::standardRatio void   )  [inline, static]
 

determine the ratio between units for standardization

defines the extent of the current unit with respect to the standard unit; dynamic access.

Reimplemented from Units::Prefixable< GT, U, ST >.

Definition at line 395 of file Unit.h.

template<class GT, class U, class P, class ST>
const std::string Units::Prefixed< Prefixable< GT, U, ST >, P >::symbol void   )  const [inline, virtual]
 

return the symbol of this unit.

dynamic access, to be used polymorphically if exact type is not known at compile time

Implements Units::Unit< GT, ST >.

Definition at line 444 of file Unit.h.


The documentation for this class was generated from the following file:
Generated on Sun Jan 15 13:58:01 2006 for Quantity by doxygen 1.3.6