Honeycomb  0.1
Component-Model Framework
Classes | Macros
Signals and Listeners

Classes

class  honey::Listener
 Holds a slot that can receive signals. More...
 
struct  honey::ListenerList::Callback
 Callback to handle events from this class. More...
 
class  honey::ListenerList
 Collection of listeners. More...
 
class  honey::ListenerQueue
 Listener that holds queued slot for delayed processing of signals. More...
 
struct  honey::Signal< Sig_ >
 Multicast sender. More...
 
class  honey::SlotBase
 Multicast receiver. More...
 

Macros

#define SIGNAL_DECL(BaseClass)   static mt_global(const String, _signalBase, (#BaseClass));
 Call once inside a class that has signals. More...
 
#define SIGNAL(Name, Param)   struct Name : Signal<void Param> { static mt_global(const Id, id, (sout() << _signalBase() << "::"#Name)); };
 Call inside a class to declare a signal. More...
 

Detailed Description

Signals and listeners provide a way to broadcast one function call to multiple callees.

Macro Definition Documentation

#define SIGNAL (   Name,
  Param 
)    struct Name : Signal<void Param> { static mt_global(const Id, id, (sout() << _signalBase() << "::"#Name)); };

Call inside a class to declare a signal.

#define SIGNAL_DECL (   BaseClass)    static mt_global(const String, _signalBase, (#BaseClass));

Call once inside a class that has signals.