HyperspaceExplorer 0.7.1
Public Member Functions | Private Attributes
FunctionParameterValue< T > Class Template Reference

A value for a function parameter. Template depending on its type. More...

#include <FunctionParameterValue.h>

Inheritance diagram for FunctionParameterValue< T >:
Inheritance graph
[legend]
Collaboration diagram for FunctionParameterValue< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FunctionParameterValue (const T &_value)
 Construct the FunctionParameterValue object with its actual value.
virtual void setValue (const char *)
 Set a value from a string, as contained in a QLineEdit.
virtual double toDouble () const
virtual unsigned toUnsigned () const
virtual int toInt () const
virtual std::string toString () const
 Converts the parameter to string for printing.
virtual VecMath::RotationBase toRotationBase () const
virtual VecMath::Rotation< 5 > toRotation5 () const
virtual VecMath::Rotation< 6 > toRotation6 () const
virtual VecMath::Rotation< 7 > toRotation7 () const
virtual VecMath::Rotation< 8 > toRotation8 () const
virtual VecMath::Rotation< 9 > toRotation9 () const
virtual VecMath::Rotation< 10 > toRotation10 () const
template<>
 FunctionParameterValue (const double &value)
template<>
 FunctionParameterValue (const unsigned &value)
template<>
 FunctionParameterValue (const int &value)
template<>
 FunctionParameterValue (const std::string &value)
template<>
 FunctionParameterValue (const VecMath::Rotation< 5 > &value)
template<>
 FunctionParameterValue (const VecMath::Rotation< 6 > &value)
template<>
 FunctionParameterValue (const VecMath::Rotation< 7 > &value)
template<>
 FunctionParameterValue (const VecMath::Rotation< 8 > &value)
template<>
 FunctionParameterValue (const VecMath::Rotation< 9 > &value)
template<>
 FunctionParameterValue (const VecMath::Rotation< 10 > &value)
template<>
double toDouble () const
 get a double parameter
template<>
unsigned toUnsigned () const
 get an unsigned parameter
template<>
int toInt () const
 get an integer parameter
template<>
VecMath::Rotation< 5 > toRotation5 () const
 get a Rotation<5> parm
template<>
VecMath::RotationBase toRotationBase () const
 get a RotationBase parameter
template<>
VecMath::Rotation< 6 > toRotation6 () const
 get a Rotation<6> parm
template<>
VecMath::RotationBase toRotationBase () const
 get a RotationBase parameter
template<>
VecMath::Rotation< 7 > toRotation7 () const
 get a Rotation<7> parm
template<>
VecMath::RotationBase toRotationBase () const
 get a RotationBase parameter
template<>
VecMath::Rotation< 8 > toRotation8 () const
 get a Rotation<8> parm
template<>
VecMath::RotationBase toRotationBase () const
 get a RotationBase parameter
template<>
VecMath::Rotation< 9 > toRotation9 () const
 get a Rotation<9> parm
template<>
VecMath::RotationBase toRotationBase () const
 get a RotationBase parameter
template<>
VecMath::Rotation< 10 > toRotation10 () const
 get a Rotation<10> parm
template<>
VecMath::RotationBase toRotationBase () const
 get a RotationBase parameter
template<>
void setValue (const char *value)
 set a parameter using a C-style string, distinguishing from a std::string
template<>
void setValue (const char *value)
 set a parameter using a C-style string, distinguishing from a std::string
template<>
void setValue (const char *value)
 set a parameter using a C-style string, distinguishing from a std::string
template<>
void setValue (const char *value)
 set a parameter using a C-style string, distinguishing from a std::string
template<>
void setValue (const char *value)
 set a parameter using a C-style string, distinguishing from a std::string
template<>
void setValue (const char *value)
 set a parameter using a C-style string, distinguishing from a std::string
template<>
void setValue (const char *value)
 set a parameter using a C-style string, distinguishing from a std::string
template<>
void setValue (const char *value)
 set a parameter using a C-style string, distinguishing from a std::string
template<>
void setValue (const char *value)
 set a parameter using a C-style string, distinguishing from a std::string
template<>
void setValue (const char *value)
 set a parameter using a C-style string, distinguishing from a std::string

Private Attributes

_value
 The actual value of the parameter.

Detailed Description

template<typename T>
class FunctionParameterValue< T >

A value for a function parameter. Template depending on its type.

Defines the interface declared by FunctionParameterValueBase:

Template Parameters:
TType of the parameter to be declared.
See also:
FunctionParameterValueBase

Member Function Documentation

template<typename T >
virtual double FunctionParameterValue< T >::toDouble ( ) const [inline, virtual]

Default implementation for cast to double. Concrete implementation will be defined in FunctionParameterValue<double>.

Implements FunctionParameterValueBase.

template<typename T >
virtual int FunctionParameterValue< T >::toInt ( ) const [inline, virtual]

Default implementation for cast to int. Concrete implementation will be defined in FunctionParameterValue<int>.

Implements FunctionParameterValueBase.

template<typename T >
virtual VecMath::Rotation<10> FunctionParameterValue< T >::toRotation10 ( ) const [inline, virtual]

Default implementation for cast to Rotation<10>. Concrete implementation will be defined in FunctionParameterValue< Rotation<10> >.

Implements FunctionParameterValueBase.

template<typename T >
virtual VecMath::Rotation<5> FunctionParameterValue< T >::toRotation5 ( ) const [inline, virtual]

Default implementation for cast to Rotation<5>. Concrete implementation will be defined in FunctionParameterValue< Rotation<5> >.

Implements FunctionParameterValueBase.

template<typename T >
virtual VecMath::Rotation<6> FunctionParameterValue< T >::toRotation6 ( ) const [inline, virtual]

Default implementation for cast to Rotation<6>. Concrete implementation will be defined in FunctionParameterValue< Rotation<6> >.

Implements FunctionParameterValueBase.

template<typename T >
virtual VecMath::Rotation<7> FunctionParameterValue< T >::toRotation7 ( ) const [inline, virtual]

Default implementation for cast to Rotation<7>. Concrete implementation will be defined in FunctionParameterValue< Rotation<7> >.

Implements FunctionParameterValueBase.

template<typename T >
virtual VecMath::Rotation<8> FunctionParameterValue< T >::toRotation8 ( ) const [inline, virtual]

Default implementation for cast to Rotation<8>. Concrete implementation will be defined in FunctionParameterValue< Rotation<8> >.

Implements FunctionParameterValueBase.

template<typename T >
virtual VecMath::Rotation<9> FunctionParameterValue< T >::toRotation9 ( ) const [inline, virtual]

Default implementation for cast to Rotation<9>. Concrete implementation will be defined in FunctionParameterValue< Rotation<9> >.

Implements FunctionParameterValueBase.

template<typename T >
virtual VecMath::RotationBase FunctionParameterValue< T >::toRotationBase ( ) const [inline, virtual]

Default implementation for cast to RotationBase. Concrete implementation will be defined in FunctionParameterValue< Rotation<D> >.

Implements FunctionParameterValueBase.

template<typename T >
virtual unsigned FunctionParameterValue< T >::toUnsigned ( ) const [inline, virtual]

Default implementation for cast to unsigned. Concrete implementation will be defined in FunctionParameterValue<unsigned>.

Implements FunctionParameterValueBase.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:18 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo