15 #ifndef GUI_WIDGETS_AUXILIARY_NOTIFIER_HPP_INCLUDED
16 #define GUI_WIDGETS_AUXILIARY_NOTIFIER_HPP_INCLUDED
33 template <
class FUNCTOR>
48 assert((*item.first).notifier_ ==
this);
50 (*item.first).notifier_ =
nullptr;
63 notifiees_.insert(std::make_pair(¬ifiee, functor));
94 const std::map<tnotifiee<tfunctor>*, tfunctor>&
notifiees()
const
void disconnect_notifiee(tnotifiee< tfunctor > ¬ifiee)
Disconnects a callback.
itor second functor(surf, f[1])
A class inherited from ttext_box that displays its input as stars.
void connect_notifiee(tnotifiee< tfunctor > ¬ifiee, tfunctor functor)
Connects a callback.
std::map< std::string, tfilter >::iterator itor
const std::map< tnotifiee< tfunctor > *, tfunctor > & notifiees() const
tnotifier< tfunctor > * notifier_
Pointer the the tnotifier that's linked to us.
std::map< tnotifiee< tfunctor > *, tfunctor > notifiees_
List of registered callbacks.