The Battle for Wesnoth  1.19.7+dev
Public Types | Public Member Functions | Public Attributes | List of all members
gui2::event::dispatcher::signal_queue< T > Struct Template Reference

Helper struct to generate the various event queues. More...

Public Types

using callback = T
 

Public Member Functions

 signal_queue ()=default
 
 signal_queue (const signal_queue &)=delete
 
signal_queueoperator= (const signal_queue &)=delete
 
void connect_signal (const ui_event event, const queue_position position, const T &signal)
 
void disconnect_signal (const ui_event event, const queue_position position, const T &signal)
 

Public Attributes

std::map< ui_event, signal_type< T > > queue
 

Detailed Description

template<class T>
struct gui2::event::dispatcher::signal_queue< T >

Helper struct to generate the various event queues.

Definition at line 495 of file dispatcher.hpp.

Member Typedef Documentation

◆ callback

template<class T >
using gui2::event::dispatcher::signal_queue< T >::callback = T

Definition at line 502 of file dispatcher.hpp.

Constructor & Destructor Documentation

◆ signal_queue() [1/2]

template<class T >
gui2::event::dispatcher::signal_queue< T >::signal_queue ( )
default

◆ signal_queue() [2/2]

template<class T >
gui2::event::dispatcher::signal_queue< T >::signal_queue ( const signal_queue< T > &  )
delete

Member Function Documentation

◆ connect_signal()

template<class T >
void gui2::event::dispatcher::signal_queue< T >::connect_signal ( const ui_event  event,
const queue_position  position,
const T &  signal 
)
inline

◆ disconnect_signal()

template<class T >
void gui2::event::dispatcher::signal_queue< T >::disconnect_signal ( const ui_event  event,
const queue_position  position,
const T &  signal 
)
inline

◆ operator=()

template<class T >
signal_queue& gui2::event::dispatcher::signal_queue< T >::operator= ( const signal_queue< T > &  )
delete

Member Data Documentation

◆ queue

template<class T >
std::map<ui_event, signal_type<T> > gui2::event::dispatcher::signal_queue< T >::queue

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