Owns the listener wiring created by StateTree::clone_synced().
More...
#include <state_tree.hpp>
Owns the listener wiring created by StateTree::clone_synced().
One instance per clone; destroy to detach.
Move-only: copying would silently double up listener registrations.
◆ SyncedClone() [1/2]
| pulp::state::StateTree::SyncedClone::SyncedClone |
( |
SyncedClone && | | ) |
|
|
noexcept |
◆ SyncedClone() [2/2]
| pulp::state::StateTree::SyncedClone::SyncedClone |
( |
const SyncedClone & | | ) |
|
|
delete |
◆ ~SyncedClone()
| pulp::state::StateTree::SyncedClone::~SyncedClone |
( |
| ) |
|
◆ clone()
| const StateTree::Ptr & pulp::state::StateTree::SyncedClone::clone |
( |
| ) |
const |
|
inline |
The cloned tree.
Mutate the ORIGINAL (the tree passed to clone_synced) to drive changes; this handle observes them.
◆ detach()
| void pulp::state::StateTree::SyncedClone::detach |
( |
| ) |
|
Drop the listener subscriptions early.
After this returns the clone stops mirroring further mutations. Safe to call twice.
◆ is_attached()
| bool pulp::state::StateTree::SyncedClone::is_attached |
( |
| ) |
const |
|
inline |
Whether the subscription is still active.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ StateTree
The documentation for this class was generated from the following file:
- /home/runner/work/pulp/pulp/core/state/include/pulp/state/state_tree.hpp