VL
|
Object is both an observable and observer. It observes its nested objects's changes More...
#include <vl.h>
Public Member Functions | |
void | Notify (vl::VarPtr info) override |
void | Update (Observable *sender, vl::VarPtr info=nullptr) override |
![]() | |
Observable () | |
bool | Attach (Observer *o, const std::string &title="") |
bool | Detach (Observer *o) |
virtual | ~Observable () |
virtual void | Notify (vl::VarPtr info=nullptr) |
bool | HasSubscribers () |
const std::vector< Observer * > * | GetObservers () const |
![]() | |
virtual | ~Observer () |
virtual void | Update (Observable *sender, vl::VarPtr info=nullptr)=0 |
const SubscriptionInfo * | GetSubscriptionInfo (const Observable *o) const |
const std::unordered_map< Observable *, SubscriptionInfo > * | GetSubscriptions () const |
Public Attributes | |
PropsContainerType | data |
Additional Inherited Members | |
![]() | |
std::vector< Observer * > * | GetObservers () |
void | Unsubscribe (Observer *o) |
![]() | |
std::unordered_map< Observable *, SubscriptionInfo > * | GetSubscriptions () |
SubscriptionInfo * | GetSubscriptionInfo (Observable *o) |
Object is both an observable and observer. It observes its nested objects's changes
info |
|
overridevirtual |
Reimplemented from vl::Observable.
|
overridevirtual |
Implements vl::Observer.
PropsContainerType vl::PropsDataType::data |