morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
subscription_registry.hpp File Reference

A Bridge's instance subscriptions: at most one callback per (binding, result type), matched at publish time on the binding's current instance, so a re-pointed handler's subscriptions follow it; entries whose binding is gone are pruned. More...

#include <any>
#include <atomic>
#include <cstddef>
#include <functional>
#include <memory>
#include <typeindex>
#include <utility>
#include <vector>
#include "../executor.hpp"
#include "../strand.hpp"

Go to the source code of this file.

Detailed Description

A Bridge's instance subscriptions: at most one callback per (binding, result type), matched at publish time on the binding's current instance, so a re-pointed handler's subscriptions follow it; entries whose binding is gone are pruned.

Templated on the binding type so this header does not depend on bridge.hpp, which defines HandlerBinding inline: the body touches the binding's currentId only inside member functions, instantiated once the type is complete.

Definition in file subscription_registry.hpp.