Functions | Variables
test_virtual_functions Namespace Reference

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
 

Function Documentation

◆ test_alias_delay_initialization1()

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.

◆ test_alias_delay_initialization2()

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.

◆ test_dispatch_issue()

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.

◆ test_inherited_virtuals()

def test_virtual_functions.test_inherited_virtuals ( )

Definition at line 309 of file test_virtual_functions.py.

◆ test_issue_1454()

def test_virtual_functions.test_issue_1454 ( )

Definition at line 438 of file test_virtual_functions.py.

◆ test_move_support()

def test_virtual_functions.test_move_support ( )

Definition at line 193 of file test_virtual_functions.py.

◆ test_override()

def test_virtual_functions.test_override (   capture,
  msg 
)

Definition at line 11 of file test_virtual_functions.py.

◆ test_override_ref()

def test_virtual_functions.test_override_ref ( )
#392/397: overriding reference-returning functions

Definition at line 293 of file test_virtual_functions.py.

◆ test_python_override()

def test_virtual_functions.test_python_override ( )

Definition at line 444 of file test_virtual_functions.py.

◆ test_recursive_dispatch_issue()

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.

Variable Documentation

◆ data

test_virtual_functions.data

Definition at line 15 of file test_virtual_functions.py.

◆ m

test_virtual_functions.m

Definition at line 7 of file test_virtual_functions.py.

◆ movable

test_virtual_functions.movable

Definition at line 201 of file test_virtual_functions.py.

◆ nc

test_virtual_functions.nc

Definition at line 207 of file test_virtual_functions.py.

◆ result

test_virtual_functions.result

Definition at line 277 of file test_virtual_functions.py.

◆ value

test_virtual_functions.value

Definition at line 266 of file test_virtual_functions.py.



gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:53:19