EntropyEngine::Core::Concurrency::NodeAddedEvent
EntropyEngine::Core::Concurrency::NodeAddedEvent
Section titled “EntropyEngine::Core::Concurrency::NodeAddedEvent”Fired when a new task joins your workflow. More…
#include <WorkGraphEvents.h>
Inherits from EntropyEngine::Core::Concurrency::WorkGraphEvent
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| NodeAddedEvent(const WorkGraph * g, NodeHandle n) |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| NodeHandle | node The newly added node. |
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::NodeAddedEvent;Fired when a new task joins your workflow.
Useful for dynamic graph visualization or tracking graph construction. Note this fires immediately when addNode() is called, before any dependencies are established.
eventBus->subscribe<NodeAddedEvent>([&nodeCount](const auto& event) { nodeCount++; LOG_DEBUG("Graph now has {} nodes", nodeCount);});Public Functions Documentation
Section titled “Public Functions Documentation”function NodeAddedEvent
Section titled “function NodeAddedEvent”inline NodeAddedEvent( const WorkGraph * g, NodeHandle n)Public Attributes Documentation
Section titled “Public Attributes Documentation”variable node
Section titled “variable node”NodeHandle node;The newly added node.
Updated on 2026-01-26 at 17:14:35 -0500