One last omission

release/4.3a0
Frank Dellaert 2023-01-10 08:58:31 -08:00
parent 353a5b3574
commit 874f0deeee
1 changed files with 4 additions and 5 deletions

View File

@ -31,6 +31,9 @@ using namespace gtsam::symbol_shorthand;
using namespace std;
using sharedNode = SymbolicEliminationTree::sharedNode;
// Use list_of replacement defined in symbolicExampleGraphs.h
using ChildNodes = ChainedVector<sharedNode>;
class EliminationTreeTester {
public:
// build hardcoded tree
@ -65,8 +68,7 @@ class EliminationTreeTester {
return tree;
}
static SymbolicEliminationTree MakeTree(
const std::vector<sharedNode>& roots) {
static SymbolicEliminationTree MakeTree(const ChildNodes::Result& roots) {
SymbolicEliminationTree et;
et.roots_.assign(roots.begin(), roots.end());
return et;
@ -81,9 +83,6 @@ static sharedNode Leaf(Key key, const SymbolicFactorGraph& factors) {
return node;
}
// Use list_of replacement defined in symbolicExampleGraphs.h
using ChildNodes = ChainedVector<sharedNode>;
// Create a node with children.
static sharedNode Node(Key key, const SymbolicFactorGraph& factors,
const ChildNodes::Result& children) {