Skip to content

EntropyEngine::Core::Graph::Node

Node storage with generation-based handle validation. More…

#include <DirectedAcyclicGraph.h>

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
Name
booloccupied
Whether this slot contains a valid node.
std::atomic< uint32_t >generation
Generation counter for handle validation.
Tdata
Node data payload.
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.

inline Node & operator=(
Node && other
)

Move assignment operator.

Parameters:

  • other The Node to move from

Return: Reference to this Node after assignment

Node & operator=(
const Node &
) =delete
Node() =default

Default constructor.

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
inline Node(
Node && other
)

Move constructor.

Parameters:

  • other The Node to move from

Resets source node’s occupied status after move.

Node(
const Node &
) =delete
bool occupied {false};

Whether this slot contains a valid node.

std::atomic< uint32_t > generation {1};

Generation counter for handle validation.

T data;

Node data payload.


Updated on 2026-01-26 at 17:14:35 -0500