Tests::NTreeTest Struct Reference

#include <NTreeTests.hpp>

List of all members.

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< RefCountNRefTree

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...


Member Typedef Documentation

typedef ::Tree::NTree<RefCount> Tests::NTreeTest::NRefTree


Member Enumeration Documentation

anonymous enum

The tree shape and quick link to the node.

Enumerator:
Root 
A 
B 
C 
AA 
AB 
AC 
AAA 
BA 
BC 
CA 
Number 
Sum 


Constructor & Destructor Documentation

Tests::NTreeTest::NTreeTest (  )  [inline]


Member Function Documentation

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.

bool Tests::NTreeTest::testMethod3 ( NRefTree xRef  )  [inline]

Test node deletion.


Member Data Documentation

NRefTree Tests::NTreeTest::xTree


The documentation for this struct was generated from the following file:

(C) An X-Ryl669 project 2007

This document describes Unlimited Zooming Interface source code. UZI stands for Unlimited Zooming Interface, and source code license is