Castor3D 0.16.0
Multiplatform 3D engine
|
Basic signal class. More...
#include <Signal.hpp>
Public Types | |
using | connection = my_connection |
Public Member Functions | |
SignalT (SignalT &&) noexcept=default | |
SignalT & | operator= (SignalT &&) noexcept=default |
SignalT ()=default | |
~SignalT () noexcept | |
Destructor. | |
my_connection | connect (Function function) |
Connects a new function that will be called if the signal is emitted. | |
void | operator() () const |
Emits the signal, calls every connected function. | |
template<typename ... Params> | |
void | operator() (Params &&... params) const |
Emits the signal, calls every connected function. | |
Friends | |
class | ConnectionT< SignalT< Function > > |
Additional Inherited Members | |
Protected Member Functions inherited from castor::NonCopyable | |
NonCopyable ()=default | |
Constructor. | |
~NonCopyable () noexcept=default | |
Destructor. | |
Basic signal class.
using castor::SignalT< Function >::connection = my_connection |
|
defaultnoexcept |
|
default |
|
inlinenoexcept |
|
inline |
Connects a new function that will be called if the signal is emitted.
[in] | function | The function. |
|
inline |
Emits the signal, calls every connected function.
|
inline |
Emits the signal, calls every connected function.
[in] | params | The functions parameters. |
|
defaultnoexcept |
|
friend |