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 90 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 129 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 236 of file test_virtual_functions.py.
def test_virtual_functions.test_inherited_virtuals | ( | ) |
Definition at line 307 of file test_virtual_functions.py.
def test_virtual_functions.test_issue_1454 | ( | ) |
Definition at line 436 of file test_virtual_functions.py.
def test_virtual_functions.test_move_support | ( | ) |
Definition at line 191 of file test_virtual_functions.py.
def test_virtual_functions.test_override | ( | capture, | |
msg | |||
) |
Definition at line 9 of file test_virtual_functions.py.
def test_virtual_functions.test_override_ref | ( | ) |
#392/397: overriding reference-returning functions
Definition at line 291 of file test_virtual_functions.py.
def test_virtual_functions.test_python_override | ( | ) |
Definition at line 442 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 258 of file test_virtual_functions.py.
test_virtual_functions.data |
Definition at line 13 of file test_virtual_functions.py.
test_virtual_functions.m |
Definition at line 5 of file test_virtual_functions.py.
test_virtual_functions.movable |
Definition at line 199 of file test_virtual_functions.py.
test_virtual_functions.nc |
Definition at line 205 of file test_virtual_functions.py.
test_virtual_functions.result |
Definition at line 275 of file test_virtual_functions.py.
test_virtual_functions.value |
Definition at line 264 of file test_virtual_functions.py.