CPUnit 0.95 (beta)
The REAL C++ port of JUnit.
cpunit::TestTreeNode Class Reference

#include <cpunit_TestTreeNode.hpp>

List of all members.

Public Member Functions

 TestTreeNode (const std::string &loc_name)
virtual ~TestTreeNode ()
std::string get_local_name () const
std::string get_path () const
void register_set_up (Callable *s)
void register_tear_down (Callable *t)
void add_test (Callable *test)
void add_child (TestTreeNode *child)
std::map< std::string,
TestTreeNode * > 
get_children ()
void extract_matches (std::vector< TestUnit > &result, const GlobMatcher &m)

Private Types

typedef std::map< std::string,
Callable * > 
typedef std::map< std::string,
TestTreeNode * > 

Private Attributes

TestMap tests
ChildMap children
TestTreeNode const * parent
const std::string * local_name
const StringFlyweightStoreUsage counter

Detailed Description

Definition at line 47 of file cpunit_TestTreeNode.hpp.

Member Typedef Documentation

typedef std::map<std::string, TestTreeNode*> cpunit::TestTreeNode::ChildMap [private]

Definition at line 50 of file cpunit_TestTreeNode.hpp.

typedef std::map<std::string, Callable*> cpunit::TestTreeNode::TestMap [private]

Definition at line 49 of file cpunit_TestTreeNode.hpp.

Constructor & Destructor Documentation

cpunit::TestTreeNode::TestTreeNode ( const std::string &  loc_name)

Definition at line 40 of file cpunit_TestTreeNode.cpp.

cpunit::TestTreeNode::~TestTreeNode ( ) [virtual]

Definition at line 52 of file cpunit_TestTreeNode.cpp.

Member Function Documentation

void cpunit::TestTreeNode::add_child ( TestTreeNode child)

Definition at line 120 of file cpunit_TestTreeNode.cpp.

void cpunit::TestTreeNode::add_test ( Callable test)

Definition at line 109 of file cpunit_TestTreeNode.cpp.

void cpunit::TestTreeNode::extract_matches ( std::vector< TestUnit > &  result,
const GlobMatcher m 

Definition at line 136 of file cpunit_TestTreeNode.cpp.

std::map< std::string, cpunit::TestTreeNode * > cpunit::TestTreeNode::get_children ( )

Definition at line 131 of file cpunit_TestTreeNode.cpp.

std::string cpunit::TestTreeNode::get_local_name ( ) const

Definition at line 80 of file cpunit_TestTreeNode.cpp.

std::string cpunit::TestTreeNode::get_path ( ) const

Definition at line 70 of file cpunit_TestTreeNode.cpp.

void cpunit::TestTreeNode::register_set_up ( Callable s)

Definition at line 85 of file cpunit_TestTreeNode.cpp.

void cpunit::TestTreeNode::register_tear_down ( Callable t)

Definition at line 97 of file cpunit_TestTreeNode.cpp.

Member Data Documentation

Definition at line 53 of file cpunit_TestTreeNode.hpp.

const std::string* cpunit::TestTreeNode::local_name [private]

Definition at line 56 of file cpunit_TestTreeNode.hpp.

Definition at line 55 of file cpunit_TestTreeNode.hpp.

Definition at line 54 of file cpunit_TestTreeNode.hpp.

Definition at line 54 of file cpunit_TestTreeNode.hpp.

Definition at line 52 of file cpunit_TestTreeNode.hpp.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines