OpenLexocad  27.1
entt::connection Class Reference

Connection class. More...

#include <entt.hpp>

Inheritance diagram for entt::connection:
entt::scoped_connection

Public Member Functions

 connection ()=default
 Default constructor. More...
 
 connection (const connection &)=default
 Default copy constructor. More...
 
 connection (connection &&other)
 Default move constructor. More...
 
connectionoperator= (const connection &)=default
 Default copy assignment operator. More...
 
connectionoperator= (connection &&other)
 Default move assignment operator. More...
 
 operator bool () const ENTT_NOEXCEPT
 Checks whether a connection is properly initialized. More...
 
void release ()
 Breaks the connection. More...
 

Friends

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

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.

Constructor & Destructor Documentation

◆ connection() [1/3]

entt::connection::connection ( )
default

Default constructor.

◆ connection() [2/3]

entt::connection::connection ( const connection )
default

Default copy constructor.

◆ connection() [3/3]

entt::connection::connection ( connection &&  other)
inline

Default move constructor.

Parameters
otherThe instance to move from.

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.

◆ operator=() [1/2]

connection& entt::connection::operator= ( const connection )
default

Default copy assignment operator.

Returns
This connection.

◆ operator=() [2/2]

connection& entt::connection::operator= ( connection &&  other)
inline

Default move assignment operator.

Parameters
otherThe instance to move from.
Returns
This connection.

◆ release()

void entt::connection::release ( )
inline

Breaks the connection.

Friends And Related Function Documentation

◆ sink

template<typename >
friend class sink
friend

A sink is allowed to create connection objects.


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