Click here to Skip to main content
15,895,746 members
Articles / Desktop Programming / MFC

Tree Container Library

Rate me:
Please Sign up or sign in to vote.
4.85/5 (29 votes)
22 Aug 2007Zlib10 min read 230.4K   7.2K   111  
A generic template class library for storing data in a tree-like structure.
#pragma once
#include "../tree/sequential_tree.h"
#include "basic_tree_tester.h"
#include "Alpha.h"


class sequential_tree_tester : public basic_tree_tester<sequential_tree<Alpha> >
{
public:
	sequential_tree_tester() {}
	~sequential_tree_tester() {}

	void run();

private:
	void test_index();
	void test_sort_ops();
	void test_push_back();
	void test_reserve_capacity();
	void populate_seq_wide_tree(sequential_tree<Alpha>& test_tree);
	void test_front_back();
	void test_pop_back();
	void test_insert_pos_node();
	void test_insert_pos_tree();
	void test_set_node();
	void test_set_tree();
	void test_sort2();
	void test_insert_pos_range();
	void test_insert_pos_multiple();
};

void test_sequential_tree();









#include "sequential_tree_tester.inl"

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The zlib/libpng License



Comments and Discussions