#include <pybind11.h>
Definition at line 1395 of file pybind11.h.
◆ enum_base()
◆ __attribute__() [1/2]
| __attribute__ |
( |
(noinline) |
| ) |
|
◆ __attribute__() [2/2]
| __attribute__ |
( |
(noinline) |
| ) |
const |
◆ attr() [1/7]
| m_base attr |
( |
"__repr__" |
| ) |
|
◆ attr() [2/7]
◆ attr() [3/7]
| m_base attr |
( |
"__doc__" |
| ) |
|
◆ attr() [4/7]
| m_base attr |
( |
"__members__" |
| ) |
|
◆ attr() [5/7]
◆ attr() [6/7]
| m_base attr |
( |
"__getstate__" |
| ) |
|
◆ attr() [7/7]
| m_base attr |
( |
"__hash__" |
| ) |
|
◆ if() [1/2]
◆ if() [2/2]
◆ doc
Initial value:= nullptr) {
dict entries = m_base.attr("__entries");
if (entries.contains(name)) {
std::string
type_name = (std::string)
str(m_base.attr(
"__name__"));
throw value_error(type_name + ": element \"" + std::string(name_) + "\" already exists!");
}
entries[name] = std::make_pair(
value,
doc);
m_base.attr(name) =
value;
}
dict entries = m_base.attr("__entries");
for (const auto &kv : entries)
}
Definition at line 1512 of file pybind11.h.
◆ else
Initial value:{
m_base.attr(
"__eq__" ) = cpp_function( [](
object a,
object b) {
if (!a.get_type().is(b.get_type()))
return false ;
return int_(a).equal(
int_(b)) ; }, is_method(m_base))
Definition at line 1488 of file pybind11.h.
◆ getstate
Initial value:= cpp_function(
[](
object arg) {
return int_(arg); }, is_method(m_base))
Definition at line 1505 of file pybind11.h.
◆ is_convertible
Initial value:{
m_base.attr("__entries") = dict()
Definition at line 1398 of file pybind11.h.
◆ m_parent
◆ property
| auto property = handle((PyObject *) &PyProperty_Type) |
◆ static_property
| auto static_property = handle((PyObject *) get_internals().static_property_type) |
◆ value
The documentation for this struct was generated from the following file: