CMS 3D CMS Logo

Public Member Functions | Private Attributes

Geom::Theta< T > Class Template Reference

#include <Theta.h>

List of all members.

Public Member Functions

 operator T () const
 conversion operator makes transparent use possible.
 Theta (const T &val)
 Constructor from T, does not provide automatic conversion.
 Theta ()
 Default constructor does not initialise - just as double.
T value () const
 Explicit access to value in case implicit conversion not OK.

Private Attributes

T theValue

Detailed Description

template<class T>
class Geom::Theta< T >

A class for polar angle represantation. So far only useful to differentiate from double, for example in function overloading.

Definition at line 12 of file Theta.h.


Constructor & Destructor Documentation

template<class T>
Geom::Theta< T >::Theta ( ) [inline]

Default constructor does not initialise - just as double.

Definition at line 16 of file Theta.h.

{}
template<class T>
Geom::Theta< T >::Theta ( const T val) [inline, explicit]

Constructor from T, does not provide automatic conversion.

Definition at line 19 of file Theta.h.

: theValue(val) {}

Member Function Documentation

template<class T>
Geom::Theta< T >::operator T ( ) const [inline]

conversion operator makes transparent use possible.

Definition at line 22 of file Theta.h.

References Geom::Theta< T >::theValue.

{ return theValue;}
template<class T>
T Geom::Theta< T >::value ( ) const [inline]

Explicit access to value in case implicit conversion not OK.

Definition at line 25 of file Theta.h.

Referenced by Basic3DVector< align::Scalar >::Basic3DVector(), and Basic3DVector< long double >::Basic3DVector().

{ return theValue;}

Member Data Documentation

template<class T>
T Geom::Theta< T >::theValue [private]

Definition at line 28 of file Theta.h.

Referenced by Geom::Theta< T >::operator T(), and Geom::Theta< Scalar >::value().