Functions | |
def | test_alias_delay_initialization1 (capture) |
def | test_alias_delay_initialization2 (capture) |
def | test_dispatch_issue (msg) |
def | test_inherited_virtuals () |
def | test_issue_1454 () |
def | test_move_support () |
def | test_override (capture, msg) |
def | test_override_ref () |
def | test_python_override () |
def | test_recursive_dispatch_issue () |
Variables | |
data | |
m | |
movable | |
nc | |
result | |
value | |
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 92 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 131 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 238 of file test_virtual_functions.py.
def test_virtual_functions.test_inherited_virtuals | ( | ) |
Definition at line 309 of file test_virtual_functions.py.
def test_virtual_functions.test_issue_1454 | ( | ) |
Definition at line 438 of file test_virtual_functions.py.
def test_virtual_functions.test_move_support | ( | ) |
Definition at line 193 of file test_virtual_functions.py.
def test_virtual_functions.test_override | ( | capture, | |
msg | |||
) |
Definition at line 11 of file test_virtual_functions.py.
def test_virtual_functions.test_override_ref | ( | ) |
#392/397: overriding reference-returning functions
Definition at line 293 of file test_virtual_functions.py.
def test_virtual_functions.test_python_override | ( | ) |
Definition at line 444 of file test_virtual_functions.py.
def test_virtual_functions.test_recursive_dispatch_issue | ( | ) |
#3357: Recursive dispatch fails to find python function override
Definition at line 260 of file test_virtual_functions.py.
test_virtual_functions.data |
Definition at line 15 of file test_virtual_functions.py.
test_virtual_functions.m |
Definition at line 7 of file test_virtual_functions.py.
test_virtual_functions.movable |
Definition at line 201 of file test_virtual_functions.py.
test_virtual_functions.nc |
Definition at line 207 of file test_virtual_functions.py.
test_virtual_functions.result |
Definition at line 277 of file test_virtual_functions.py.
test_virtual_functions.value |
Definition at line 266 of file test_virtual_functions.py.