Functions | |
def | create_and_destroy (*args) |
def | strip_comments (s) |
def | test_init_factory_alias () |
def | test_init_factory_basic () |
def | test_init_factory_casting () |
def | test_init_factory_dual () |
def | test_init_factory_signature (msg) |
def | test_invalid_self () |
def | test_multiple_inheritance () |
def | test_no_placement_new (capture) |
def | test_reallocation_a (capture, msg) |
def | test_reallocation_b (capture, msg) |
def | test_reallocation_c (capture, msg) |
def | test_reallocation_d (capture, msg) |
def | test_reallocation_e (capture, msg) |
def | test_reallocation_f (capture, msg) |
def | test_reallocation_g (capture, msg) |
def test_factory_constructors.create_and_destroy | ( | * | args | ) |
Definition at line 342 of file test_factory_constructors.py.
def test_factory_constructors.strip_comments | ( | s | ) |
Definition at line 349 of file test_factory_constructors.py.
def test_factory_constructors.test_init_factory_alias | ( | ) |
Tests py::init_factory() wrapper with value conversions and alias types
Definition at line 153 of file test_factory_constructors.py.
def test_factory_constructors.test_init_factory_basic | ( | ) |
Tests py::init_factory() wrapper around various ways of returning the object
Definition at line 12 of file test_factory_constructors.py.
def test_factory_constructors.test_init_factory_casting | ( | ) |
Tests py::init_factory() wrapper with various upcasting and downcasting returns
Definition at line 105 of file test_factory_constructors.py.
def test_factory_constructors.test_init_factory_dual | ( | ) |
Tests init factory functions with dual main/alias factory functions
Definition at line 223 of file test_factory_constructors.py.
def test_factory_constructors.test_init_factory_signature | ( | msg | ) |
Definition at line 72 of file test_factory_constructors.py.
def test_factory_constructors.test_invalid_self | ( | ) |
Tests invocation of the pybind-registered base class with an invalid `self` argument.
Definition at line 468 of file test_factory_constructors.py.
def test_factory_constructors.test_multiple_inheritance | ( | ) |
Definition at line 331 of file test_factory_constructors.py.
def test_factory_constructors.test_no_placement_new | ( | capture | ) |
Prior to 2.2, `py::init<...>` relied on the type supporting placement new; this tests a class without placement new support.
Definition at line 305 of file test_factory_constructors.py.
def test_factory_constructors.test_reallocation_a | ( | capture, | |
msg | |||
) |
When the constructor is overloaded, previous overloads can require a preallocated value. This test makes sure that such preallocated values only happen when they might be necessary, and that they are deallocated properly.
Definition at line 353 of file test_factory_constructors.py.
def test_factory_constructors.test_reallocation_b | ( | capture, | |
msg | |||
) |
Definition at line 375 of file test_factory_constructors.py.
def test_factory_constructors.test_reallocation_c | ( | capture, | |
msg | |||
) |
Definition at line 391 of file test_factory_constructors.py.
def test_factory_constructors.test_reallocation_d | ( | capture, | |
msg | |||
) |
Definition at line 405 of file test_factory_constructors.py.
def test_factory_constructors.test_reallocation_e | ( | capture, | |
msg | |||
) |
Definition at line 420 of file test_factory_constructors.py.
def test_factory_constructors.test_reallocation_f | ( | capture, | |
msg | |||
) |
Definition at line 435 of file test_factory_constructors.py.
def test_factory_constructors.test_reallocation_g | ( | capture, | |
msg | |||
) |
Definition at line 451 of file test_factory_constructors.py.