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

Derived Floating Point Type Classes


  
Figure 5.5: Structure of derived enumeration type classes.
\begin{figure}\begin{center}
\epsfig{file=cdr/ftype.eps}\end{center}\end{figure}

The various floating point type classes differ only in their bounds. Consequently, a template is used to build up the required type classes automatically:

template<class R> class float_type : public float_base {
   ... 
};
R denotes the corresponding floating point type info class. Note, only static methods defined in the class are executed here.



 


1998-11-17