Back to index

extremetuxracer  0.5beta
Public Types | Public Member Functions | Private Attributes
pp::Slot1< T, R1 > Class Template Reference

#include <signal.h>

Inheritance diagram for pp::Slot1< T, R1 >:
Inheritance graph
[legend]
Collaboration diagram for pp::Slot1< T, R1 >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef void(T::* SlotPtr_t )(R1)

Public Member Functions

 Slot1 (T *rcv, SlotPtr_t sl)
 ~Slot1 ()
void Call (BaseArgument *arg)

Private Attributes

T * mRcv
SlotPtr_t mSlot

Detailed Description

template<class T, class R1>
class pp::Slot1< T, R1 >

Definition at line 114 of file signal.h.


Member Typedef Documentation

template<class T, class R1>
typedef void(T::* pp::Slot1< T, R1 >::SlotPtr_t)(R1)

Definition at line 116 of file signal.h.


Constructor & Destructor Documentation

template<class T, class R1>
pp::Slot1< T, R1 >::Slot1 ( T *  rcv,
SlotPtr_t  sl 
) [inline]

Definition at line 117 of file signal.h.

       {
              mRcv = rcv;
              mSlot = sl;
       }
template<class T, class R1>
pp::Slot1< T, R1 >::~Slot1 ( ) [inline]

Definition at line 122 of file signal.h.

{ }

Member Function Documentation

template<class T, class R1>
void pp::Slot1< T, R1 >::Call ( BaseArgument arg) [inline, virtual]

Implements pp::BaseSlot.

Definition at line 124 of file signal.h.

       {
              if (arg->Count() == 1) {
                     Argument1<R1> *a1 = static_cast<Argument1<R1>* >(arg);
                     if (arg) (*mRcv.*mSlot)(a1->Arg1());
              }

              //mit RTTI
//            Argument1<R1> *a1 = dynamic_cast<Argument1<R1>* >(arg);
//            if (arg) (*mRcv.*mSlot)(a1->Arg1());
       }

Here is the call graph for this function:


Member Data Documentation

template<class T, class R1>
T* pp::Slot1< T, R1 >::mRcv [private]

Definition at line 136 of file signal.h.

template<class T, class R1>
SlotPtr_t pp::Slot1< T, R1 >::mSlot [private]

Definition at line 137 of file signal.h.


The documentation for this class was generated from the following file: