random_racer::ControlPointContainerTests Class Reference

This is the UnitTest for the Control Point Container written with CPPUnit. More...

#include <ControlPointContainerTests.h>

List of all members.

Public Member Functions

void setUp ()

Protected Member Functions

void testMapsValueToKey ()
void testGetOffsetToKey ()
void testGetTheFourBlocks ()
void testHashMapValues ()

Private Member Functions

 CPPUNIT_TEST_SUITE (ControlPointContainerTests)
 CPPUNIT_TEST (testMapsValueToKey)
 CPPUNIT_TEST (testGetOffsetToKey)
 CPPUNIT_TEST (testGetTheFourBlocks)
 CPPUNIT_TEST (testHashMapValues)
 CPPUNIT_TEST_SUITE_END ()

Private Attributes

ControlPointTestGeneratorm_controlPointGenerator
ControlPointContainerm_controlPoints
ControlPointContainerm_controlPointsFive
std::vector< VRS::Vector > m_target
int m_blockList [8]


Detailed Description

This is the UnitTest for the Control Point Container written with CPPUnit.

It tests several functions: The Mapping function from a absolute Coordinate to a key for the Hashmap. The calculation of the Offset depending on the key to return absolute values. Checks if we get the right four bordering blocks to a given key. Tests if we get the right absolute coordinates from the Hashmap.

Definition at line 24 of file ControlPointContainerTests.h.


Member Function Documentation

random_racer::ControlPointContainerTests::CPPUNIT_TEST_SUITE ( ControlPointContainerTests   )  [private]

random_racer::ControlPointContainerTests::CPPUNIT_TEST ( testMapsValueToKey   )  [private]

random_racer::ControlPointContainerTests::CPPUNIT_TEST ( testGetOffsetToKey   )  [private]

random_racer::ControlPointContainerTests::CPPUNIT_TEST ( testGetTheFourBlocks   )  [private]

random_racer::ControlPointContainerTests::CPPUNIT_TEST ( testHashMapValues   )  [private]

random_racer::ControlPointContainerTests::CPPUNIT_TEST_SUITE_END (  )  [private]

void random_racer::ControlPointContainerTests::setUp (  ) 

Definition at line 18 of file ControlPointContainerTests.cpp.

References random_racer::ControlPointTestGenerator::getCallback(), m_controlPointGenerator, m_controlPoints, and m_controlPointsFive.

Here is the call graph for this function:

void random_racer::ControlPointContainerTests::testMapsValueToKey (  )  [protected]

Definition at line 28 of file ControlPointContainerTests.cpp.

References m_controlPoints, m_controlPointsFive, and random_racer::ControlPointContainer::mapToKey().

Here is the call graph for this function:

void random_racer::ControlPointContainerTests::testGetOffsetToKey (  )  [protected]

Definition at line 63 of file ControlPointContainerTests.cpp.

References random_racer::ControlPointContainer::getOffset(), m_controlPoints, and m_controlPointsFive.

Here is the call graph for this function:

void random_racer::ControlPointContainerTests::testGetTheFourBlocks (  )  [protected]

Definition at line 83 of file ControlPointContainerTests.cpp.

References random_racer::ControlPointContainer::getFourBlocks(), m_blockList, m_controlPoints, and m_controlPointsFive.

Here is the call graph for this function:

void random_racer::ControlPointContainerTests::testHashMapValues (  )  [protected]

Definition at line 139 of file ControlPointContainerTests.cpp.

References random_racer::ControlPointContainer::getPoints(), m_controlPoints, m_controlPointsFive, and m_target.

Here is the call graph for this function:


Member Data Documentation

ControlPointTestGenerator* random_racer::ControlPointContainerTests::m_controlPointGenerator [private]

Definition at line 33 of file ControlPointContainerTests.h.

Referenced by setUp().

ControlPointContainer* random_racer::ControlPointContainerTests::m_controlPoints [private]

Definition at line 34 of file ControlPointContainerTests.h.

Referenced by setUp(), testGetOffsetToKey(), testGetTheFourBlocks(), testHashMapValues(), and testMapsValueToKey().

ControlPointContainer* random_racer::ControlPointContainerTests::m_controlPointsFive [private]

Definition at line 35 of file ControlPointContainerTests.h.

Referenced by setUp(), testGetOffsetToKey(), testGetTheFourBlocks(), testHashMapValues(), and testMapsValueToKey().

std::vector<VRS::Vector> random_racer::ControlPointContainerTests::m_target [private]

Definition at line 36 of file ControlPointContainerTests.h.

Referenced by testHashMapValues().

int random_racer::ControlPointContainerTests::m_blockList[8] [private]

Definition at line 37 of file ControlPointContainerTests.h.

Referenced by testGetTheFourBlocks().


The documentation for this class was generated from the following files:
Generated on Fri May 11 21:02:14 2007 for Random Racer by  doxygen 1.5.1