gdk-graphics 0b051eb9b5c1eaa0658babaa4463dd7a80aa9d2c
Loading...
Searching...
No Matches
jfc::smart_event< event_parameter_types_param > Class Template Referencefinal

event class that automatically cleans up unused observers More...

#include <smart_event.h>

Public Types

using observer_type = std::function<void(event_parameter_types_param...)>
 
using observer_weak_ptr_type = std::weak_ptr<observer_type>
 
using observer_shared_ptr_type = std::shared_ptr<observer_type>
 

Public Member Functions

observer_shared_ptr_type subscribe (observer_type aObserverFunctor)
 adds an observer
 
void notify (const event_parameter_types_param &... params) const
 notify observers & remove any null observers
 

Detailed Description

template<class... event_parameter_types_param>
class jfc::smart_event< event_parameter_types_param >

event class that automatically cleans up unused observers


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