EntropyEngine::Core::Graph::Node
EntropyEngine::Core::Graph::Node
Section titled “EntropyEngine::Core::Graph::Node”Node storage with generation-based handle validation. More…
#include <DirectedAcyclicGraph.h>
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| Node & | operator=(Node && other) Move assignment operator. |
| Node & | operator=(const Node & ) =delete |
| Node() =default Default constructor. | |
| Node(T && d, bool occ) Constructs a Node with initial data. | |
| Node(Node && other) Move constructor. | |
| Node(const Node & ) =delete |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| bool | occupied Whether this slot contains a valid node. |
| std::atomic< uint32_t > | generation Generation counter for handle validation. |
| T | data Node data payload. |
Detailed Description
Section titled “Detailed Description”template <class T >struct EntropyEngine::Core::Graph::Node;Node storage with generation-based handle validation.
Template Parameters:
- T The type of data stored within the node.
Cache-aligned structure that holds node data and metadata. The generation counter enables detection of stale handles when slots are reused.
Public Functions Documentation
Section titled “Public Functions Documentation”function operator=
Section titled “function operator=”inline Node & operator=( Node && other)Move assignment operator.
Parameters:
- other The Node to move from
Return: Reference to this Node after assignment
function operator=
Section titled “function operator=”Node & operator=( const Node &) =deletefunction Node
Section titled “function Node”Node() =defaultDefault constructor.
function Node
Section titled “function Node”inline Node( T && d, bool occ)Constructs a Node with initial data.
Parameters:
- d The data to move into the node
- occ The initial occupancy status
function Node
Section titled “function Node”inline Node( Node && other)Move constructor.
Parameters:
- other The Node to move from
Resets source node’s occupied status after move.
function Node
Section titled “function Node”Node( const Node &) =deletePublic Attributes Documentation
Section titled “Public Attributes Documentation”variable occupied
Section titled “variable occupied”bool occupied {false};Whether this slot contains a valid node.
variable generation
Section titled “variable generation”std::atomic< uint32_t > generation {1};Generation counter for handle validation.
variable data
Section titled “variable data”T data;Node data payload.
Updated on 2026-01-26 at 17:14:35 -0500