Ethereum  PoC-8
The C++ Implementation of Ethereum
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)
 

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

◆ Callback

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

Definition at line 136 of file Common.h.

Constructor & Destructor Documentation

◆ ~Signal()

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

Definition at line 155 of file Common.h.

Member Function Documentation

◆ add()

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

Definition at line 162 of file Common.h.

◆ operator()()

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

Definition at line 170 of file Common.h.


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