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 (msg)
 

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 90 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 129 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 237 of file test_virtual_functions.py.

◆ test_inherited_virtuals()

def test_virtual_functions.test_inherited_virtuals ( )

Definition at line 308 of file test_virtual_functions.py.

◆ test_issue_1454()

def test_virtual_functions.test_issue_1454 ( )

Definition at line 437 of file test_virtual_functions.py.

◆ test_move_support()

def test_virtual_functions.test_move_support ( )

Definition at line 191 of file test_virtual_functions.py.

◆ test_override()

def test_virtual_functions.test_override (   capture,
  msg 
)

Definition at line 9 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 292 of file test_virtual_functions.py.

◆ test_python_override()

def test_virtual_functions.test_python_override ( )

Definition at line 443 of file test_virtual_functions.py.

◆ test_recursive_dispatch_issue()

def test_virtual_functions.test_recursive_dispatch_issue (   msg)
#3357: Recursive dispatch fails to find python function override

Definition at line 259 of file test_virtual_functions.py.

Variable Documentation

◆ data

test_virtual_functions.data

Definition at line 13 of file test_virtual_functions.py.

◆ m

test_virtual_functions.m

Definition at line 5 of file test_virtual_functions.py.

◆ movable

test_virtual_functions.movable

Definition at line 200 of file test_virtual_functions.py.

◆ nc

test_virtual_functions.nc

Definition at line 206 of file test_virtual_functions.py.

◆ result

test_virtual_functions.result

Definition at line 276 of file test_virtual_functions.py.

◆ value

test_virtual_functions.value

Definition at line 265 of file test_virtual_functions.py.



gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:47:31