next up previous contents
Next: Physical Type Template Class Up: Derived Type Classes Previous: Floating Point Type Template

Derived Physical Type Classes

A physical value is represented by the amount of basic units it consists of. Physical types differ in their bounds, name and scaling of their units. A template is used to build the required type classes automatically:

template<class R> class physical_type : public physical_base {
   ... 
};
R is the corresponding physical type info class which provides the bounds and units of the physical type.



 


1998-11-17