OpenLexocad  27.1
entt::emitter< Derived >::connection< Event > Struct Template Reference

Generic connection type for events. More...

#include <entt.hpp>

Inheritance diagram for entt::emitter< Derived >::connection< Event >:

Public Member Functions

 connection () ENTT_NOEXCEPT=default
 Default constructor. More...
 
 connection (typename event_handler< Event >::connection_type conn)
 Creates a connection that wraps its underlying instance. More...
 

Friends

class emitter
 Event emitters are friend classes of connections. More...
 

Detailed Description

template<typename Derived>
template<typename Event>
struct entt::emitter< Derived >::connection< Event >

Generic connection type for events.

Type of the connection object returned by the event emitter whenever a listener for the given type is registered.
It can be used to break connections still in use.

Template Parameters
EventType of event for which the connection is created.

Constructor & Destructor Documentation

◆ connection() [1/2]

template<typename Derived >
template<typename Event >
entt::emitter< Derived >::connection< Event >::connection ( )
default

Default constructor.

◆ connection() [2/2]

template<typename Derived >
template<typename Event >
entt::emitter< Derived >::connection< Event >::connection ( typename event_handler< Event >::connection_type  conn)
inline

Creates a connection that wraps its underlying instance.

Parameters
connA connection object to wrap.

Friends And Related Function Documentation

◆ emitter

template<typename Derived >
template<typename Event >
friend class emitter
friend

Event emitters are friend classes of connections.


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