test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
Geom::Theta< T > Class Template Reference

#include <Theta.h>

Public Member Functions

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

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.

16 {}
template<class T>
Geom::Theta< T >::Theta ( const T val)
inlineexplicit

Constructor from T, does not provide automatic conversion.

Definition at line 19 of file Theta.h.

19 : theValue(val) {}
T theValue
Definition: Theta.h:28

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.

22 { return theValue;}
T theValue
Definition: Theta.h:28
template<class T>
T Geom::Theta< T >::value ( ) const
inline

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< float >::value().