Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Public Types | Public Member Functions | Private Attributes | List of all members
dev::eth::Signal< Args > Class Template Reference

Super-duper signal mechanism. TODO: replace with somthing a bit heavier weight. More...

#include <Common.h>

Classes

class  HandlerAux
 

Public Types

using Callback = std::function< void(Args...)>
 

Public Member Functions

 ~Signal ()
 
std::shared_ptr< HandlerAuxadd (Callback const &_h)
 
void operator() (Args const &..._args)
 

Private Attributes

std::map< unsigned, std::weak_ptr< typename Signal::HandlerAux > > m_fire
 

Detailed Description

template<typename... Args>
class dev::eth::Signal< Args >

Super-duper signal mechanism. TODO: replace with somthing a bit heavier weight.

Definition at line 133 of file Common.h.

Member Typedef Documentation

template<typename... Args>
using dev::eth::Signal< Args >::Callback = std::function<void(Args...)>

Definition at line 136 of file Common.h.

Constructor & Destructor Documentation

template<typename... Args>
dev::eth::Signal< Args >::~Signal ( )
inline

Definition at line 155 of file Common.h.

Member Function Documentation

template<typename... Args>
std::shared_ptr<HandlerAux> dev::eth::Signal< Args >::add ( Callback const &  _h)
inline

Definition at line 162 of file Common.h.

template<typename... Args>
void dev::eth::Signal< Args >::operator() ( Args const &...  _args)
inline

Definition at line 170 of file Common.h.

Member Data Documentation

template<typename... Args>
std::map<unsigned, std::weak_ptr<typename Signal::HandlerAux> > dev::eth::Signal< Args >::m_fire
private

Definition at line 178 of file Common.h.


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