Skip to content

test: TestGraph track internals#2404

Merged
RobBuchananCompPhys merged 5 commits intodevelop2from
dissolve2/test-graph-track-internals
Apr 13, 2026
Merged

test: TestGraph track internals#2404
RobBuchananCompPhys merged 5 commits intodevelop2from
dissolve2/test-graph-track-internals

Conversation

@RobBuchananCompPhys
Copy link
Copy Markdown
Contributor

@RobBuchananCompPhys RobBuchananCompPhys commented Apr 10, 2026

The idea here is to allow TestGraph to keep track of the last node added to the graph (mostly useful when the nodes are being added in a broadly linear sequence), stored internally in head_ allowing the developer to get either a Node * via a fetchHead() call, or a pointer to the desired node type via head<NodeType>. The latter is useful for compile time checking that the node is of the expected type.

nextnode

@trisyoungs trisyoungs marked this pull request as ready for review April 13, 2026 09:44
Copy link
Copy Markdown
Member

@trisyoungs trisyoungs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One final comment, and then good to go. This tidies things up really nicely IMO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants