Public Types | Public Member Functions | Private Types | Private Attributes

cmtk::TestFunctionMap Class Reference
[cmtkSystem Library]

Map from test name to test function. More...

#include <cmtkTestFunctionMap.h>

Collaboration diagram for cmtk::TestFunctionMap:
Collaboration graph
[legend]

List of all members.

Public Types

typedef int(* TestFunctionPtr )()
 Test function pointer.

Public Member Functions

void AddTest (const std::string &testName, TestFunctionPtr testFunction)
 Add test.
int RunTestByName (const std::string &testName)
 Run a test by name.

Private Types

typedef std::map< std::string,
TestFunctionPtr
MapType
 Map from test name to test pointer.

Private Attributes

MapType m_Map
 Map from test name to test function.

Detailed Description

Map from test name to test function.

Definition at line 48 of file cmtkTestFunctionMap.h.


Member Typedef Documentation

typedef std::map< std::string, TestFunctionPtr > cmtk::TestFunctionMap::MapType [private]

Map from test name to test pointer.

Definition at line 74 of file cmtkTestFunctionMap.h.

Test function pointer.

Definition at line 52 of file cmtkTestFunctionMap.h.


Member Function Documentation

void cmtk::TestFunctionMap::AddTest ( const std::string &  testName,
TestFunctionPtr  testFunction 
) [inline]

Add test.

Definition at line 55 of file cmtkTestFunctionMap.h.

int cmtk::TestFunctionMap::RunTestByName ( const std::string &  testName ) [inline]

Run a test by name.

Definition at line 61 of file cmtkTestFunctionMap.h.


Member Data Documentation

Map from test name to test function.

Definition at line 77 of file cmtkTestFunctionMap.h.


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