45 for (observablesIdx = observables.begin (); observablesIdx != observables.end (); ++observablesIdx)
47 KKObservablePtr p = observablesIdx->first;
57 return sizeof (*
this);
62 void KKObserver::RegisterObservable (KKObservablePtr observable)
65 observables.insert (std::pair<KKObservablePtr,KKObservablePtr> (observable, observable));
71 void KKObserver::UnRegisterObservable (KKObservablePtr observable)
75 observablesIdx = observables.find (observable);
76 if (observablesIdx != observables.end ())
77 observables.erase (observablesIdx);
virtual void UnRegisterObserver(KKObserverPtr observer)
The base class to be used by Observer classes.
virtual void Notify(KKObservablePtr obj)
kkint32 MemoryConsumedEstimated()
KKStr(const KKStr &str)
Copy Constructor.
KKObserver(const KKStr &_name)
static KKStr Concat(const std::vector< std::string > &values)
Concatenates the list of 'std::string' strings.
Maintains one instance of a GoalKeeper object that can be used anywhere in the application.