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

Physical Type Template Class Methods

In the following table only constructor, assignment operators, and cast operators are shown. Additionally, the template class includes compare and arithmetic operators. However, for the sake of brevity they are not listed here.

Methods Description
physical_type(const long long int &a) Constructor to create a physical instance from a long long int. The value of the instance is set to ``a'' basic units.
physical_type(const long long int a,
        int unit)
Constructor to create a physical instance from a long long int value ``a'' weighted by a unit represented by ``unit''.
physical_type
&operator=(const long long int &a)
Assignment operator.
physical_type
&operator=(const physical_type &a)
Copy constructor.
physical_type
&operator=(const physical_base &a)
Constructor to generate a physical instance from a physical_base value.
   


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

1998-11-17