physical::format::FormatSpec< UnitSystem > Struct Template Reference

#include <formatspec.hpp>

Collaboration diagram for physical::format::FormatSpec< UnitSystem >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef DynamicUnit< UnitSystem > unit_type

Public Member Functions

template<typename T, class Exponents>
 FormatSpec (std::string n, const FixedPhysical< UnitSystem, T, Exponents > u, std::size_t p)
 FormatSpec (std::string n, DynamicUnit< UnitSystem > u, std::streamsize p)

Public Attributes

std::string unitname
unit_type unit
std::streamsize precision

Detailed Description

template<class UnitSystem>
struct physical::format::FormatSpec< UnitSystem >

Definition at line 24 of file formatspec.hpp.


Member Typedef Documentation

template<class UnitSystem>
typedef DynamicUnit<UnitSystem> physical::format::FormatSpec< UnitSystem >::unit_type

Definition at line 25 of file formatspec.hpp.


Constructor & Destructor Documentation

template<class UnitSystem>
template<typename T, class Exponents>
physical::format::FormatSpec< UnitSystem >::FormatSpec ( std::string  n,
const FixedPhysical< UnitSystem, T, Exponents >  u,
std::size_t  p 
) [inline]

Definition at line 32 of file formatspec.hpp.

00033                                 : unitname(n), unit(u), precision(static_cast<std::streamsize>(p)) {};

template<class UnitSystem>
physical::format::FormatSpec< UnitSystem >::FormatSpec ( std::string  n,
DynamicUnit< UnitSystem >  u,
std::streamsize  p 
) [inline]

Definition at line 35 of file formatspec.hpp.

00036             : unitname(n), unit(u), precision(static_cast<std::streamsize>(p)) {};


Member Data Documentation

template<class UnitSystem>
std::string physical::format::FormatSpec< UnitSystem >::unitname

Definition at line 27 of file formatspec.hpp.

Referenced by physical::format::detail::format_to_spec().

template<class UnitSystem>
unit_type physical::format::FormatSpec< UnitSystem >::unit

Definition at line 28 of file formatspec.hpp.

Referenced by physical::format::detail::format_to_spec().

template<class UnitSystem>
std::streamsize physical::format::FormatSpec< UnitSystem >::precision

Definition at line 29 of file formatspec.hpp.

Referenced by physical::format::detail::format_to_spec().


The documentation for this struct was generated from the following file:
Generated on Mon Apr 2 22:25:08 2007 for physical_svn by  doxygen 1.5.1-p1
hosted on SourceForge.net Logo