Implements a callback.
More...
#include <Callback.h>
|
| Callback () |
| Default constructor.
|
|
virtual | ~Callback () |
| Destructor.
|
|
void | operator() (const Type &data) |
| Operator interface to send method.
|
|
void | send (const Type &data) |
| Call all registered methods, passing data as the argument.
|
|
template<class Class , typename Method > |
void | connect (Class *instance, Method method) |
| Add an instance and its method to be called during send.
|
|
template<class Class , typename Method > |
void | disconnect (Class *instance, Method method) |
| Remove instance and its method.
|
|
template<typename Function > |
void | connect (Function function) |
| Add an function to be called during send.
|
|
template<typename Function > |
void | disconnect (Function function) |
| Remove function.
|
|
template<class Class , typename Method > |
void | connect (Reference::To< Class > &ref, Method method) |
|
template<class Class , typename Method > |
void | disconnect (Reference::To< Class > &ref, Method method) |
|
| Able () |
| Default constructor.
|
|
| Able (const Able &) |
| Copy constructor.
|
|
Able & | operator= (const Able &) |
| Assignment operator.
|
|
virtual | ~Able () |
| Destructor.
|
|
unsigned | get_reference_count () const |
| Returns the number of references there are to this.
|
|
| HeapTracked () |
| Default constructor.
|
|
| HeapTracked (const HeapTracked &) |
| Copy constructor.
|
|
HeapTracked & | operator= (const HeapTracked &) |
| Assignment operator.
|
|
virtual | ~HeapTracked () |
| Destructor.
|
|
bool | __is_on_heap () const |
| Return true if this instance is found in heap addresses.
|
|
|
template<class Class , typename Method > |
void | change (Class *instance, Method method, bool add) |
|
template<typename Function > |
void | change (Function function, bool add) |
|
void | clean () |
|
Handle * | __reference (bool active) const |
| Add the address of a reference to this object. More...
|
|
void | __dereference (bool auto_delete=true) const |
| Remove the address of a reference to this object. More...
|
|
|
static size_t | get_instance_count () |
| Returns the current number instances in existence.
|
|
static void * | operator new (size_t size, void *ptr=0) |
| Records the addresses of new instances allocated on the heap.
|
|
static void | operator delete (void *location, void *ptr) |
| Placement delete overload to match the placement new overload.
|
|
static void | operator delete (void *location) |
| Regular delete overload.
|
|
static size_t | get_heap_queue_size () |
| Return the number of heap addresses awaiting processing.
|
|
template<class Type>
class Callback< Type >
Implements a callback.
The documentation for this class was generated from the following file: