The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Public Attributes | List of all members
gui2::event::dispatcher::signal_type< T > Struct Template Reference

Helper struct to generate the various signal types. More...

Public Member Functions

 signal_type ()=default
 
bool empty (const dispatcher::event_queue_type queue_type) const
 Checks whether the queue of a given type is empty. More...
 

Public Attributes

std::list< T > pre_child
 
std::list< T > child
 
std::list< T > post_child
 

Detailed Description

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

Helper struct to generate the various signal types.

Definition at line 458 of file dispatcher.hpp.

Constructor & Destructor Documentation

◆ signal_type()

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

Member Function Documentation

◆ empty()

template<class T >
bool gui2::event::dispatcher::signal_type< T >::empty ( const dispatcher::event_queue_type  queue_type) const
inline

Checks whether the queue of a given type is empty.

Parameters
queue_typeThe queue to check. This may be one or more types OR'd together (event_queue_type is bit-unique).
Returns
True if ALL the matching queues are empty, or false if any of the matching queues is NOT empty.

Definition at line 475 of file dispatcher.hpp.

References gui2::event::dispatcher::child, gui2::event::dispatcher::signal_type< T >::child, gui2::event::dispatcher::post, gui2::event::dispatcher::signal_type< T >::post_child, gui2::event::dispatcher::pre, and gui2::event::dispatcher::signal_type< T >::pre_child.

Member Data Documentation

◆ child

template<class T >
std::list<T> gui2::event::dispatcher::signal_type< T >::child

Definition at line 463 of file dispatcher.hpp.

Referenced by gui2::event::dispatcher::signal_type< T >::empty().

◆ post_child

template<class T >
std::list<T> gui2::event::dispatcher::signal_type< T >::post_child

Definition at line 464 of file dispatcher.hpp.

Referenced by gui2::event::dispatcher::signal_type< T >::empty().

◆ pre_child

template<class T >
std::list<T> gui2::event::dispatcher::signal_type< T >::pre_child

Definition at line 462 of file dispatcher.hpp.

Referenced by gui2::event::dispatcher::signal_type< T >::empty().


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