![]() |
Scarab
v2.9.0
Project 8 C++ Utility Library
|
Functions | |
| def | test_override (capture, msg) |
| def | test_alias_delay_initialization1 (capture) |
| def | test_alias_delay_initialization2 (capture) |
| def | test_move_support () |
| def | test_dispatch_issue (msg) |
| def | test_override_ref () |
| def | test_inherited_virtuals () |
| def | test_issue_1454 () |
Variables | |
| data | |
| movable | |
| nc | |
| def test_virtual_functions.test_alias_delay_initialization1 | ( | capture | ) |
`A` only initializes its trampoline class when we inherit from it If we just create and use an A instance directly, the trampoline initialization is bypassed and we only initialize an A() instead (for performance reasons).
Definition at line 76 of file test_virtual_functions.py.
| def test_virtual_functions.test_alias_delay_initialization2 | ( | capture | ) |
`A2`, unlike the above, is configured to always initialize the alias While the extra initialization and extra class layer has small virtual dispatch performance penalty, it also allows us to do more things with the trampoline class such as defining local variables and performing construction/destruction.
Definition at line 111 of file test_virtual_functions.py.
| def test_virtual_functions.test_dispatch_issue | ( | msg | ) |
#159: virtual function dispatch has problems with similar-named functions
Definition at line 210 of file test_virtual_functions.py.
| def test_virtual_functions.test_inherited_virtuals | ( | ) |
Definition at line 245 of file test_virtual_functions.py.
| def test_virtual_functions.test_issue_1454 | ( | ) |
Definition at line 374 of file test_virtual_functions.py.
| def test_virtual_functions.test_move_support | ( | ) |
Definition at line 164 of file test_virtual_functions.py.
| def test_virtual_functions.test_override | ( | capture, | |
| msg | |||
| ) |
Definition at line 7 of file test_virtual_functions.py.
| def test_virtual_functions.test_override_ref | ( | ) |
#392/397: overriding reference-returning functions
Definition at line 229 of file test_virtual_functions.py.
| data |
Definition at line 11 of file test_virtual_functions.py.
| movable |
Definition at line 173 of file test_virtual_functions.py.
| nc |
Definition at line 179 of file test_virtual_functions.py.
1.8.13