Bertini 2 d882924 (2026-10-06 19:56 UTC)
Numerical algebraic geometry library (C++ core)
Loading...
Searching...
No Matches
bertini::node::EncodingContext Struct Reference

Traversal state for one canonical-encoding pass: the back-reference table. More...

#include <canonical_encoding.hpp>

Public Attributes

std::map< Node const *, unsigned > seen
 First-encounter index of each node visited so far, keyed by object identity.
unsigned next_index = 0
 The index the next first-encountered node will receive (traversal order).

Detailed Description

Traversal state for one canonical-encoding pass: the back-reference table.

One context spans one encoding unit (a whole System, or a single tree), so nodes shared ACROSS functions back-reference deterministically within that unit.

Member Data Documentation

◆ next_index

unsigned bertini::node::EncodingContext::next_index = 0

The index the next first-encountered node will receive (traversal order).

◆ seen

std::map<Node const*, unsigned> bertini::node::EncodingContext::seen

First-encounter index of each node visited so far, keyed by object identity.