aGrUM  0.13.2
gum::Signaler0 Class Reference

class for signal with 0 args More...

#include <signaler0.h>

Inherits BasicSignaler0.

Public Member Functions

 Signaler0 ()
 
 Signaler0 (const Signaler0 &s)
 
virtual ~Signaler0 ()
 
template<class TargetClass >
void attach (TargetClass *target, void(TargetClass::*action)(const void *))
 
INLINE void operator() (const void *src)
 

Detailed Description

class for signal with 0 args

Warning
Due to the too-smart-way-for-DOXYGEN of building classes Signaler1,...,Signaler_n, these classes are not documented.

Definition at line 116 of file signaler0.h.

Constructor & Destructor Documentation

gum::Signaler0::Signaler0 ( )
inline

Definition at line 118 of file signaler0.h.

118 { GUM_CONSTRUCTOR(Signaler0); }
gum::Signaler0::Signaler0 ( const Signaler0 s)
inline

Definition at line 120 of file signaler0.h.

120  : __sig__::BasicSignaler0(s) {
121  GUM_CONS_CPY(Signaler0);
122  }
virtual gum::Signaler0::~Signaler0 ( )
inlinevirtual

Definition at line 124 of file signaler0.h.

124 { GUM_DESTRUCTOR(Signaler0); }

Member Function Documentation

template<class TargetClass >
void gum::Signaler0::attach ( TargetClass *  target,
void(TargetClass::*)(const void *)  action 
)
inline

Definition at line 127 of file signaler0.h.

127  {
128  __sig__::Connector0< TargetClass >* conn =
129  new __sig__::Connector0< TargetClass >(target, action);
130  this->_connectors.push_back(conn);
131  target->attachSignal__(this);
132  }
INLINE void gum::Signaler0::operator() ( const void *  src)
inline

Definition at line 134 of file signaler0.h.

134  {
135  for (const auto el : _connectors) {
136  el->notify(src);
137  }
138  }

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