NSlot1 Class Template Reference

NSlot1 is the template class for slot implementation. More...

Inheritance diagram for NSlot1:

NSlotBase1

List of all members.

Public Types

typedef void(ListenerT::* PtrMember )(ParamT)

Public Member Functions

 NSlot1 (ListenerT *object, PtrMember member)
 Constructs a NSlot1 object.
 ~NSlot1 ()
 Destroys a NSlot1 object.
int connect (NEvent1< ParamT > *event)
 Connects a event to the slot.
void disconnect ()
 Disconnects the slot from the event/signal.


Detailed Description

template<typename ListenerT, typename ParamT>
class NSlot1< ListenerT, ParamT >

NSlot1 is the template class for slot implementation.

See also:
See the files in examples/raven for examples

Definition at line 63 of file nslot1.hpp.


Member Typedef Documentation

typedef void(ListenerT::* PtrMember)(ParamT)

Listener type definition


Constructor & Destructor Documentation

NSlot1 ( ListenerT *  object,
PtrMember  member 
) [inline]

Constructs a NSlot1 object.

Parameters:
object The object for which a event will be attached to
member Method to be executed on reaction to a given signal/event

Definition at line 107 of file nslot1.hpp.


Member Function Documentation

int connect ( NEvent1< ParamT > *  event  )  [inline, virtual]

Connects a event to the slot.

Parameters:
event Event/Signal to connect this slot to
Returns:
Handler id.

Implements NSlotBase1.

Definition at line 127 of file nslot1.hpp.


The documentation for this class was generated from the following file:
Generated on Wed Mar 5 23:10:37 2008 for NemesisUtilitiesSystem by  doxygen 1.5.4