presage
0.8.7
|
#include <observable.h>
Public Member Functions | |
virtual | ~Observable () |
virtual void | attach (Observer *observer) |
virtual void | detach (Observer *observer) |
virtual void | notify () |
virtual std::string | get_name () const =0 |
virtual std::string | get_value () const =0 |
Protected Member Functions | |
Observable () | |
Private Attributes | |
std::list< Observer * > | observers |
Definition at line 37 of file observable.h.
Observable::~Observable | ( | ) | [virtual] |
Definition at line 29 of file observable.cpp.
Observable::Observable | ( | ) | [protected] |
Definition at line 54 of file observable.cpp.
void Observable::attach | ( | Observer * | observer | ) | [virtual] |
Definition at line 34 of file observable.cpp.
References observers.
Referenced by Dispatcher< ARPAPredictor >::map().
void Observable::detach | ( | Observer * | observer | ) | [virtual] |
Definition at line 39 of file observable.cpp.
References observers.
virtual std::string Observable::get_name | ( | ) | const [pure virtual] |
Implemented in Variable.
Referenced by Dispatcher< ARPAPredictor >::dispatch(), Dispatcher< ARPAPredictor >::map(), DictionaryPredictor::update(), PredictorRegistry::update(), DejavuPredictor::update(), AbbreviationExpansionPredictor::update(), SmoothedNgramPredictor::update(), RecencyPredictor::update(), Selector::update(), ARPAPredictor::update(), PredictorActivator::update(), and ContextTracker::update().
virtual std::string Observable::get_value | ( | ) | const [pure virtual] |
Implemented in Variable.
Referenced by Dispatcher< ARPAPredictor >::dispatch(), DictionaryPredictor::update(), PredictorRegistry::update(), DejavuPredictor::update(), AbbreviationExpansionPredictor::update(), SmoothedNgramPredictor::update(), RecencyPredictor::update(), ARPAPredictor::update(), PredictorActivator::update(), and ContextTracker::update().
void Observable::notify | ( | ) | [virtual] |
Definition at line 44 of file observable.cpp.
References observers.
Referenced by Variable::set_value().
std::list<Observer*> Observable::observers [private] |
Definition at line 52 of file observable.h.