presage
0.9.2~beta
|
#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.
|
virtual |
Definition at line 29 of file observable.cpp.
|
protected |
Definition at line 54 of file observable.cpp.
|
virtual |
Definition at line 34 of file observable.cpp.
References observers.
Referenced by Dispatcher< ARPAPredictor >::map().
|
virtual |
Definition at line 39 of file observable.cpp.
References observers.
|
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().
|
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().
|
virtual |
Definition at line 44 of file observable.cpp.
References observers.
Referenced by Variable::set_value().
|
private |
Definition at line 52 of file observable.h.