Class Callback

template<class Type>
class Callback : public Reference::Able

Implements a callback.

Public Functions

inline Callback()

Default constructor.

inline virtual ~Callback()

Destructor.

inline void operator()(const Type &data)

Operator interface to send method.

inline void send(const Type &data)

Call all registered methods, passing data as the argument.

template<class Class, typename Method>
inline void connect(Class *instance, Method method)

Add an instance and its method to be called during send.

template<class Class, typename Method>
inline void disconnect(Class *instance, Method method)

Remove instance and its method.

template<typename Function>
inline void connect(Function function)

Add an function to be called during send.

template<typename Function>
inline void disconnect(Function function)

Remove function.

Public Members

bool verbose

Verbosity flag.