Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
toolbox::util::BasicSlot< ArgsT > Class Template Reference

#include <toolbox/util/Slot.hpp>

Public Member Functions

constexpr BasicSlot (std::nullptr_t=nullptr) noexcept
 
 ~BasicSlot ()=default
 
constexpr BasicSlot (const BasicSlot &) noexcept=default
 
constexpr BasicSlotoperator= (const BasicSlot &) noexcept=default
 
constexpr BasicSlot (BasicSlot &&) noexcept=default
 
constexpr BasicSlotoperator= (BasicSlot &&) noexcept=default
 
void invoke (ArgsT... args) const
 
void operator() (ArgsT... args) const
 
constexpr bool empty () const noexcept
 
constexpr operator bool () const noexcept
 
template<void(*)(ArgsT...) FnT>
constexpr auto & bind () noexcept
 
template<typename ClassT >
constexpr auto & bind (ClassT *obj) noexcept
 
template<auto MemFnT, typename ClassT = typename FunctionTraits<decltype(MemFnT)>::ClassType>
constexpr auto & bind (ClassT *obj) noexcept
 
void reset (std::nullptr_t=nullptr) noexcept
 

Friends

constexpr bool operator== (BasicSlot lhs, BasicSlot rhs) noexcept
 
constexpr bool operator!= (BasicSlot lhs, BasicSlot rhs) noexcept
 

Detailed Description

template<typename... ArgsT>
class toolbox::util::BasicSlot< ArgsT >

Definition at line 26 of file Slot.hpp.

Constructor & Destructor Documentation

◆ BasicSlot() [1/3]

template<typename... ArgsT>
constexpr toolbox::util::BasicSlot< ArgsT >::BasicSlot ( std::nullptr_t  = nullptr)
inlineexplicitconstexprnoexcept

Definition at line 36 of file Slot.hpp.

◆ ~BasicSlot()

template<typename... ArgsT>
toolbox::util::BasicSlot< ArgsT >::~BasicSlot ( )
default

◆ BasicSlot() [2/3]

template<typename... ArgsT>
constexpr toolbox::util::BasicSlot< ArgsT >::BasicSlot ( const BasicSlot< ArgsT > &  )
constexprdefaultnoexcept

◆ BasicSlot() [3/3]

template<typename... ArgsT>
constexpr toolbox::util::BasicSlot< ArgsT >::BasicSlot ( BasicSlot< ArgsT > &&  )
constexprdefaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

template<typename... ArgsT>
constexpr BasicSlot & toolbox::util::BasicSlot< ArgsT >::operator= ( const BasicSlot< ArgsT > &  )
constexprdefaultnoexcept

◆ operator=() [2/2]

template<typename... ArgsT>
constexpr BasicSlot & toolbox::util::BasicSlot< ArgsT >::operator= ( BasicSlot< ArgsT > &&  )
constexprdefaultnoexcept

◆ invoke()

template<typename... ArgsT>
void toolbox::util::BasicSlot< ArgsT >::invoke ( ArgsT...  args) const
inline

Definition at line 47 of file Slot.hpp.

◆ operator()()

template<typename... ArgsT>
void toolbox::util::BasicSlot< ArgsT >::operator() ( ArgsT...  args) const
inline

Definition at line 48 of file Slot.hpp.

◆ empty()

template<typename... ArgsT>
constexpr bool toolbox::util::BasicSlot< ArgsT >::empty ( ) const
inlineconstexprnoexcept

Definition at line 49 of file Slot.hpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ operator bool()

template<typename... ArgsT>
constexpr toolbox::util::BasicSlot< ArgsT >::operator bool ( ) const
inlineexplicitconstexprnoexcept

Definition at line 50 of file Slot.hpp.

◆ bind() [1/3]

template<typename... ArgsT>
template<void(*)(ArgsT...) FnT>
constexpr auto & toolbox::util::BasicSlot< ArgsT >::bind ( )
inlineconstexprnoexcept

◆ bind() [2/3]

template<typename... ArgsT>
template<typename ClassT >
constexpr auto & toolbox::util::BasicSlot< ArgsT >::bind ( ClassT *  obj)
inlineconstexprnoexcept

Definition at line 62 of file Slot.hpp.

◆ bind() [3/3]

template<typename... ArgsT>
template<auto MemFnT, typename ClassT = typename FunctionTraits<decltype(MemFnT)>::ClassType>
constexpr auto & toolbox::util::BasicSlot< ArgsT >::bind ( ClassT *  obj)
inlineconstexprnoexcept

Definition at line 72 of file Slot.hpp.

◆ reset()

template<typename... ArgsT>
void toolbox::util::BasicSlot< ArgsT >::reset ( std::nullptr_t  = nullptr)
inlinenoexcept

Definition at line 80 of file Slot.hpp.

Friends And Related Symbol Documentation

◆ operator==

template<typename... ArgsT>
constexpr bool operator== ( BasicSlot< ArgsT lhs,
BasicSlot< ArgsT rhs 
)
friend

Definition at line 28 of file Slot.hpp.

◆ operator!=

template<typename... ArgsT>
constexpr bool operator!= ( BasicSlot< ArgsT lhs,
BasicSlot< ArgsT rhs 
)
friend

Definition at line 32 of file Slot.hpp.


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