Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::TListener< Args > Class Template Reference

Template class used to bind listeners to a handler_type instance. More...

#include <TListener.h>

Inheritance diagram for sf::TListener< Args >:
Collaboration diagram for sf::TListener< Args >:

Classes

class  emitter_type
 Emitter class type for creating an instance which is emitting events to listeners. More...
 

Public Types

typedef std::function< void(Args...)> func_type
 Function type of the lambda or function.
 
typedef TListener< Args... > listener_type
 Listener type of the lambda or function.
 

Public Member Functions

 TListener (ListenerList *list, const func_type &lambda)
 Constructor.
 
 TListener (const TListener &)=delete
 Do not allow copying.
 
 ~TListener () override
 Overridden destructor from ListenerList::base_type in order to delete entries of any instantiated template.
 

Detailed Description

template<typename... Args>
class sf::TListener< Args >

Template class used to bind listeners to a handler_type instance.

Template Parameters
Args

Member Typedef Documentation

◆ func_type

template<typename... Args>
typedef std::function<void(Args...)> sf::TListener< Args >::func_type

Function type of the lambda or function.

◆ listener_type

template<typename... Args>
typedef TListener<Args...> sf::TListener< Args >::listener_type

Listener type of the lambda or function.

This type is wraps around a std::function

Constructor & Destructor Documentation

◆ TListener() [1/2]

template<typename... Args>
sf::TListener< Args >::TListener ( ListenerList list,
const func_type lambda 
)
inlineexplicit

Constructor.

Parameters
listOwning list
lambdaThe actual function to call.

◆ TListener() [2/2]

template<typename... Args>
sf::TListener< Args >::TListener ( const TListener< Args > &  )
delete

Do not allow copying.

◆ ~TListener()

template<typename... Args>
sf::TListener< Args >::~TListener ( )
inlineoverride

Overridden destructor from ListenerList::base_type in order to delete entries of any instantiated template.


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