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 94 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 133 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 240 of file test_virtual_functions.py.
def test_virtual_functions.test_inherited_virtuals | ( | ) |
Definition at line 311 of file test_virtual_functions.py.
def test_virtual_functions.test_issue_1454 | ( | ) |
Definition at line 441 of file test_virtual_functions.py.
def test_virtual_functions.test_move_support | ( | ) |
Definition at line 195 of file test_virtual_functions.py.
def test_virtual_functions.test_override | ( | capture, | |
msg | |||
) |
Definition at line 13 of file test_virtual_functions.py.
def test_virtual_functions.test_override_ref | ( | ) |
#392/397: overriding reference-returning functions
Definition at line 295 of file test_virtual_functions.py.
def test_virtual_functions.test_python_override | ( | ) |
Definition at line 447 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 262 of file test_virtual_functions.py.
test_virtual_functions.data |
Definition at line 17 of file test_virtual_functions.py.
test_virtual_functions.m |
Definition at line 9 of file test_virtual_functions.py.
test_virtual_functions.movable |
Definition at line 203 of file test_virtual_functions.py.
test_virtual_functions.nc |
Definition at line 209 of file test_virtual_functions.py.
test_virtual_functions.result |
Definition at line 279 of file test_virtual_functions.py.
test_virtual_functions.value |
Definition at line 268 of file test_virtual_functions.py.