|
Public Member Functions |
| Callback () |
| This constructs a new empty callback.
|
| Callback (const Callback &rhs) |
| This copies the delegate and callable pointers from the given callback.
|
void | clear () |
| This function removes all callables from this callback.
|
void | add (Odyssey::Callable *callable) |
| This adds a new callable.
|
void | remove (Odyssey::Callable *callable) |
| This removes the given callable from this callback.
|
size_t | getCallableCount () const |
Callback & | operator+= (Callable *callable) |
Callback & | operator-= (Callable *callable) |
Callback & | operator= (const Callback &rhs) |
void | operator() () const |
| This is the nullary operator.
|
template<class T0> |
void | operator() (T0 arg0) const |
| This is the automatic typing 1-arity operator.
|
template<class T0, class T1> |
void | operator() (T0 arg0, T1 arg1) const |
| This is the automatic typing 2-arity operator.
|
template<class T0, class T1, class T2> |
void | operator() (T0 arg0, T1 arg1, T2 arg2) const |
| This is the automatic typing 3-arity operator.
|
template<class T0, class T1, class T2, class T3> |
void | operator() (T0 arg0, T1 arg1, T2 arg2, T3 arg3) const |
| This is the automatic typing 4-arity operator.
|
template<class T0, class T1, class T2, class T3, class T4> |
void | operator() (T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4) const |
| This is the automatic typing 5-arity operator.
|
template<class T0, class T1, class T2, class T3, class T4, class T5> |
void | operator() (T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5) const |
| This is the automatic typing 6-arity operator.
|
template<class T0, class T1, class T2, class T3, class T4, class T5, class T6> |
void | operator() (T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6) const |
| This is the automatic typing 7-arity operator.
|
This class declares a callback mechanism. It allows multiple callable register and unregister to be called. It is based around Callable pointers, so it is necessary that these Callable object remain existing throughout the lifetime of the Callback object. This is not done for you.