The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
gui2::tnotifiee< FUNCTOR > Class Template Reference

Helper class to implement callbacks with lifetime management. More...

#include <notifiee.hpp>

Public Types

typedef FUNCTOR tfunctor
 

Public Member Functions

 tnotifiee ()
 
 ~tnotifiee ()
 

Private Attributes

tnotifier< tfunctor > * notifier_
 Pointer the the tnotifier that's linked to us. More...
 

Friends

class tnotifier< tfunctor >
 

Detailed Description

template<class FUNCTOR>
class gui2::tnotifiee< FUNCTOR >

Helper class to implement callbacks with lifetime management.

This part manages the lifetime off the callback.

Definition at line 32 of file notifiee.hpp.

Member Typedef Documentation

template<class FUNCTOR>
typedef FUNCTOR gui2::tnotifiee< FUNCTOR >::tfunctor

Definition at line 35 of file notifiee.hpp.

Constructor & Destructor Documentation

template<class FUNCTOR>
gui2::tnotifiee< FUNCTOR >::tnotifiee ( )
inline

Definition at line 38 of file notifiee.hpp.

template<class FUNCTOR>
gui2::tnotifiee< FUNCTOR >::~tnotifiee ( )
inline

Definition at line 42 of file notifiee.hpp.

Friends And Related Function Documentation

template<class FUNCTOR>
friend class tnotifier< tfunctor >
friend

Definition at line 36 of file notifiee.hpp.

Member Data Documentation

template<class FUNCTOR>
tnotifier<tfunctor>* gui2::tnotifiee< FUNCTOR >::notifier_
private

Pointer the the tnotifier that's linked to us.

Definition at line 51 of file notifiee.hpp.

Referenced by gui2::tnotifier< tfunctor >::connect_notifiee(), gui2::tnotifier< tfunctor >::disconnect_notifiee(), and gui2::tnotifiee< tfunctor >::~tnotifiee().


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