18 #ifndef COMPONENTOBSERVABLE_H_
19 #define COMPONENTOBSERVABLE_H_
22 #include <SFML/UI/ComponentObserver.hpp>
66 std::set<sf::ui::ComponentObserver*>::const_iterator
getObserversEnd()
const;
108 std::set<sf::ui::ComponentObserver*> m_observers;
std::set< sf::ui::ComponentObserver * >::const_iterator getObserversEnd() const
void addObserver(sf::ui::ComponentObserver *observer)
Add an observer.
The class who call the observers.
void triggerEvent(const sf::ui::ComponentEvent &event)
Triggers the event and notify all observers.
An event generate by a component.
void removeObserver(sf::ui::ComponentObserver *observer)
Remove the observer at the given index.
ComponentObservable()
The default constructor.
void removeAllObservers()
Remove all the observers.
A object updated each time a ComponentObservable change.
std::set< sf::ui::ComponentObserver * >::const_iterator getObserversBegin() const