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

Variables

 data
 
 m
 
 movable
 
 nc
 

Function Documentation

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 79 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 114 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 213 of file test_virtual_functions.py.

def test_virtual_functions.test_inherited_virtuals ( )

Definition at line 248 of file test_virtual_functions.py.

def test_virtual_functions.test_issue_1454 ( )

Definition at line 377 of file test_virtual_functions.py.

def test_virtual_functions.test_move_support ( )

Definition at line 167 of file test_virtual_functions.py.

def test_virtual_functions.test_override (   capture,
  msg 
)

Definition at line 10 of file test_virtual_functions.py.

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

Definition at line 232 of file test_virtual_functions.py.

Variable Documentation

test_virtual_functions.data

Definition at line 14 of file test_virtual_functions.py.

test_virtual_functions.m

Definition at line 6 of file test_virtual_functions.py.

test_virtual_functions.movable

Definition at line 176 of file test_virtual_functions.py.

test_virtual_functions.nc

Definition at line 182 of file test_virtual_functions.py.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:59:21