#include <NTreeTests.hpp>
Public Types | |
| enum | { Root = 0, A = 1, B = 2, C = 3, AA = 11, AB = 12, AC = 13, AAA = 111, BA = 21, BC = 22, CA = 31, Number = 11, Sum = 227 } |
| The tree shape and quick link to the node. More... | |
| typedef ::Tree::NTree< RefCount > | NRefTree |
Public Member Functions | |
| bool | addSomeData (NRefTree &xRef) throw () |
| Ok, add some data to the tree. | |
| bool | countNodes (NRefTree &xRef) |
| Count the nodes, make sure all node are visited. | |
| NTreeTest () | |
| bool | refCheck (NRefTree &xRef) |
| Check the reference count is correct. | |
| bool | testMethod1 (NRefTree &xRef) |
| Test last child, parent and next methods. | |
| bool | testMethod2 (NRefTree &xRef) |
| Find method checking, and applyOnChildrenNode test. | |
| bool | testMethod3 (NRefTree &xRef) |
| Test node deletion. | |
Public Attributes | |
| NRefTree | xTree |
Classes | |
| struct | Count |
| This structure sum the node's value. More... | |
| struct | FindAAA |
| Used for Test method 2. More... | |
| struct | RefCount |
| This structure is used to count allocation inside the tree. More... | |
| struct | TestDeletion |
| Test node deletion by refcount == 0. More... | |
| typedef ::Tree::NTree<RefCount> Tests::NTreeTest::NRefTree |
| anonymous enum |
| Tests::NTreeTest::NTreeTest | ( | ) | [inline] |
| bool Tests::NTreeTest::addSomeData | ( | NRefTree & | xRef | ) | throw () [inline] |
Ok, add some data to the tree.
| bool Tests::NTreeTest::countNodes | ( | NRefTree & | xRef | ) | [inline] |
Count the nodes, make sure all node are visited.
| bool Tests::NTreeTest::refCheck | ( | NRefTree & | xRef | ) | [inline] |
Check the reference count is correct.
| bool Tests::NTreeTest::testMethod1 | ( | NRefTree & | xRef | ) | [inline] |
Test last child, parent and next methods.
| bool Tests::NTreeTest::testMethod2 | ( | NRefTree & | xRef | ) | [inline] |
Find method checking, and applyOnChildrenNode test.
