CMS 3D CMS Logo

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

◆ Theta() [1/2]

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

Default constructor does not initialise - just as double.

Definition at line 15 of file Theta.h.

15 {}

◆ Theta() [2/2]

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

Constructor from T, does not provide automatic conversion.

Definition at line 18 of file Theta.h.

18 : theValue(val) {}
T theValue
Definition: Theta.h:27

Member Function Documentation

◆ operator T()

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

conversion operator makes transparent use possible.

Definition at line 21 of file Theta.h.

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

21 { return theValue; }
T theValue
Definition: Theta.h:27

◆ value()

template<class T>
T Geom::Theta< T >::value ( ) const
inline

Member Data Documentation

◆ theValue

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

Definition at line 27 of file Theta.h.

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