Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
ValueSetControl< T > Class Template ReferenceUpon activation, this control will set the target pointer to the specified value. More...
Inheritance diagram for ValueSetControl< T >:
Detailed Descriptiontemplate<class T>
|
Public Member Functions | |
virtual ControlBase * | activate (MC_ID display) |
assigns def to object pointed to by target | |
Constructors/Destructors | |
ValueSetControl () | |
constructor | |
ValueSetControl (const std::string &n, T *t) | |
constructor | |
ValueSetControl (const std::string &n, T *t, const T &d) | |
constructor | |
ValueSetControl (const ValueSetControl &vsc) | |
copy constructor | |
ValueSetControl | operator= (const ValueSetControl &vsc) |
assignment operator | |
virtual | ~ValueSetControl () |
destructor | |
Target | |
virtual T * | getTarget () const |
returns the target pointer | |
virtual ValueSetControl & | setTarget (T *t) |
sets the target pointer - the object pointed to will be overwritten on activate(); returns *this | |
Value | |
virtual T & | getDefault () |
gets reference to default value | |
virtual const T & | getDefault () const |
gets reference to default value | |
virtual ValueSetControl & | setDefault (const T &d) |
assigns d to the default value (not to the target, yet); returns *this | |
Protected Attributes | |
T * | target |
the target that will be set to the default value (def) | |
T | def |
the value that will be assigned to target upon a call to activate() |
ValueSetControl< T >::ValueSetControl | ( | ) |
constructor
Definition at line 13 of file ValueSetControl.h.
ValueSetControl< T >::ValueSetControl | ( | const std::string & | n, | |
T * | t | |||
) |
constructor
Definition at line 14 of file ValueSetControl.h.
ValueSetControl< T >::ValueSetControl | ( | const std::string & | n, | |
T * | t, | |||
const T & | d | |||
) |
constructor
Definition at line 15 of file ValueSetControl.h.
ValueSetControl< T >::ValueSetControl | ( | const ValueSetControl< T > & | vsc | ) |
copy constructor
Definition at line 16 of file ValueSetControl.h.
virtual ValueSetControl< T >::~ValueSetControl | ( | ) | [virtual] |
destructor
Definition at line 18 of file ValueSetControl.h.
virtual ControlBase* ValueSetControl< T >::activate | ( | MC_ID | display | ) | [virtual] |
assigns def to object pointed to by target
Definition at line 22 of file ValueSetControl.h.
virtual const T& ValueSetControl< T >::getDefault | ( | ) | const [virtual] |
gets reference to default value
Definition at line 39 of file ValueSetControl.h.
virtual T& ValueSetControl< T >::getDefault | ( | ) | [virtual] |
gets reference to default value
Definition at line 38 of file ValueSetControl.h.
virtual T* ValueSetControl< T >::getTarget | ( | ) | const [virtual] |
returns the target pointer
Definition at line 32 of file ValueSetControl.h.
ValueSetControl ValueSetControl< T >::operator= | ( | const ValueSetControl< T > & | vsc | ) |
assignment operator
Definition at line 17 of file ValueSetControl.h.
virtual ValueSetControl& ValueSetControl< T >::setDefault | ( | const T & | d | ) | [virtual] |
assigns d to the default value (not to the target, yet); returns *this
Definition at line 40 of file ValueSetControl.h.
virtual ValueSetControl& ValueSetControl< T >::setTarget | ( | T * | t | ) | [virtual] |
sets the target pointer - the object pointed to will be overwritten on activate(); returns *this
Definition at line 33 of file ValueSetControl.h.
T ValueSetControl< T >::def [protected] |
the value that will be assigned to target upon a call to activate()
Definition at line 45 of file ValueSetControl.h.
Referenced by ValueSetControl< T >::activate(), ValueSetControl< T >::getDefault(), ValueSetControl< T >::operator=(), and ValueSetControl< T >::setDefault().
T* ValueSetControl< T >::target [protected] |
the target that will be set to the default value (def)
Definition at line 44 of file ValueSetControl.h.
Referenced by ValueSetControl< T >::activate(), ValueSetControl< T >::getTarget(), ValueSetControl< T >::operator=(), and ValueSetControl< T >::setTarget().
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:18 2016 by Doxygen 1.6.3 |