ParCompMarkTest::TestPointer Class Reference
#include <TestPointer.h>
Detailed Description
Test suite for ParCompMark::Pointer.This is a CppUnit test suite for class ParCompMark::Pointer of project ParCompMark.
Definition at line 56 of file TestPointer.h.
Public Member Functions | |
void | setUp () |
Sets up context before running a test. | |
void | tearDown () |
Cleans up after the test run. | |
Protected Member Functions | |
void | test_constructor () |
Tests constructor Pointer::Pointer(). | |
void | test_constructor_cT_p_cbool () |
Tests constructor Pointer::Pointer(const T * pointer, const bool &takeOwnership = true). | |
void | test_constructor_Pointer___T__Lock__ () |
Tests constructor Pointer::Pointer(Pointer < T, Lock > &pointer). | |
void | test_constructor_cPointer___T__Lock__ () |
Tests constructor Pointer::Pointer(const Pointer < T, Lock > &pointer). | |
void | test_destructor () |
Tests destructor Pointer::~Pointer(). | |
void | test_operator_assignment_cT_p () |
Tests operator Pointer::operator=(const T * pointer). | |
void | test_operator_assignment_Pointer___T__Lock__ () |
Tests operator Pointer::operator=(Pointer < T, Lock > &pointer). | |
void | test_operator_assignment_cPointer___T__Lock__ () |
Tests operator Pointer::operator=(const Pointer < T, Lock > &pointer). | |
void | test_operator_memberSelection () |
Tests operator Pointer::operator->(). | |
void | test_operator_equality_cT_p () |
void TestPointer::test_operator_pointerDereference() { | |
void | test_operator_equality_Pointer___T__Lock__ () |
Tests operator Pointer::operator==(Pointer < T, Lock > &pointer). | |
void | test_operator_inequality_cT_p () |
Tests operator Pointer::operator!=(const T * pointer). | |
void | test_operator_inequality_Pointer___T__Lock__ () |
Tests operator Pointer::operator!=(Pointer < T, Lock > &pointer). | |
void | test_isNull () |
Tests method Pointer::isNull(). | |
void | test_isNotNull () |
Tests method Pointer::isNotNull(). | |
void | test_assignWithLock_Pointer___T__Lock__ () |
Tests method Pointer::assignWithLock(Pointer < T, Lock > &pointer). | |
void | test_reference_cT_p () |
Tests method Pointer::reference(const T * pointer). | |
void | test_getPtr () |
Tests method Pointer::getPtr(). | |
void | test_kill_cbool () |
Tests method Pointer::kill(const bool &force = false). | |
void | test_setNull_cbool () |
Tests method Pointer::setNull(const bool &force = false). | |
void | test_lock () |
Tests method Pointer::lock(). | |
void | test_trylock () |
Tests method Pointer::trylock(). | |
void | test_unlock () |
Tests method Pointer::unlock(). | |
void | test_getLocked () |
Tests method Pointer::getLocked(). | |
void | test__deletePointer_cbool_cbool () |
Tests method Pointer::_deletePointer(const bool &force = false, const bool &keepLock = false). | |
void | test__assignCPointer_cT_p_cbool () |
Tests method Pointer::_assignCPointer(const T * pointer, const bool &takeOwnership = true). | |
void | test__assignPointer_Pointer___T__Lock___cbool () |
Tests method Pointer::_assignPointer(Pointer < T, Lock > &pointer, const bool &keepLock = false). | |
void | test__switchPointer_Pointer___T__Lock___cbool () |
Tests method Pointer::_switchPointer(Pointer < T, Lock > &pointer, const bool &keepLock = false). | |
void | test__equalsCPointer_cT_p () |
Tests method Pointer::_equalsCPointer(const T * pointer). | |
void | test__equalsPointer_Pointer___T__Lock__ () |
Tests method Pointer::_equalsPointer(Pointer < T, Lock > &pointer). |
Member Function Documentation
void ParCompMarkTest::TestPointer::setUp | ( | ) |
void ParCompMarkTest::TestPointer::tearDown | ( | ) |
void ParCompMarkTest::TestPointer::test__assignCPointer_cT_p_cbool | ( | ) | [protected] |
Tests method Pointer::_assignCPointer(const T * pointer, const bool &takeOwnership = true).
Definition at line 683 of file TestPointer.cpp.
void ParCompMarkTest::TestPointer::test__assignPointer_Pointer___T__Lock___cbool | ( | ) | [protected] |
Tests method Pointer::_assignPointer(Pointer < T, Lock > &pointer, const bool &keepLock = false).
Definition at line 697 of file TestPointer.cpp.
void ParCompMarkTest::TestPointer::test__deletePointer_cbool_cbool | ( | ) | [protected] |
Tests method Pointer::_deletePointer(const bool &force = false, const bool &keepLock = false).
Definition at line 669 of file TestPointer.cpp.
void ParCompMarkTest::TestPointer::test__equalsCPointer_cT_p | ( | ) | [protected] |
Tests method Pointer::_equalsCPointer(const T * pointer).
Definition at line 725 of file TestPointer.cpp.
void ParCompMarkTest::TestPointer::test__equalsPointer_Pointer___T__Lock__ | ( | ) | [protected] |
Tests method Pointer::_equalsPointer(Pointer < T, Lock > &pointer).
Definition at line 739 of file TestPointer.cpp.
void ParCompMarkTest::TestPointer::test__switchPointer_Pointer___T__Lock___cbool | ( | ) | [protected] |
Tests method Pointer::_switchPointer(Pointer < T, Lock > &pointer, const bool &keepLock = false).
Definition at line 711 of file TestPointer.cpp.
void ParCompMarkTest::TestPointer::test_assignWithLock_Pointer___T__Lock__ | ( | ) | [protected] |
Tests method Pointer::assignWithLock(Pointer < T, Lock > &pointer).
Definition at line 466 of file TestPointer.cpp.
void ParCompMarkTest::TestPointer::test_constructor | ( | ) | [protected] |
void ParCompMarkTest::TestPointer::test_constructor_cPointer___T__Lock__ | ( | ) | [protected] |
Tests constructor Pointer::Pointer(const Pointer < T, Lock > &pointer).
Definition at line 122 of file TestPointer.cpp.
void ParCompMarkTest::TestPointer::test_constructor_cT_p_cbool | ( | ) | [protected] |
Tests constructor Pointer::Pointer(const T * pointer, const bool &takeOwnership = true).
Definition at line 70 of file TestPointer.cpp.
void ParCompMarkTest::TestPointer::test_constructor_Pointer___T__Lock__ | ( | ) | [protected] |
Tests constructor Pointer::Pointer(Pointer < T, Lock > &pointer).
Definition at line 101 of file TestPointer.cpp.
void ParCompMarkTest::TestPointer::test_destructor | ( | ) | [protected] |
void ParCompMarkTest::TestPointer::test_getLocked | ( | ) | [protected] |
void ParCompMarkTest::TestPointer::test_getPtr | ( | ) | [protected] |
void ParCompMarkTest::TestPointer::test_isNotNull | ( | ) | [protected] |
void ParCompMarkTest::TestPointer::test_isNull | ( | ) | [protected] |
void ParCompMarkTest::TestPointer::test_kill_cbool | ( | ) | [protected] |
Tests method Pointer::kill(const bool &force = false).
Definition at line 555 of file TestPointer.cpp.
void ParCompMarkTest::TestPointer::test_lock | ( | ) | [protected] |
void ParCompMarkTest::TestPointer::test_operator_assignment_cPointer___T__Lock__ | ( | ) | [protected] |
Tests operator Pointer::operator=(const Pointer < T, Lock > &pointer).
Definition at line 244 of file TestPointer.cpp.
void ParCompMarkTest::TestPointer::test_operator_assignment_cT_p | ( | ) | [protected] |
Tests operator Pointer::operator=(const T * pointer).
Definition at line 163 of file TestPointer.cpp.
void ParCompMarkTest::TestPointer::test_operator_assignment_Pointer___T__Lock__ | ( | ) | [protected] |
Tests operator Pointer::operator=(Pointer < T, Lock > &pointer).
Definition at line 196 of file TestPointer.cpp.
void ParCompMarkTest::TestPointer::test_operator_equality_cT_p | ( | ) | [protected] |
void TestPointer::test_operator_pointerDereference() {
You have to verify the following:
Get referenced object.
int *_p = new int (1); Pointer < int, DummyLock > p(_p);
CPPUNIT_ASSERT_MESSAGE("Pointer dereference error", *p == *_p); }
Definition at line 336 of file TestPointer.cpp.
void ParCompMarkTest::TestPointer::test_operator_equality_Pointer___T__Lock__ | ( | ) | [protected] |
Tests operator Pointer::operator==(Pointer < T, Lock > &pointer).
Definition at line 353 of file TestPointer.cpp.
void ParCompMarkTest::TestPointer::test_operator_inequality_cT_p | ( | ) | [protected] |
Tests operator Pointer::operator!=(const T * pointer).
Definition at line 377 of file TestPointer.cpp.
void ParCompMarkTest::TestPointer::test_operator_inequality_Pointer___T__Lock__ | ( | ) | [protected] |
Tests operator Pointer::operator!=(Pointer < T, Lock > &pointer).
Definition at line 394 of file TestPointer.cpp.
void ParCompMarkTest::TestPointer::test_operator_memberSelection | ( | ) | [protected] |
void ParCompMarkTest::TestPointer::test_reference_cT_p | ( | ) | [protected] |
void ParCompMarkTest::TestPointer::test_setNull_cbool | ( | ) | [protected] |
Tests method Pointer::setNull(const bool &force = false).
Definition at line 584 of file TestPointer.cpp.
void ParCompMarkTest::TestPointer::test_trylock | ( | ) | [protected] |
void ParCompMarkTest::TestPointer::test_unlock | ( | ) | [protected] |
The documentation for this class was generated from the following files: