Example #1
0
void generateBinarySearchTreeReportOutput(string outputFile, string reportTitle, A4AvlTreeIterator<string> itr,
	bool useAvlTree, bool useAscending, bool displayHierarchy, bool displayStats)
{
	Report rpt = generateReport(reportTitle);

	itr.configureA4(displayHierarchy, displayStats);
	itr.a4iterate(LNR, (true == useAscending ? FORWARD : BACKWARD));
	rpt.addContent(itr.getIterationResult());

	saveReport(rpt, outputFile);
}
Example #2
0
void generateBinarySearchTreeReportOutput(string outputFile, string reportTitle, A4BinaryTreeIterator<string, BinaryTreeNode> itr,
	bool useAvlTree, bool useAscending, bool displayHierarchy)
{
	Report rpt = Report();
	rpt.setReportHeader("Peter Sands\nCISP 430\nSpring 2016\n");
	rpt.setReportTitle("\t\t\t" + reportTitle + "\n\n");

	itr.configureA4(displayHierarchy);
	itr.a4iterate(LNR, (true == useAscending ? FORWARD : BACKWARD));
	rpt.addContent(itr.getIterationResult());

	saveReport(rpt, outputFile);
}