The Battle for Wesnoth  1.15.1+dev
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
gui2::notifiee< FUNCTOR > Class Template Reference

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

#include <notifiee.hpp>

Public Types

typedef FUNCTOR functor_t
 

Public Member Functions

 notifiee ()
 
 ~notifiee ()
 

Private Attributes

notifier< functor_t > * notifier_
 Pointer the the notifier that's linked to us. More...
 

Friends

class notifier< functor_t >
 

Detailed Description

template<class FUNCTOR>
class gui2::notifiee< FUNCTOR >

Helper class to implement callbacks with lifetime management.

This part manages the lifetime off the callback.

Definition at line 31 of file notifiee.hpp.

Member Typedef Documentation

◆ functor_t

template<class FUNCTOR>
typedef FUNCTOR gui2::notifiee< FUNCTOR >::functor_t

Definition at line 34 of file notifiee.hpp.

Constructor & Destructor Documentation

◆ notifiee()

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

Definition at line 37 of file notifiee.hpp.

◆ ~notifiee()

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

Definition at line 41 of file notifiee.hpp.

Friends And Related Function Documentation

◆ notifier< functor_t >

template<class FUNCTOR>
friend class notifier< functor_t >
friend

Definition at line 35 of file notifiee.hpp.

Member Data Documentation

◆ notifier_

template<class FUNCTOR>
notifier<functor_t>* gui2::notifiee< FUNCTOR >::notifier_
private

Pointer the the notifier that's linked to us.

Definition at line 50 of file notifiee.hpp.

Referenced by gui2::notifier< functor_t >::connect_notifiee(), gui2::notifier< functor_t >::disconnect_notifiee(), and gui2::notifiee< functor_t >::~notifiee().


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