Chicane

Observable

Header
Chicane/Core/Event/Observable.hpp
Namespace
Chicane::Observable

Observables maintains a list of Subscriptions that get notified upon any change to the source value.

Constructors

ModifierNameDescription
Observable<A>()

Destructors

ModifierNameDescription
~Observable()

Functions

AccessModifierTypeNameDescription
publicSubscriptions<A>*subscribe(std::function<void (A)> inNext, std::function<void (const std::string&)> inError, std::function<void ()> inComplete)
publicvoidnext(const A& inData)
publicvoiderror(const std::string& inMessage)
publicvoidcomplete()

Properties

AccessModifierTypeNameDescription
privatestd::vector<std::unique_ptr<Subscriptions<A>>>m_subscriptions