Internal coefficient-tree ownership, traversal and lookup
CO_Tree shall own a finite map from distinct dimension_type keys to Coefficient values. Stored keys shall be strictly ordered and shall exclude not_a_dimension(). A stored zero coefficient shall remain a stored map entry. Physical array positions and holes shall not change the map's key/value associations.
Calls shall require live valid owners, admitted keys/counts and supported nonoverflowing capacity calculations, with sufficient resources. Selected coefficient values and operations shall satisfy the configured arithmetic profile's prerequisites. Library initialization shall be active where coefficient constants or scratch storage are used, and synchronization shall follow 🔗 3. Thread initialization, default state and finalization. Recoverable failures shall not be successful map results. Failed construction shall release resources of the incomplete owner; failure-state guarantees shall follow the selected member, without a universal rollback promise.
Sparse numerical storage must preserve explicit key/value associations independently of the cache-oblivious array layout.
Internal source header: CO_Tree_defs.hh. Names belong to Parma_Polyhedra_Library. Member signatures apply to CO_Tree or its indicated nested iterator type.
class CO_Tree;
Compare complete ordered maps with independent integer dictionaries, including explicitly stored zeros and extreme valid keys, through valid lifetime and lookup histories.
src/CO_Tree_defs.hh; src/CO_Tree_inlines.hh; src/CO_Tree_templates.hh; src/CO_Tree.cc; tests/CO_Tree/cotreespec1.cc; tests/CO_Tree/cotree1.cc; tests/CO_Tree/memory1.cc.
Default construction shall produce an empty map with zero managed storage and equal begin/end positions. empty() shall report exactly whether no entries are stored, and size() their number, including stored zeros. max_size() shall report the supported element-count limit accounting for complete-tree capacities, density calculations and representable backing allocations; it shall not limit key magnitude to that count or promise that allocating the maximum is feasible.
Element count, sparse key magnitude and practical allocation availability are separate limits.
Internal source header: CO_Tree_defs.hh. Names belong to Parma_Polyhedra_Library. Member signatures apply to CO_Tree or its indicated nested iterator type.
CO_Tree(); bool empty() const; dimension_type size() const; static dimension_type max_size();
Check empty/populated counts and zeros, sparse keys near the reserved maximum, and refusal of the first allocation at the advertised maximum without overflowing its capacity arithmetic.
src/CO_Tree_defs.hh; src/CO_Tree_inlines.hh; src/CO_Tree_templates.hh; src/CO_Tree.cc; tests/CO_Tree/cotreespec1.cc; tests/CO_Tree/cotree1.cc; tests/CO_Tree/memory1.cc.
Copy construction and assignment shall preserve the source map and produce independently owned coefficient objects and backing arrays. Copies shall remain usable after source mutation or destruction. Assignment shall admit self-assignment and return its target. Copying a const rvalue through these copy interfaces shall preserve its source. Destruction shall release all live coefficients and both backing arrays.
Recoverable copy-construction failure shall preserve the source and release the incomplete copy's resources. A recoverable assignment failure may discard the target's preceding contents, but shall leave a valid empty reusable target and preserve the source.
Transfer construction from a non-const rvalue shall acquire the complete owned storage without allocating or throwing and leave its source empty and reusable. Move assignment shall exchange complete storage owners without allocation or exceptions, return its target and leave its source holding the preceding target value. Self-move shall preserve both value and storage. References to elements shall follow their storage; distinct-owner transfers shall invalidate element iterators. References to cached ends shall remain bound to their original tree owners and shall be refreshed after transfer. Explicitly stored zeroes and physical layout metadata shall be transferred with their arrays.
Tree copies need separate value ownership, while destructive replacement assignment has an explicit empty-target failure state.
Internal source header: CO_Tree_defs.hh. Names belong to Parma_Polyhedra_Library. Member signatures apply to CO_Tree or its indicated nested iterator type.
CO_Tree(const CO_Tree& y); CO_Tree& operator=(const CO_Tree& y); ~CO_Tree(); CO_Tree(CO_Tree&& y) noexcept; CO_Tree& operator=(CO_Tree&& y) & noexcept;
Check nonthrowing move traits, zero C++/GMP allocation during transfers, exact values and storage ownership, empty and reserved-empty inputs, self-moves, const-rvalue copies, source reuse and independent mutations after exchange. Check independent populated/empty copies and assignments, self-assignment, source destruction, rvalue copying, multi-limb owners where available and both backing-allocation failures followed by retry.
tests/rowmovespec1.cc; src/CO_Tree_defs.hh; src/CO_Tree_inlines.hh; src/CO_Tree_templates.hh; src/CO_Tree.cc; tests/CO_Tree/cotreespec1.cc; tests/CO_Tree/cotree1.cc; tests/CO_Tree/memory1.cc.
For a count not exceeding max_size(), sequence construction shall consume exactly that many entries from the input position. The sequence shall provide coefficient values by dereference and their keys through index(); keys shall be valid and strictly increasing. The new map shall contain exactly those key/value pairs, including zero values, as independently owned coefficient copies. No following input position shall be dereferenced or have its key requested. Count zero shall produce an empty map without dereferencing or advancing the input.
If allocation, key access, dereference, coefficient construction or input advancement reports a recoverable exception, the incomplete tree shall release both backing arrays and every coefficient already constructed. The caller's input state shall follow its iterator's own copy and failure semantics; restoring a consumed input position shall not be promised.
Counted sparse ranges provide efficient construction and must clean partial ownership even when the input iterator reports a failure.
Internal source header: CO_Tree_defs.hh. Names belong to Parma_Polyhedra_Library. Member signatures apply to CO_Tree or its indicated nested iterator type.
template <typename Iterator> CO_Tree(Iterator i, dimension_type n);
Compare every prefix of independent increasing-key sequences, include zero count and growth boundaries, and throw at each key/dereference/advance step after partial coefficient acquisition.
src/CO_Tree_defs.hh; src/CO_Tree_inlines.hh; src/CO_Tree_templates.hh; src/CO_Tree.cc; tests/CO_Tree/cotreespec1.cc; tests/CO_Tree/cotree1.cc; tests/CO_Tree/memory1.cc.
Clearing shall destroy all entries and release backing storage, producing an empty reusable tree. Member and free swaps shall exchange complete maps and owned allocations and admit self-swap. Both resulting owners shall remain valid and independently usable. Their cached end-iterator objects shall retain their owner identities and be refreshed for their new maps; ordinary entry iterators and coefficient borrows shall be reacquired after an ownership exchange.
Tree ownership includes coefficient storage and cached end positions, which must remain consistent after replacement.
Internal source header: CO_Tree_defs.hh. Names belong to Parma_Polyhedra_Library. Member signatures apply to CO_Tree or its indicated nested iterator type.
void clear(); void m_swap(CO_Tree& x); void swap(CO_Tree& x, CO_Tree& y);
Check all empty/populated owner combinations, exchanged maps and storage counts, self-swaps and clear/rebuild histories using retained references to each owner’s cached end objects.
src/CO_Tree_defs.hh; src/CO_Tree_inlines.hh; src/CO_Tree_templates.hh; src/CO_Tree.cc; tests/CO_Tree/cotreespec1.cc; tests/CO_Tree/cotree1.cc; tests/CO_Tree/memory1.cc.
Tree iterators shall borrow positions in their owner. Copies and assignments shall preserve the borrowed position; assignment shall return its target and admit self-assignment. Mutable iterators shall convert or assign to const iterators without changing the position or entry. Member and free iterator swaps shall exchange their complete borrowed positions and admit self-swap, including positions in distinct live owners.
Within one owner, equality shall report the same position and inequality its negation. Comparisons shall require live compatible positions; copied end values shall remain subject to ordinary structural invalidation. Default construction shall create an unbound iterator usable for copying, assignment, swapping and destruction, but not entry access or navigation before a live position is assigned. Iterators and coefficient references shall not outlive their owner or be used after a structural operation that invalidates them.
Borrowed iterator values need complete position and lifetime semantics independently of coefficient ownership.
Internal source header: CO_Tree_defs.hh. Names belong to Parma_Polyhedra_Library. Member signatures apply to CO_Tree or its indicated nested iterator type.
class CO_Tree::iterator; class CO_Tree::const_iterator; iterator(); explicit const_iterator(); iterator(const iterator& itr); const_iterator(const const_iterator& itr); const_iterator(const iterator& itr); iterator& iterator::operator=(const iterator& itr); const_iterator& const_iterator::operator=(const const_iterator& itr); const_iterator& const_iterator::operator=(const iterator& itr); void iterator::m_swap(iterator& itr); void const_iterator::m_swap(const_iterator& itr); bool iterator::operator==(const iterator& x) const; bool iterator::operator!=(const iterator& x) const; bool const_iterator::operator==(const const_iterator& x) const; bool const_iterator::operator!=(const const_iterator& x) const; void swap(CO_Tree::iterator& x, CO_Tree::iterator& y); void swap(CO_Tree::const_iterator& x, CO_Tree::const_iterator& y);
Check copied/assigned mutable and const positions, unbound-to-bound assignment, same/different positions, cross-owner iterator swaps and self-swaps without using invalidated positions.
src/CO_Tree_defs.hh; src/CO_Tree_inlines.hh; src/CO_Tree_templates.hh; src/CO_Tree.cc; tests/CO_Tree/cotreespec1.cc; tests/CO_Tree/cotree1.cc; tests/CO_Tree/memory1.cc.
At a dereferenceable occupied position, index() shall return the stored key and dereference shall return its associated coefficient value. A mutable iterator shall provide a mutable coefficient reference even when the cursor object itself is const; constness shall constrain the position rather than the referenced coefficient. Read-only access shall use const_iterator and Coefficient_traits::const_reference. Both iterator types shall meet C++20 bidirectional iterator requirements. These operations shall require an occupied entry, rather than an end or unbound iterator.
Changing the coefficient through a live mutable reference shall update exactly that key's mapped value without changing keys, count, other entries or iterator positions. Assigning zero shall retain the entry. The new coefficient shall satisfy the configured profile's value and arithmetic prerequisites.
Sparse coefficient updates must preserve key identity and the stored-zero distinction.
Internal source header: CO_Tree_defs.hh. Names belong to Parma_Polyhedra_Library. Member signatures apply to CO_Tree or its indicated nested iterator type.
dimension_type iterator::index() const; dimension_type const_iterator::index() const; Coefficient& iterator::operator*() const; Coefficient_traits::const_reference const_iterator::operator*() const;
Check C++20 iterator concepts, constant-cursor reference identity and read-only non-writability. Compare all key/value pairs through mutable, const mutable-iterator and const-iterator access; update each value and zero through live borrows while retaining other iterator positions.
src/CO_Tree_defs.hh; src/CO_Tree_inlines.hh; src/CO_Tree_templates.hh; src/CO_Tree.cc; tests/CO_Tree/cotreespec1.cc; tests/CO_Tree/cotree1.cc; tests/CO_Tree/memory1.cc.
Increment of a dereferenceable iterator shall reach the next greater stored key or the owner's end after the last entry. Decrement shall require a preceding occupied entry and reach the next smaller stored key; decrementing end shall be admitted exactly for a nonempty owner. Physical holes shall be skipped. Prefix forms shall return the updated iterator by reference; postfix forms shall return its preceding value while advancing the original. These rules shall apply to mutable and const iterators, with no increment of end or decrement before begin.
Ordered traversal must expose every stored coefficient exactly once without exposing physical holes.
Internal source header: CO_Tree_defs.hh. Names belong to Parma_Polyhedra_Library. Member signatures apply to CO_Tree or its indicated nested iterator type.
iterator& iterator::operator++(); iterator& iterator::operator--(); iterator iterator::operator++(int); iterator iterator::operator--(int); const_iterator& const_iterator::operator++(); const_iterator& const_iterator::operator--(); const_iterator const_iterator::operator++(int); const_iterator const_iterator::operator--(int);
Compare complete forward/backward key sequences and prefix/postfix return positions over sparse layouts, singleton maps, and nonempty end decrements.
src/CO_Tree_defs.hh; src/CO_Tree_inlines.hh; src/CO_Tree_templates.hh; src/CO_Tree.cc; tests/CO_Tree/cotreespec1.cc; tests/CO_Tree/cotree1.cc; tests/CO_Tree/memory1.cc.
Mutable and const begin construction and access shall point to the least stored key, or the corresponding end for an empty map. cbegin() shall equal const begin(). End access shall return references to owner-resident cached end objects; const end() and cend() shall refer to the same const cached object.
References to these cached end objects shall remain valid throughout the owner's lifetime and observe updated end positions after structural changes, assignment, clearing and member/free owner swaps. This special reference guarantee shall not extend to copies of an end iterator or to ordinary entry iterators.
Member overloads that return references, iterators or nonowning views into the owner shall require an lvalue owner. Matching rvalue calls that would produce such borrows shall be rejected during overload resolution. Temporary iterator and row-view values shall remain usable while their backing owner remains alive. Direct iterator construction shall also reject a temporary tree owner.
Cached ends support traversal loops across tree storage replacement without retaining stale copied sentinels.
Internal source header: CO_Tree_defs.hh. Names belong to Parma_Polyhedra_Library. Member signatures apply to CO_Tree or its indicated nested iterator type.
explicit iterator(CO_Tree& tree); explicit const_iterator(const CO_Tree& tree); iterator begin() &; const iterator& end() &; const_iterator begin() const &; const const_iterator& end() const &; const_iterator cbegin() const &; const const_iterator& cend() const;
Check begin construction/access and the identity of cached end references across insertion growth, erase/shrink, clear, copy assignment and swaps, reacquiring ordinary iterators after each structural change. Check lvalue admission and temporary-owner rejection with compile-time client expressions. Preserve temporary iterator/view use and lvalue storage identity in runtime checks.
tests/rowmovespec1.cc; src/CO_Tree_defs.hh; src/CO_Tree_inlines.hh; src/CO_Tree_templates.hh; src/CO_Tree.cc; tests/CO_Tree/cotreespec1.cc; tests/CO_Tree/cotree1.cc; tests/CO_Tree/memory1.cc. tests/rowstoragespec1.cc.
Whole-tree bisection shall return end for an empty map. For a nonempty map it shall return the exact requested key when present. For an absent key it shall return either the immediate stored predecessor or the immediate stored successor, choosing the available extreme when the query lies outside stored keys. It shall not return end for a nonempty map or promise the lower_bound choice. Every dimension_type query shall be admitted, including the reserved value as an absent query. Mutable and const overloads shall preserve all entries and return positions with the corresponding mutability.
Member overloads that return references, iterators or nonowning views into the owner shall require an lvalue owner. Matching rvalue calls that would produce such borrows shall be rejected during overload resolution. Temporary iterator and row-view values shall remain usable while their backing owner remains alive.
Tree insertion and sparse lookups use a neighboring candidate rather than a lower-bound/end convention.
Internal source header: CO_Tree_defs.hh. Names belong to Parma_Polyhedra_Library. Member signatures apply to CO_Tree or its indicated nested iterator type.
iterator bisect(dimension_type key) &; const_iterator bisect(dimension_type key) const &;
Compare every present and absent query against independent predecessor/successor sets for many sparse maps, including empty maps, both extremes, stored zeros and the maximum query value. Check lvalue admission and temporary-owner rejection with compile-time client expressions. Preserve temporary iterator/view use and lvalue storage identity in runtime checks.
src/CO_Tree_defs.hh; src/CO_Tree_inlines.hh; src/CO_Tree_templates.hh; src/CO_Tree.cc; tests/CO_Tree/cotreespec1.cc; tests/CO_Tree/cotree1.cc; tests/CO_Tree/memory1.cc. tests/rowstoragespec1.cc.
Window bisection shall require an ordered nonempty closed iterator range [first, last] in the same live tree, with both endpoints occupied. It shall search only that window. A present key in the window shall be returned exactly; an absent key shall yield an immediate predecessor or successor within that window, using its available endpoint when the query lies outside the window's key interval. A singleton window shall always return its sole entry. The map and both endpoints shall be preserved.
Member overloads that return references, iterators or nonowning views into the owner shall require an lvalue owner. Matching rvalue calls that would produce such borrows shall be rejected during overload resolution. Temporary iterator and row-view values shall remain usable while their backing owner remains alive.
Internal sparse operations need bounded searches whose inclusive last endpoint differs from conventional half-open ranges.
Internal source header: CO_Tree_defs.hh. Names belong to Parma_Polyhedra_Library. Member signatures apply to CO_Tree or its indicated nested iterator type.
iterator bisect_in(iterator first, iterator last, dimension_type key) &; const_iterator bisect_in(const_iterator first, const_iterator last, dimension_type key) const &;
Enumerate every closed window in small sparse maps and all inside/outside queries; compare candidates with an independent submap and include singleton windows and exact endpoints. Check lvalue admission and temporary-owner rejection with compile-time client expressions. Preserve temporary iterator/view use and lvalue storage identity in runtime checks.
src/CO_Tree_defs.hh; src/CO_Tree_inlines.hh; src/CO_Tree_templates.hh; src/CO_Tree.cc; tests/CO_Tree/cotreespec1.cc; tests/CO_Tree/cotree1.cc; tests/CO_Tree/memory1.cc. tests/rowstoragespec1.cc.
Hinted bisection shall admit any current valid iterator of its tree as hint, including end. It shall satisfy the exact-key, adjacent-absent-key and empty-map guarantees of 🔗 10. Whole-tree bisection returns an exact key or an adjacent entry over the whole tree, regardless of the hint's location. It shall preserve the map and hint. The hint may affect search strategy and the permitted choice between two adjacent absent-key candidates; it shall not restrict the search window.
Member overloads that return references, iterators or nonowning views into the owner shall require an lvalue owner. Matching rvalue calls that would produce such borrows shall be rejected during overload resolution. Temporary iterator and row-view values shall remain usable while their backing owner remains alive.
Locality hints are search aids and cannot exclude a valid exact key elsewhere in the tree.
Internal source header: CO_Tree_defs.hh. Names belong to Parma_Polyhedra_Library. Member signatures apply to CO_Tree or its indicated nested iterator type.
iterator bisect_near(iterator hint, dimension_type key) &; const_iterator bisect_near(const_iterator hint, dimension_type key) const &;
Check every occupied/end hint against all queries in independent sparse dictionaries, including searches far above/below the hint and empty-map end hints. Check lvalue admission and temporary-owner rejection with compile-time client expressions. Preserve temporary iterator/view use and lvalue storage identity in runtime checks.
src/CO_Tree_defs.hh; src/CO_Tree_inlines.hh; src/CO_Tree_templates.hh; src/CO_Tree.cc; tests/CO_Tree/cotreespec1.cc; tests/CO_Tree/cotree1.cc; tests/CO_Tree/memory1.cc. tests/rowstoragespec1.cc.
External-memory accounting shall return zero for a tree with no backing arrays. Otherwise it shall count the complete reserved key-array payload, including its two sentinel slots, the coefficient-array payload, including its unused leading slot, and the external storage of every live coefficient. Unoccupied coefficient slots shall not add coefficient payload. This shall describe owned allocated payload, excluding allocator bookkeeping, and preserve the map and all current iterators.
Sparse tree storage includes physical holes and sentinels as well as the coefficients visible during traversal.
Internal source header: CO_Tree_defs.hh. Names belong to Parma_Polyhedra_Library. Member signatures apply to CO_Tree or its indicated nested iterator type.
dimension_type external_memory_in_bytes() const;
Independently calculate reserved-array sizes and live coefficient allocation payloads across sparse layouts, multi-limb values where supported, copies, clear and ownership exchanges.
src/CO_Tree_defs.hh; src/CO_Tree_inlines.hh; src/CO_Tree_templates.hh; src/CO_Tree.cc; tests/CO_Tree/cotreespec1.cc; tests/CO_Tree/cotree1.cc; tests/CO_Tree/memory1.cc.
dump_tree() shall write a diagnostic representation to std::cout without changing the tree. For an empty map it shall emit (empty tree) followed by a newline. For a nonempty tree the output shall identify all current stored key/coefficient pairs and may include physical-layout information and holes. A removed key/value pair shall not be reported as a live entry. This diagnostic representation shall not establish a reloadable serialization format.
Internal diagnostics must describe current sparse contents without being mistaken for an interchange encoding.
Internal source header: CO_Tree_defs.hh. Names belong to Parma_Polyhedra_Library. Member signatures apply to CO_Tree or its indicated nested iterator type.
void dump_tree() const;
Capture empty and populated output, match current pairs after removal and value replacement, and compare unchanged complete maps before and after output.
src/CO_Tree_defs.hh; src/CO_Tree_inlines.hh; src/CO_Tree_templates.hh; src/CO_Tree.cc; tests/CO_Tree/cotreespec1.cc; tests/CO_Tree/cotree1.cc; tests/CO_Tree/memory1.cc.
Iterator construction from a tree and physical slot shall require a currently occupied slot or that tree's designated past-the-end slot. The argument shall denote a physical array slot, not a map key or an ordinal in the logical traversal. The resulting iterator shall borrow that same live position, with mutable/const access as selected.
The tree's internal conversion from its live private node iterator to an ordinary mutable iterator, by construction or assignment, shall preserve the occupied node's key/value position. Such conversions shall require a valid occupied private node and shall not extend private node-layout access to clients without the corresponding access rights.
Borrowing iterator constructors shall reject temporary backing owners. Copying temporary iterator values shall remain admitted when their backing storage remains alive.
Logical keys and physical DFS slots are different coordinates; the internal bridge must retain the selected stored entry.
Internal source header: CO_Tree_defs.hh. Names belong to Parma_Polyhedra_Library. Member signatures apply to CO_Tree or its indicated nested iterator type.
iterator(CO_Tree& tree, dimension_type i); const_iterator(const CO_Tree& tree, dimension_type i); explicit iterator(const tree_iterator& itr); iterator& iterator::operator=(const tree_iterator& itr);
Use permitted internal test access to obtain occupied slot identifiers and the true end slot, construct matching ordinary iterators, and check private-node conversions without manufacturing invalid slots. Check lvalue admission and temporary-owner rejection with compile-time client expressions. Preserve temporary iterator/view use and lvalue storage identity in runtime checks.
src/CO_Tree_defs.hh; src/CO_Tree_inlines.hh; src/CO_Tree_templates.hh; src/CO_Tree.cc; tests/CO_Tree/cotreespec1.cc; tests/CO_Tree/cotree1.cc; tests/CO_Tree/memory1.cc. tests/rowstoragespec1.cc.
The internal tree_iterator shall borrow one allocated complete-tree layout of 🔗 1. Ordered coefficient-map values and valid tree use. Let R = 2h − 1 > 0 be its reserved slot count and r = (R + 1) ⁄ 2 its root slot. A valid cursor shall store a physical slot 1 ≤ i ≤ R and its offset o = 2v2(i). Physical slots may be unoccupied. The source tree shall outlive the cursor; structural replacement shall invalidate it.
Root construction and get_root() shall select (r, r). Physical-slot construction shall select the admitted slot and its offset. Construction or assignment from a live same-tree logical iterator shall select that occupied slot. Copies shall retain owner and position; assignment between cursors shall require the same owner and return the target. Equality and inequality shall compare physical positions within the same owner.
For o > 1, left and right movement shall select (i − o ⁄ 2, o ⁄ 2) and (i + o ⁄ 2, o ⁄ 2). Parent movement shall require a non-root position and select its complete-tree parent. is_root() shall hold at r; is_leaf() shall hold exactly when o = 1. is_right_child() shall be false at the root and otherwise identify the parent's right child. dfs_index() shall return i and get_offset() shall return o. depth() shall return log2((R + 1) ⁄ o), counting the root as depth one.
index() shall access the key at the selected slot, including the unused_index marker for an unoccupied slot. Const access shall return the key value; mutable access shall borrow the stored key. Dereference shall require an occupied slot and access its coefficient, borrowing a mutable or const value as declared. Direct key updates shall satisfy the tree's staging and ordering conditions before the tree is again used as a valid map.
For an occupied current node, follow_left_children_with_value() and follow_right_children_with_value() shall select the occupied minimum-key and maximum-key nodes in that node's complete subtree, respectively. go_down_searching_key(k) shall require an occupied starting node and k != unused_index. It shall search that subtree, stopping at the key if present or at its prospective parent if absent. Navigation shall preserve the tree's keys and coefficients. The local OK() check shall accept exactly the admitted physical range with the matching stored offset; it shall not establish map ordering or coefficient validity.
Borrowing iterator constructors shall reject temporary backing owners. Copying temporary iterator values shall remain admitted when their backing storage remains alive.
Physical tree navigation needs an explicit complete-tree position and borrowed lifetime, independently of logical stored-key iteration.
Names belong to Parma_Polyhedra_Library; member excerpts apply to the internal nested CO_Tree::tree_iterator.
// Internal nested type CO_Tree::tree_iterator: explicit tree_iterator(CO_Tree&); tree_iterator(CO_Tree&, dimension_type physical_slot); tree_iterator(const tree_iterator&); tree_iterator(const CO_Tree::iterator&, CO_Tree&); tree_iterator& operator=(const tree_iterator&); tree_iterator& operator=(const CO_Tree::iterator&); bool operator==(const tree_iterator&) const; bool operator!=(const tree_iterator&) const; void get_root(); void get_left_child(); void get_right_child(); void get_parent(); void follow_left_children_with_value(); void follow_right_children_with_value(); void go_down_searching_key(dimension_type); bool is_root() const; bool is_right_child() const; bool is_leaf() const; Coefficient& operator*(); Coefficient_traits::const_reference operator*() const; dimension_type& index(); dimension_type index() const; dimension_type dfs_index() const; dimension_type get_offset() const; CO_Tree::height_t depth() const; // Private invariant check: bool OK() const;
Enumerate every physical slot of small complete layouts and compare navigation with an independent root-to-leaf topology. Check copies, same-owner assignments, const/mutable accesses, subtree extrema and present/absent searches against literal ordered maps. Inspect the invariant rejection cases. Check lvalue admission and temporary-owner rejection with compile-time client expressions. Preserve temporary iterator/view use and lvalue storage identity in runtime checks.
src/CO_Tree_defs.hh; src/CO_Tree_inlines.hh; src/CO_Tree.cc; tests/CO_Tree/cotreespec1.cc. tests/rowstoragespec1.cc.