CppUtils::Container::NetworkPtr<class T>
CLASSGraph node wrapper managing cyclic references deterministically via root-distance tracking.
Description
Section intitulée « Description »| Paramètre template | Description |
|---|---|
T | Payload type stored inside the node. |
Types publics
Section intitulée « Types publics »using CppUtils::Container::NetworkPtr<T>::Value = T;SharedPtr
Section intitulée « SharedPtr »using CppUtils::Container::NetworkPtr<T>::SharedPtr = SafeShared<NetworkPtr<T>>;using CppUtils::Container::NetworkPtr<T>::WeakPtr = SafeWeak<NetworkPtr<T>>;Accessor
Section intitulée « Accessor »using CppUtils::Container::NetworkPtr<T>::Accessor = Thread::Accessor<NetworkPtr<T>, Thread::SharedMutex>;Attributs publics
Section intitulée « Attributs publics »Méthodes publiques
Section intitulée « Méthodes publiques »Returns true if this node is marked as a root.
Returns true if this node is neither a root nor attached to any parent.
Marks or unmarks this node as a root.
Stores the weak self-reference used when registering parent/child links.
Returns the shortest hop distance from any root node (or max() if unreachable).
Attaches childValue as a child of this node, promoting or demoting the link strength based on root distance.
| Paramètre | Description |
|---|---|
std::logic_error | if the child handle is expired or this parent has no root path. |
Detaches childValue from this node and updates root distances across affected descendants.
| Paramètre | Description |
|---|---|
childValue | Child node to unlink from this parent. |
Detaches all children from this node and updates root distances across affected descendants.
Detaches this node from parent.
| Paramètre | Description |
|---|---|
parent | Parent node handle to unlink from. |
Removes all back-references to this node from its registered parents.
Allocates a non-root node wrapped in a SafeShared.
| Paramètre | Description |
|---|---|
args | Arguments forwarded to construct T. |
Allocates a root node wrapped in a SafeShared.
| Paramètre | Description |
|---|---|
args | Arguments forwarded to construct T. |