#include <CppUnitLite/TestHarness.h>
#include <gtsam/base/TestableAssertions.h>
#include <gtsam/base/treeTraversal-inst.h>
#include <vector>
#include <list>
#include <memory>
Go to the source code of this file.
Classes | |
struct | PostOrderVisitor |
struct | PreOrderVisitor |
struct | TestForest |
struct | TestNode |
Functions | |
std::list< int > | getPreorder (const TestForest &forest) |
int | main () |
TestForest | makeTestForest () |
TEST (treeTraversal, DepthFirst) | |
TEST (treeTraversal, CloneForest) | |
std::list<int> getPreorder | ( | const TestForest & | forest | ) |
Definition at line 93 of file testTreeTraversal.cpp.
int main | ( | void | ) |
Definition at line 150 of file testTreeTraversal.cpp.
TestForest makeTestForest | ( | ) |
Definition at line 43 of file testTreeTraversal.cpp.
TEST | ( | treeTraversal | , |
DepthFirst | |||
) |
Definition at line 103 of file testTreeTraversal.cpp.
TEST | ( | treeTraversal | , |
CloneForest | |||
) |
Definition at line 124 of file testTreeTraversal.cpp.