Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | List of all members
castor::ConnectionT< MySignalT > Class Template Reference

Connection to a signal. More...

#include <Signal.hpp>

Inheritance diagram for castor::ConnectionT< MySignalT >:
Inheritance graph
[legend]
Collaboration diagram for castor::ConnectionT< MySignalT >:
Collaboration graph
[legend]

Public Member Functions

 ConnectionT ()
 Constructor.
 
 ConnectionT (uint32_t connection, signal_type &signal)
 Constructor.
 
 ConnectionT (ConnectionT< signal_type > &&rhs) noexcept
 Move constructor.
 
ConnectionToperator= (ConnectionT< signal_type > &&rhs) noexcept
 Move assignment operator.
 
 ~ConnectionT () noexcept
 Destructor.
 
bool disconnect () noexcept
 Disconnects the function from the signal.
 
 operator bool () const noexcept
 

Additional Inherited Members

- Protected Member Functions inherited from castor::NonCopyable
 NonCopyable ()=default
 Constructor.
 
 ~NonCopyable () noexcept=default
 Destructor.
 

Detailed Description

template<typename MySignalT>
class castor::ConnectionT< MySignalT >

Connection to a signal.

Constructor & Destructor Documentation

◆ ConnectionT() [1/3]

template<typename MySignalT >
castor::ConnectionT< MySignalT >::ConnectionT ( )
inline

Constructor.

◆ ConnectionT() [2/3]

template<typename MySignalT >
castor::ConnectionT< MySignalT >::ConnectionT ( uint32_t connection,
signal_type & signal )
inline

Constructor.

Parameters
[in]connectionThe connection to the signal.
[in]signalThe signal.

References castor::makeStringStream().

Here is the call graph for this function:

◆ ConnectionT() [3/3]

template<typename MySignalT >
castor::ConnectionT< MySignalT >::ConnectionT ( ConnectionT< signal_type > && rhs)
inlinenoexcept

Move constructor.

Parameters
[in,out]rhsThe object to move.

◆ ~ConnectionT()

template<typename MySignalT >
castor::ConnectionT< MySignalT >::~ConnectionT ( )
inlinenoexcept

Destructor.

Remarks
Disconnects the function from the signal.

References castor::ConnectionT< MySignalT >::disconnect().

Here is the call graph for this function:

Member Function Documentation

◆ disconnect()

template<typename MySignalT >
bool castor::ConnectionT< MySignalT >::disconnect ( )
inlinenoexcept

Disconnects the function from the signal.

Referenced by castor::ConnectionT< MySignalT >::operator=(), and castor::ConnectionT< MySignalT >::~ConnectionT().

Here is the caller graph for this function:

◆ operator bool()

template<typename MySignalT >
castor::ConnectionT< MySignalT >::operator bool ( ) const
inlinenoexcept

◆ operator=()

template<typename MySignalT >
ConnectionT & castor::ConnectionT< MySignalT >::operator= ( ConnectionT< signal_type > && rhs)
inlinenoexcept

Move assignment operator.

Parameters
[in,out]rhsThe object to move.

References castor::ConnectionT< MySignalT >::disconnect().

Here is the call graph for this function:

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