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 328 of file test_factory_constructors.py.
def test_factory_constructors.strip_comments | ( | s | ) |
Definition at line 335 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 141 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 96 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 211 of file test_factory_constructors.py.
def test_factory_constructors.test_init_factory_signature | ( | msg | ) |
Definition at line 69 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. You can only actually do this on Python 3: Python 2 raises an exception itself if you try.
Definition at line 440 of file test_factory_constructors.py.
def test_factory_constructors.test_multiple_inheritance | ( | ) |
Definition at line 317 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 291 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 339 of file test_factory_constructors.py.
def test_factory_constructors.test_reallocation_b | ( | capture, | |
msg | |||
) |
Definition at line 358 of file test_factory_constructors.py.
def test_factory_constructors.test_reallocation_c | ( | capture, | |
msg | |||
) |
Definition at line 372 of file test_factory_constructors.py.
def test_factory_constructors.test_reallocation_d | ( | capture, | |
msg | |||
) |
Definition at line 384 of file test_factory_constructors.py.
def test_factory_constructors.test_reallocation_e | ( | capture, | |
msg | |||
) |
Definition at line 397 of file test_factory_constructors.py.
def test_factory_constructors.test_reallocation_f | ( | capture, | |
msg | |||
) |
Definition at line 410 of file test_factory_constructors.py.
def test_factory_constructors.test_reallocation_g | ( | capture, | |
msg | |||
) |
Definition at line 424 of file test_factory_constructors.py.