#include <ControlPointContainerTests.h>
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 | |
| ControlPointTestGenerator * | m_controlPointGenerator |
| ControlPointContainer * | m_controlPoints |
| ControlPointContainer * | m_controlPointsFive |
| std::vector< VRS::Vector > | m_target |
| int | m_blockList [8] |
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.
| 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:

Definition at line 34 of file ControlPointContainerTests.h.
Referenced by setUp(), testGetOffsetToKey(), testGetTheFourBlocks(), testHashMapValues(), and testMapsValueToKey().
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] |
int random_racer::ControlPointContainerTests::m_blockList[8] [private] |
1.5.1