Clementine
Public Member Functions | Friends | List of all members
entt::connection Class Reference

Connection class. More...

#include <entt.hpp>

Public Member Functions

 connection ()=default
 Default constructor.
 
 operator bool () const ENTT_NOEXCEPT
 Checks whether a connection is properly initialized. More...
 
void release ()
 Breaks the connection.
 

Friends

template<typename >
class sink
 A sink is allowed to create connection objects.
 

Detailed Description

Connection class.

Opaque object the aim of which is to allow users to release an already estabilished connection without having to keep a reference to the signal or the sink that generated it.

Member Function Documentation

◆ operator bool()

entt::connection::operator bool ( ) const
inlineexplicit

Checks whether a connection is properly initialized.

Returns
True if the connection is properly initialized, false otherwise.

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