Odyssey::Callback Class Reference

Implements a Callback mechanism using delegates and callable pointers. More...

#include <Callback.h>

List of all members.

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
Callbackoperator+= (Callable *callable)
Callbackoperator-= (Callable *callable)
Callbackoperator= (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.


Detailed Description

Implements a Callback mechanism using delegates and callable pointers.

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.


Constructor & Destructor Documentation

Odyssey::Callback::Callback  ) 
 

This constructs a new empty callback.

Odyssey::Callback::Callback const Callback rhs  ) 
 

This copies the delegate and callable pointers from the given callback.


Member Function Documentation

void Odyssey::Callback::add Odyssey::Callable callable  ) 
 

This adds a new callable.

void Odyssey::Callback::clear  ) 
 

This function removes all callables from this callback.

size_t Odyssey::Callback::getCallableCount  )  const
 

template<class T0, class T1, class T2, class T3, class T4, class T5, class T6>
void Odyssey::Callback::operator() T0  arg0,
T1  arg1,
T2  arg2,
T3  arg3,
T4  arg4,
T5  arg5,
T6  arg6
const [inline]
 

This is the automatic typing 7-arity operator.

template<class T0, class T1, class T2, class T3, class T4, class T5>
void Odyssey::Callback::operator() T0  arg0,
T1  arg1,
T2  arg2,
T3  arg3,
T4  arg4,
T5  arg5
const [inline]
 

This is the automatic typing 6-arity operator.

template<class T0, class T1, class T2, class T3, class T4>
void Odyssey::Callback::operator() T0  arg0,
T1  arg1,
T2  arg2,
T3  arg3,
T4  arg4
const [inline]
 

This is the automatic typing 5-arity operator.

template<class T0, class T1, class T2, class T3>
void Odyssey::Callback::operator() T0  arg0,
T1  arg1,
T2  arg2,
T3  arg3
const [inline]
 

This is the automatic typing 4-arity operator.

template<class T0, class T1, class T2>
void Odyssey::Callback::operator() T0  arg0,
T1  arg1,
T2  arg2
const [inline]
 

This is the automatic typing 3-arity operator.

template<class T0, class T1>
void Odyssey::Callback::operator() T0  arg0,
T1  arg1
const [inline]
 

This is the automatic typing 2-arity operator.

template<class T0>
void Odyssey::Callback::operator() T0  arg0  )  const [inline]
 

This is the automatic typing 1-arity operator.

void Odyssey::Callback::operator()  )  const [inline]
 

This is the nullary operator.

Callback& Odyssey::Callback::operator+= Callable callable  ) 
 

Callback& Odyssey::Callback::operator-= Callable callable  ) 
 

Callback& Odyssey::Callback::operator= const Callback rhs  ) 
 

void Odyssey::Callback::remove Odyssey::Callable callable  ) 
 

This removes the given callable from this callback.


The documentation for this class was generated from the following file:
Generated on Sun Jan 7 01:18:52 2007 for Odyssey Meta-Engine by  doxygen 1.4.6-NO