Go to the documentation of this file.
9 using namespace pybind11::literals;
19 #define TEST_SUBMODULE(name, variable) \
20 void test_submodule_##name(py::module_ &); \
21 test_initializer name(#name, test_submodule_##name); \
22 void test_submodule_##name(py::module_ &(variable))
46 IncType(IncType &&) =
delete;
47 IncType &operator=(
const IncType &) =
delete;
48 IncType &operator=(IncType &&) =
delete;
78 return py::str(
"rvalue").release();
81 return py::str(
"lvalue").release();
90 message = "pybind11-bound class '.+' is using an old-style placement-new '(?:__init__|__setstate__)' which has been deprecated"
93 with warnings.catch_warnings():
94 warnings.filterwarnings("ignore", message=message, category=FutureWarning)
97 py::dict(py::arg("body") = py::cpp_function(body)));
NonTrivialType operator&()
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
NonTrivialType non_trivial_member
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)
std::shared_ptr< int > NonTrivialType
NonTrivialType operator&() const
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:03:53