aGrUM  0.20.2
a C++ library for (probabilistic) graphical models
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 117 of file signaler0.h.

Constructor & Destructor Documentation

◆ Signaler0() [1/2]

gum::Signaler0::Signaler0 ( )
inline

Definition at line 119 of file signaler0.h.

119 { GUM_CONSTRUCTOR(Signaler0); }

◆ Signaler0() [2/2]

gum::Signaler0::Signaler0 ( const Signaler0 s)
inline

Definition at line 121 of file signaler0.h.

121  : __sig__::BasicSignaler0(s) {
122  GUM_CONS_CPY(Signaler0);
123  }

◆ ~Signaler0()

virtual gum::Signaler0::~Signaler0 ( )
inlinevirtual

Definition at line 125 of file signaler0.h.

125 { GUM_DESTRUCTOR(Signaler0); }

Member Function Documentation

◆ attach()

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

Definition at line 128 of file signaler0.h.

128  {
129  __sig__::Connector0< TargetClass >* conn
130  = new __sig__::Connector0< TargetClass >(target, action);
131  this->connectors_.push_back(conn);
132  target->attachSignal__(this);
133  }

◆ operator()()

INLINE void gum::Signaler0::operator() ( const void *  src)
inline

Definition at line 135 of file signaler0.h.

References operator()().

Referenced by operator()().

135  {
136  for (const auto el: connectors_) {
137  el->notify(src);
138  }
139  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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