The Battle for Wesnoth  1.19.7+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 32 of file notifiee.hpp.

Member Typedef Documentation

◆ functor_t

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

Definition at line 35 of file notifiee.hpp.

Constructor & Destructor Documentation

◆ notifiee()

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

Definition at line 38 of file notifiee.hpp.

◆ ~notifiee()

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

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 51 of file notifiee.hpp.

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


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