PixelLightAPI  .
Public Member Functions | Static Public Attributes
PLCore::Slot< DESC > Class Template Reference

Event handler of a class. More...

#include <Slot.h>

List of all members.

Public Member Functions

 Slot (const typename DESC::MethType::MemFuncType &pMemFunc, typename DESC::ClassType *pObject)
 Constructor.
virtual ~Slot ()
 Destructor.
virtual const EventHandlerDescGetDesc () const override
 Get event handler descriptor.

Static Public Attributes

static DESC Desc

Detailed Description

template<typename DESC>
class PLCore::Slot< DESC >

Event handler of a class.

Remarks:
This class template represents slots (event handlers that belong to objects).
Note:
  • Implementation of the observer design pattern (this class is the observer, the destination)

Constructor & Destructor Documentation

template<typename DESC >
PLCore::Slot< DESC >::Slot ( const typename DESC::MethType::MemFuncType &  pMemFunc,
typename DESC::ClassType *  pObject 
) [inline]

Constructor.

Parameters:
[in]pMemFuncPointer to member function of a class
[in]pObjectPointer to object to which the method belongs
template<typename DESC >
virtual PLCore::Slot< DESC >::~Slot ( ) [inline, virtual]

Destructor.


Member Function Documentation

template<typename DESC >
virtual const EventHandlerDesc* PLCore::Slot< DESC >::GetDesc ( ) const [inline, override, virtual]

Get event handler descriptor.

Returns:
Event handler descriptor

Member Data Documentation

template<typename DESC >
DESC PLCore::Slot< DESC >::Desc [static]

Event handler descriptor


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


PixelLight PixelLight 0.9.10-R1
Copyright (C) 2002-2011 by The PixelLight Team
Last modified Fri Dec 23 2011 15:51:07
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported