lkptr
|
Test data for class lkptr
.
More...
Public Member Functions | |
test_lkptr () | |
bool | run () |
Runs the tests. | |
void | swap_4x1 () |
Swaps 4 lkptr<X>'s . | |
void | ok_1x2 () |
void | verify_3x1 () |
Tries with 3 pointes to the same value. | |
void | boost_test () |
http://www.boost.org/doc/libs/1_43_0/libs/smart_ptr/test/smart_ptr_test.cpp | |
void | array_vs_lkptr () |
Muestra como el compilador no permite la mescla de lkptr<> con array_lkptr<> . | |
void | null_3x1 () |
Tries with 3 pointes to the same value. | |
void | inheritance () |
Tests that lkptr<X> works well with a class hierarchy. | |
void | downcast () |
Tries with 3 pointes to the same value. | |
void | selfReturn () |
Tries with 3 pointes to the same value. | |
void | multiDestroyInt () |
Unrelated lkptr<>'s point to the same object. | |
void | multiDestroyClass () |
Unrelated lkptr<>'s point to the same object. | |
void | multiDestroyVector () |
Unrelated lkptr<>'s point to the same object. | |
void | test_lkptr_cycle () |
Muestra como no es posible que lkptr<> maneje algunos ciclos correctamente. | |
Private Member Functions | |
lkptr< int > | foo (lkptr< int > r) |
Returns the pointer within ptr . | |
Private Attributes | |
int * | pInt |
Test data for class lkptr
.
Definition at line 16 of file test_lkptr.cpp.
test_lkptr< X >::test_lkptr | ( | ) | [inline] |
Definition at line 19 of file test_lkptr.cpp.
bool test_lkptr< X >::run | ( | ) |
Runs the tests.
Definition at line 40 of file test_lkptr.cpp.
void test_lkptr< X >::swap_4x1 | ( | ) |
Swaps 4 lkptr<X>'s
.
Definition at line 84 of file test_lkptr.cpp.
void test_lkptr< X >::ok_1x2 | ( | ) |
Definition at line 300 of file test_lkptr.cpp.
void test_lkptr< X >::verify_3x1 | ( | ) |
Tries with 3 pointes to the same value.
Definition at line 336 of file test_lkptr.cpp.
void test_lkptr< X >::boost_test | ( | ) |
http://www.boost.org/doc/libs/1_43_0/libs/smart_ptr/test/smart_ptr_test.cpp
Definition at line 394 of file test_lkptr.cpp.
void test_lkptr< E >::array_vs_lkptr | ( | ) |
Muestra como el compilador no permite la mescla de lkptr<>
con array_lkptr<>
.
Definition at line 623 of file test_lkptr.cpp.
void test_lkptr< X >::null_3x1 | ( | ) |
Tries with 3 pointes to the same value.
Definition at line 60 of file test_lkptr.cpp.
void test_lkptr< X >::inheritance | ( | ) |
Tests that lkptr<X>
works well with a class hierarchy.
Definition at line 713 of file test_lkptr.cpp.
void test_lkptr< X >::downcast | ( | ) |
Tries with 3 pointes to the same value.
Definition at line 756 of file test_lkptr.cpp.
void test_lkptr< X >::selfReturn | ( | ) |
Tries with 3 pointes to the same value.
Definition at line 806 of file test_lkptr.cpp.
void test_lkptr< X >::multiDestroyInt | ( | ) |
Unrelated lkptr<>'s point to the same object.
http://www.di-mare.com/adolfo/p/lkptr.htm#fg-08
Definition at line 834 of file test_lkptr.cpp.
void test_lkptr< X >::multiDestroyClass | ( | ) |
Unrelated lkptr<>'s point to the same object.
Definition at line 951 of file test_lkptr.cpp.
void test_lkptr< X >::multiDestroyVector | ( | ) |
Unrelated lkptr<>'s point to the same object.
Definition at line 1010 of file test_lkptr.cpp.
void test_lkptr< E >::test_lkptr_cycle | ( | ) |
Muestra como no es posible que lkptr<>
maneje algunos ciclos correctamente.
Definition at line 655 of file test_lkptr.cpp.
lkptr< int > test_lkptr< X >::foo | ( | lkptr< int > | r | ) | [private] |
Returns the pointer within ptr
.
Definition at line 821 of file test_lkptr.cpp.
int* test_lkptr< X >::pInt [private] |
Definition at line 17 of file test_lkptr.cpp.