The Battle for Wesnoth  1.17.14+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 497 of file dispatcher.hpp.

Member Typedef Documentation

◆ callback

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

Definition at line 504 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

Definition at line 507 of file dispatcher.hpp.

◆ 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

Definition at line 533 of file dispatcher.hpp.

◆ 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

Definition at line 505 of file dispatcher.hpp.


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