Public Member Functions | Private Member Functions | Private Attributes | List of all members
librealsense::signal< HostingClass, Args > Class Template Reference

#include <types.h>

Public Member Functions

int operator+= (const std::function< void(Args...)> &func)
 
bool operator-= (int token)
 
signaloperator= (signal &&other)
 
 signal ()
 
 signal (signal &&other)
 
int subscribe (const std::function< void(Args...)> &func)
 
bool unsubscribe (int token)
 

Private Member Functions

bool operator() (Args...args)
 
signaloperator= (const signal &)
 
bool raise (Args...args)
 
 signal (const signal &other)
 

Private Attributes

friend HostingClass
 
std::mutex m_mutex
 
std::map< int, std::function< void(Args...)> > m_subscribers
 

Detailed Description

template<typename HostingClass, typename... Args>
class librealsense::signal< HostingClass, Args >

Definition at line 1601 of file src/types.h.

Constructor & Destructor Documentation

template<typename HostingClass, typename... Args>
librealsense::signal< HostingClass, Args >::signal ( )
inline

Definition at line 1605 of file src/types.h.

template<typename HostingClass, typename... Args>
librealsense::signal< HostingClass, Args >::signal ( signal< HostingClass, Args > &&  other)
inline

Definition at line 1609 of file src/types.h.

template<typename HostingClass, typename... Args>
librealsense::signal< HostingClass, Args >::signal ( const signal< HostingClass, Args > &  other)
private

Member Function Documentation

template<typename HostingClass, typename... Args>
bool librealsense::signal< HostingClass, Args >::operator() ( Args...  args)
inlineprivate

Definition at line 1707 of file src/types.h.

template<typename HostingClass, typename... Args>
int librealsense::signal< HostingClass, Args >::operator+= ( const std::function< void(Args...)> &  func)
inline

Definition at line 1663 of file src/types.h.

template<typename HostingClass, typename... Args>
bool librealsense::signal< HostingClass, Args >::operator-= ( int  token)
inline

Definition at line 1668 of file src/types.h.

template<typename HostingClass, typename... Args>
signal& librealsense::signal< HostingClass, Args >::operator= ( signal< HostingClass, Args > &&  other)
inline

Definition at line 1617 of file src/types.h.

template<typename HostingClass, typename... Args>
signal& librealsense::signal< HostingClass, Args >::operator= ( const signal< HostingClass, Args > &  )
private
template<typename HostingClass, typename... Args>
bool librealsense::signal< HostingClass, Args >::raise ( Args...  args)
inlineprivate

Definition at line 1677 of file src/types.h.

template<typename HostingClass, typename... Args>
int librealsense::signal< HostingClass, Args >::subscribe ( const std::function< void(Args...)> &  func)
inline

Definition at line 1626 of file src/types.h.

template<typename HostingClass, typename... Args>
bool librealsense::signal< HostingClass, Args >::unsubscribe ( int  token)
inline

Definition at line 1648 of file src/types.h.

Member Data Documentation

template<typename HostingClass, typename... Args>
friend librealsense::signal< HostingClass, Args >::HostingClass
private

Definition at line 1603 of file src/types.h.

template<typename HostingClass, typename... Args>
std::mutex librealsense::signal< HostingClass, Args >::m_mutex
private

Definition at line 1712 of file src/types.h.

template<typename HostingClass, typename... Args>
std::map<int, std::function<void(Args...)> > librealsense::signal< HostingClass, Args >::m_subscribers
private

Definition at line 1713 of file src/types.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:38