#include <vebLegacy.h>
Public Types | |
typedef boost::shared_ptr < Base >(T::* | cb_ptr )(void) |
convinience typedef for a callback that can be used with this class | |
Public Member Functions | |
Callback (cb_ptr value, T *hud) | |
Basic constructor. | |
Callback (Callback const &other) | |
Copy constructor. | |
void | operator= (Callback const &other) |
overloaded assignment operator | |
Base * | copy (void) const |
virtual | ~Callback () |
virtual Variant | GetValue (void) const |
Returns the value in its native format. | |
virtual int | GetInt (void) const |
Returns an integer using the current value. | |
virtual float | GetFloat (void) const |
Returns a float using the current value. | |
virtual tString | GetString (Base const *other=0) const |
Returns a String using the current value using Output(). | |
bool | operator== (Base const &other) const |
compares two values | |
bool | operator!= (Base const &other) const |
compares two values | |
bool | operator>= (Base const &other) const |
compares two values | |
bool | operator<= (Base const &other) const |
compares two values | |
bool | operator> (Base const &other) const |
compares two values | |
bool | operator< (Base const &other) const |
compares two values | |
Private Attributes | |
cb_ptr | m_value |
Pointer to the function. | |
T * | m_cockpit |
Pointer to the object that the function will be called within. |
Definition at line 44 of file vebLegacy.h.
typedef boost::shared_ptr<Base>(T::* vValue::Expr::Bindings::Legacy::Callback< T >::cb_ptr)(void) |
convinience typedef for a callback that can be used with this class
vValue::Expr::Bindings::Legacy::Callback< T >::Callback | ( | cb_ptr | value, | |
T * | hud | |||
) | [inline] |
Basic constructor.
Initializes the Callback object to a given callback function and object
value | the callback to be used | |
hud | the Cockpit to call the callback from |
Definition at line 74 of file vebLegacy.h.
Referenced by vValue::Expr::Bindings::Legacy::Callback< T >::copy().
vValue::Expr::Bindings::Legacy::Callback< T >::Callback | ( | Callback< T > const & | other | ) | [inline] |
virtual vValue::Expr::Bindings::Legacy::Callback< T >::~Callback | ( | ) | [inline, virtual] |
void vValue::Expr::Bindings::Legacy::Callback< T >::operator= | ( | Callback< T > const & | other | ) | [inline] |
overloaded assignment operator
Does nothing different than the default assignment operator, but gets rid of a compiler warning
other | the Callback to be copied |
Definition at line 96 of file vebLegacy.h.
References vValue::Expr::Bindings::Legacy::Callback< T >::m_cockpit, and vValue::Expr::Bindings::Legacy::Callback< T >::m_value.
00096 { 00097 this->Base::operator=(other); 00098 m_value=other.m_value; 00099 m_cockpit=other.m_cockpit; 00100 }
Base * vValue::Expr::Bindings::Legacy::Callback< T >::copy | ( | void | ) | const [inline, virtual] |
Overwritten copy function
Reimplemented from vValue::Expr::Core::Base.
Definition at line 90 of file vebLegacy.h.
References vValue::Expr::Bindings::Legacy::Callback< T >::Callback().
00090 { 00091 return new Callback(*this); 00092 }
Variant vValue::Expr::Bindings::Legacy::Callback< T >::GetValue | ( | void | ) | const [inline, virtual] |
Returns the value in its native format.
Returns the result of calling the stored callback
Reimplemented from vValue::Expr::Core::Base.
Definition at line 104 of file vebLegacy.h.
References vValue::Expr::Bindings::Legacy::Callback< T >::m_cockpit, and vValue::Expr::Bindings::Legacy::Callback< T >::m_value.
int vValue::Expr::Bindings::Legacy::Callback< T >::GetInt | ( | void | ) | const [inline, virtual] |
Returns an integer using the current value.
Returns the result of calling the stored callback as an integer
Reimplemented from vValue::Expr::Core::Base.
Definition at line 116 of file vebLegacy.h.
References vValue::Expr::Bindings::Legacy::Callback< T >::m_cockpit, and vValue::Expr::Bindings::Legacy::Callback< T >::m_value.
float vValue::Expr::Bindings::Legacy::Callback< T >::GetFloat | ( | void | ) | const [inline, virtual] |
Returns a float using the current value.
Returns the result of calling the stored callback as a float
Reimplemented from vValue::Expr::Core::Base.
Definition at line 122 of file vebLegacy.h.
References vValue::Expr::Bindings::Legacy::Callback< T >::m_cockpit, and vValue::Expr::Bindings::Legacy::Callback< T >::m_value.
tString vValue::Expr::Bindings::Legacy::Callback< T >::GetString | ( | Base const * | other = 0 |
) | const [inline, virtual] |
Returns a String using the current value using Output().
Returns the result of calling the stored callback as a string
Reimplemented from vValue::Expr::Core::Base.
Definition at line 110 of file vebLegacy.h.
References vValue::Expr::Bindings::Legacy::Callback< T >::m_cockpit, and vValue::Expr::Bindings::Legacy::Callback< T >::m_value.
bool vValue::Expr::Bindings::Legacy::Callback< T >::operator== | ( | Base const & | other | ) | const [inline, virtual] |
compares two values
Reimplemented from vValue::Expr::Core::Base.
Definition at line 126 of file vebLegacy.h.
References vValue::Expr::Bindings::Legacy::Callback< T >::m_cockpit, and vValue::Expr::Bindings::Legacy::Callback< T >::m_value.
bool vValue::Expr::Bindings::Legacy::Callback< T >::operator!= | ( | Base const & | other | ) | const [inline, virtual] |
compares two values
Reimplemented from vValue::Expr::Core::Base.
Definition at line 127 of file vebLegacy.h.
References vValue::Expr::Bindings::Legacy::Callback< T >::m_cockpit, and vValue::Expr::Bindings::Legacy::Callback< T >::m_value.
bool vValue::Expr::Bindings::Legacy::Callback< T >::operator>= | ( | Base const & | other | ) | const [inline, virtual] |
compares two values
Reimplemented from vValue::Expr::Core::Base.
Definition at line 128 of file vebLegacy.h.
References vValue::Expr::Bindings::Legacy::Callback< T >::m_cockpit, and vValue::Expr::Bindings::Legacy::Callback< T >::m_value.
bool vValue::Expr::Bindings::Legacy::Callback< T >::operator<= | ( | Base const & | other | ) | const [inline, virtual] |
compares two values
Reimplemented from vValue::Expr::Core::Base.
Definition at line 129 of file vebLegacy.h.
References vValue::Expr::Bindings::Legacy::Callback< T >::m_cockpit, and vValue::Expr::Bindings::Legacy::Callback< T >::m_value.
bool vValue::Expr::Bindings::Legacy::Callback< T >::operator> | ( | Base const & | other | ) | const [inline, virtual] |
compares two values
Reimplemented from vValue::Expr::Core::Base.
Definition at line 130 of file vebLegacy.h.
References vValue::Expr::Bindings::Legacy::Callback< T >::m_cockpit, and vValue::Expr::Bindings::Legacy::Callback< T >::m_value.
bool vValue::Expr::Bindings::Legacy::Callback< T >::operator< | ( | Base const & | other | ) | const [inline, virtual] |
compares two values
Reimplemented from vValue::Expr::Core::Base.
Definition at line 131 of file vebLegacy.h.
References vValue::Expr::Bindings::Legacy::Callback< T >::m_cockpit, and vValue::Expr::Bindings::Legacy::Callback< T >::m_value.
cb_ptr vValue::Expr::Bindings::Legacy::Callback< T >::m_value [private] |
Pointer to the function.
Definition at line 48 of file vebLegacy.h.
Referenced by vValue::Expr::Bindings::Legacy::Callback< T >::GetFloat(), vValue::Expr::Bindings::Legacy::Callback< T >::GetInt(), vValue::Expr::Bindings::Legacy::Callback< T >::GetString(), vValue::Expr::Bindings::Legacy::Callback< T >::GetValue(), vValue::Expr::Bindings::Legacy::Callback< T >::operator!=(), vValue::Expr::Bindings::Legacy::Callback< T >::operator<(), vValue::Expr::Bindings::Legacy::Callback< T >::operator<=(), vValue::Expr::Bindings::Legacy::Callback< T >::operator=(), vValue::Expr::Bindings::Legacy::Callback< T >::operator==(), vValue::Expr::Bindings::Legacy::Callback< T >::operator>(), and vValue::Expr::Bindings::Legacy::Callback< T >::operator>=().
T* vValue::Expr::Bindings::Legacy::Callback< T >::m_cockpit [private] |
Pointer to the object that the function will be called within.
Definition at line 49 of file vebLegacy.h.
Referenced by vValue::Expr::Bindings::Legacy::Callback< T >::GetFloat(), vValue::Expr::Bindings::Legacy::Callback< T >::GetInt(), vValue::Expr::Bindings::Legacy::Callback< T >::GetString(), vValue::Expr::Bindings::Legacy::Callback< T >::GetValue(), vValue::Expr::Bindings::Legacy::Callback< T >::operator!=(), vValue::Expr::Bindings::Legacy::Callback< T >::operator<(), vValue::Expr::Bindings::Legacy::Callback< T >::operator<=(), vValue::Expr::Bindings::Legacy::Callback< T >::operator=(), vValue::Expr::Bindings::Legacy::Callback< T >::operator==(), vValue::Expr::Bindings::Legacy::Callback< T >::operator>(), and vValue::Expr::Bindings::Legacy::Callback< T >::operator>=().