aboutsummaryrefslogtreecommitdiff
path: root/Observer.h
diff options
context:
space:
mode:
Diffstat (limited to 'Observer.h')
-rw-r--r--Observer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Observer.h b/Observer.h
index e6d4f68..6ff8f3b 100644
--- a/Observer.h
+++ b/Observer.h
@@ -17,6 +17,7 @@ class Subject {
// virtual void attach(Observer* obs) { observers.push_back(obs);}
virtual void attach(Observer* obs);
virtual void detach(Observer*);
+ virtual int size() { return this->observers.size(); }
// TODO possibly add foo input as update value?
virtual void notify();