aGrUM  0.20.3
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  {
120  GUM_CONSTRUCTOR(Signaler0);
121  ;
122  }

◆ Signaler0() [2/2]

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

Definition at line 124 of file signaler0.h.

124 : __sig__::BasicSignaler0(s) { GUM_CONS_CPY(Signaler0); }

◆ ~Signaler0()

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

Definition at line 126 of file signaler0.h.

126  {
127  GUM_DESTRUCTOR(Signaler0);
128  ;
129  }

Member Function Documentation

◆ attach()

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

Definition at line 132 of file signaler0.h.

132  {
133  __sig__::Connector0< TargetClass >* conn
134  = new __sig__::Connector0< TargetClass >(target, action);
135  this->connectors_.push_back(conn);
136  target->_attachSignal_(this);
137  }

◆ operator()()

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

Definition at line 139 of file signaler0.h.

References operator()().

Referenced by operator()().

139  {
140  for (const auto el: connectors_) {
141  el->notify(src);
142  }
143  }
+ 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: