Clementine
Public Member Functions | Friends | List of all members
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 >:
Inheritance graph
[legend]
Collaboration diagram for entt::emitter< Derived >::connection< Event >:
Collaboration graph
[legend]

Public Member Functions

 connection ()=default
 Default constructor.
 
 connection (typename pool_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()

template<typename Derived >
template<typename Event>
entt::emitter< Derived >::connection< Event >::connection ( typename pool_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: