Go to the documentation of this file.
23 "Invalid C++ type T for to-Python conversion (type_caster<PyObject>).");
31 if (PyErr_Occurred()) {
32 raise_from(PyExc_SystemError,
"src != nullptr but PyErr_Occurred()");
42 pybind11_fail(
"type_caster<PyObject>::cast(): unsupported return_value_policy: "
43 + std::to_string(
static_cast<int>(policy)));
47 value = reinterpret_borrow<object>(src);
54 explicit operator PyObject *() {
return value.ptr(); }
Annotation for function names.
static handle cast(T &&, return_value_policy, handle)
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.
const handle & inc_ref() const &
#define PYBIND11_NAMESPACE_END(name)
Eigen::Triplet< double > T
#define PYBIND11_NAMESPACE_BEGIN(name)
void raise_from(PyObject *type, const char *message)
PyExc_RuntimeError PYBIND11_NOINLINE void pybind11_fail(const char *reason)
Used internally.
std::is_same< detail::remove_cvref_t< T >, U > is_same_ignoring_cvref
Example usage: is_same_ignoring_cvref<T, PyObject *>::value.
static handle cast(PyObject *src, return_value_policy policy, handle)
bool load(handle src, bool)
gtsam
Author(s):
autogenerated on Tue Jun 25 2024 03:07:52