EntropyEngine::Core::Concurrency::DependencyAddedEvent
EntropyEngine::Core::Concurrency::DependencyAddedEvent
Section titled “EntropyEngine::Core::Concurrency::DependencyAddedEvent”Fired when you wire two nodes together. More…
#include <WorkGraphEvents.h>
Inherits from EntropyEngine::Core::Concurrency::WorkGraphEvent
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| DependencyAddedEvent(const WorkGraph * g, NodeHandle f, NodeHandle t) |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| NodeHandle | to The dependent node (child). |
| NodeHandle | from The prerequisite node (parent). |
Additional inherited members
Section titled “Additional inherited members”Public Functions inherited from EntropyEngine::Core::Concurrency::WorkGraphEvent
| Name | |
|---|---|
| WorkGraphEvent(const WorkGraph * g) |
Public Attributes inherited from EntropyEngine::Core::Concurrency::WorkGraphEvent
| Name | |
|---|---|
| std::chrono::steady_clock::time_point | timestamp When this event was created. |
| const WorkGraph * | graph Which graph emitted this event. |
Detailed Description
Section titled “Detailed Description”struct EntropyEngine::Core::Concurrency::DependencyAddedEvent;Fired when you wire two nodes together.
This event captures the moment a dependency is established. The ‘from’ node must complete before the ‘to’ node can run. Great for building visual representations of your workflow structure.
// Build a dependency graph visualizationeventBus->subscribe<DependencyAddedEvent>([&graphViz](const auto& event) { graphViz.addEdge( event.from.getData()->name, event.to.getData()->name );});Public Functions Documentation
Section titled “Public Functions Documentation”function DependencyAddedEvent
Section titled “function DependencyAddedEvent”inline DependencyAddedEvent( const WorkGraph * g, NodeHandle f, NodeHandle t)Public Attributes Documentation
Section titled “Public Attributes Documentation”variable to
Section titled “variable to”NodeHandle to;The dependent node (child).
variable from
Section titled “variable from”NodeHandle from;The prerequisite node (parent).
Updated on 2026-01-26 at 17:14:35 -0500