Reverse which is weak_ptr/shared_ptr in the SearchNode parent-to-child relationship. This enables removal of the node_set collection of all graph nodes in SearchGraph (required to keep children weak_ptr's from expiring), and fixes #3.
Type Of Change
[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to
not work as expected)
[ ] This change requires a documentation update
Tests Performed
All unit tests pass with --no-skip for doctest unit tester.
Test Configuration:
Hardware: Quad Core i7, 16 GB RAM
OS: Arch Linux
OS Release/Distribution: N/A
Date Of Last OS Update: Januray 2019
Compiler Version: gcc 8.2.1, clang 7.0.0
Shell: bash
Checklist:
[X] My code follows the style of this project.
[X] I have performed a self-review of my own code.
[X] I have commented my code, particularly in hard-to-understand areas.
[X] I have made corresponding changes to the documentation.
[X] My changes generate no new warnings.
[X] I have added tests that prove my fix is effective or that my feature
works.
[X] New and existing unit tests pass locally with my changes.
[X] Any dependent changes have been merged and published in downstream
modules.
Description
Reverse which is weak_ptr/shared_ptr in the
SearchNode
parent-to-child relationship. This enables removal of thenode_set
collection of all graph nodes inSearchGraph
(required to keep children weak_ptr's from expiring), and fixes #3.Type Of Change
Tests Performed
All unit tests pass with
--no-skip
for doctest unit tester.Test Configuration:
Checklist: