Functions
test_local_bindings Namespace Reference

Functions

def test_cross_module_calls ()
 
def test_duplicate_local ()
 
def test_internal_locals_differ ()
 
def test_load_external ()
 
def test_local_bindings ()
 
def test_mixed_local_global ()
 
def test_nonlocal_failure ()
 
def test_stl_bind_global ()
 
def test_stl_bind_local ()
 
def test_stl_caster_vs_stl_bind (msg)
 

Function Documentation

def test_local_bindings.test_cross_module_calls ( )

Definition at line 180 of file test_local_bindings.py.

def test_local_bindings.test_duplicate_local ( )
Tests expected failure when registering a class twice with py::local in the same module

Definition at line 61 of file test_local_bindings.py.

def test_local_bindings.test_internal_locals_differ ( )
Makes sure the internal local type map differs across the two modules

Definition at line 152 of file test_local_bindings.py.

def test_local_bindings.test_load_external ( )
Load a `py::module_local` type that's only registered in an external module

Definition at line 9 of file test_local_bindings.py.

def test_local_bindings.test_local_bindings ( )
Tests that duplicate `py::module_local` class bindings work across modules

Definition at line 25 of file test_local_bindings.py.

def test_local_bindings.test_mixed_local_global ( )
Local types take precedence over globally registered types: a module with a `module_local`
type can be registered even if the type is already registered globally.  With the module,
casting will go to the local type; outside the module casting goes to the global type.

Definition at line 121 of file test_local_bindings.py.

def test_local_bindings.test_nonlocal_failure ( )
Tests that attempting to register a non-local type in multiple modules fails

Definition at line 52 of file test_local_bindings.py.

def test_local_bindings.test_stl_bind_global ( )

Definition at line 105 of file test_local_bindings.py.

def test_local_bindings.test_stl_bind_local ( )

Definition at line 71 of file test_local_bindings.py.

def test_local_bindings.test_stl_caster_vs_stl_bind (   msg)
One module uses a generic vector caster from `<pybind11/stl.h>` while the other
exports `std::vector<int>` via `py:bind_vector` and `py::module_local`

Definition at line 159 of file test_local_bindings.py.



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