Classes | Functions
testTreeTraversal.cpp File Reference
#include <CppUnitLite/TestHarness.h>
#include <gtsam/base/TestableAssertions.h>
#include <gtsam/base/treeTraversal-inst.h>
#include <vector>
#include <list>
#include <memory>
Include dependency graph for testTreeTraversal.cpp:

Go to the source code of this file.

Classes

struct  PostOrderVisitor
 
struct  PreOrderVisitor
 
struct  TestForest
 
struct  TestNode
 

Functions

std::list< intgetPreorder (const TestForest &forest)
 
int main ()
 
TestForest makeTestForest ()
 
 TEST (treeTraversal, DepthFirst)
 
 TEST (treeTraversal, CloneForest)
 

Function Documentation

◆ getPreorder()

std::list<int> getPreorder ( const TestForest forest)

Definition at line 93 of file testTreeTraversal.cpp.

◆ main()

int main ( void  )

Definition at line 150 of file testTreeTraversal.cpp.

◆ makeTestForest()

TestForest makeTestForest ( )

Definition at line 43 of file testTreeTraversal.cpp.

◆ TEST() [1/2]

TEST ( treeTraversal  ,
DepthFirst   
)

Definition at line 103 of file testTreeTraversal.cpp.

◆ TEST() [2/2]

TEST ( treeTraversal  ,
CloneForest   
)

Definition at line 124 of file testTreeTraversal.cpp.



gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:40:56