Go to the documentation of this file.
7 using namespace pybind11::literals;
17 #define TEST_SUBMODULE(name, variable) \
18 void test_submodule_##name(py::module_ &); \
19 test_initializer name(#name, test_submodule_##name); \
20 void test_submodule_##name(py::module_ &(variable))
44 IncType(IncType &&) =
delete;
45 IncType &operator=(
const IncType &) =
delete;
46 IncType &operator=(IncType &&) =
delete;
65 return py::str(
"rvalue").release();
68 return py::str(
"lvalue").release();
77 message = "pybind11-bound class '.+' is using an old-style placement-new '(?:__init__|__setstate__)' which has been deprecated"
80 with warnings.catch_warnings():
81 warnings.filterwarnings("ignore", message=message, category=FutureWarning)
84 py::dict(py::arg("body") = py::cpp_function(body)));
constexpr descr< N - 1 > const_name(char const (&text)[N])
return_value_policy
Approach used to cast a previously unknown C++ instance into a Python object.
#define PYBIND11_NAMESPACE_END(name)
Dummy type which is not exported anywhere – something to trigger a conversion error.
#define PYBIND11_NAMESPACE_BEGIN(name)
static handle cast(RValueCaster &&, return_value_policy, handle)
A simple union for basic testing.
void exec(const str &expr, object global=globals(), object local=object())
void ignoreOldStyleInitWarnings(F &&body)
void(*)(py::module_ &) Initializer
IncType(const IncType &other)
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE ArgReturnType arg() const
static handle cast(const RValueCaster &, return_value_policy, handle)
void set(Container &c, Position position, const Value &value)
#define PYBIND11_TYPE_CASTER(type, py_name)
gtsam
Author(s):
autogenerated on Tue Jun 25 2024 03:02:24