#include <pytypes.h>

Public Member Functions | |
| accessor (handle obj, key_type key) | |
| accessor (const accessor &)=default | |
| accessor (accessor &&)=default | |
| void | operator= (const accessor &a)&& |
| void | operator= (const accessor &a)& |
| template<typename T > | |
| void | operator= (T &&value)&& |
| template<typename T > | |
| void | operator= (T &&value)& |
Public Member Functions inherited from object_api< accessor< Policy > > | |
| obj_attr_accessor | attr (handle key) const |
| str_attr_accessor | attr (const char *key) const |
| See above (the only difference is that they key is provided as a string literal) More... | |
| iterator | begin () const |
| bool | contains (T &&item) const |
Check if the given item is contained within this object, i.e. item in obj. More... | |
| str_attr_accessor | doc () const |
Get or set the object's docstring, i.e. obj.__doc__. More... | |
| iterator | end () const |
| Return a sentinel which ends iteration. More... | |
| bool | equal (object_api const &other) const |
| Equivalent to obj == other in Python. More... | |
| bool | is (object_api const &other) const |
Equivalent to obj is other in Python. More... | |
| bool | is_none () const |
Equivalent to obj is None in Python. More... | |
| bool | not_equal (object_api const &other) const |
| object | operator& (object_api const &other) const |
| object | operator&= (object_api const &other) const |
| object | operator() (Args &&...args) const |
| args_proxy | operator* () const |
| object | operator* (object_api const &other) const |
| object | operator*= (object_api const &other) const |
| object | operator+ (object_api const &other) const |
| object | operator+= (object_api const &other) const |
| object | operator- () const |
| object | operator- (object_api const &other) const |
| object | operator-= (object_api const &other) const |
| object | operator/ (object_api const &other) const |
| object | operator/= (object_api const &other) const |
| bool | operator< (object_api const &other) const |
| object | operator<< (object_api const &other) const |
| object | operator<<= (object_api const &other) const |
| bool | operator<= (object_api const &other) const |
| bool | operator> (object_api const &other) const |
| bool | operator>= (object_api const &other) const |
| object | operator>> (object_api const &other) const |
| object | operator>>= (object_api const &other) const |
| item_accessor | operator[] (handle key) const |
| item_accessor | operator[] (const char *key) const |
| See above (the only difference is that they key is provided as a string literal) More... | |
| object | operator^ (object_api const &other) const |
| object | operator^= (object_api const &other) const |
| object | operator| (object_api const &other) const |
| object | operator|= (object_api const &other) const |
| object | operator~ () const |
| PYBIND11_DEPRECATED ("call(...) was deprecated in favor of operator()(...)") object call(Args &&...args) const | |
| PYBIND11_DEPRECATED ("Call py::type::handle_of(h) or py::type::of(h) instead of h.get_type()") handle get_type() const | |
| int | ref_count () const |
| Return the object's current reference count. More... | |
| pybind11::str | str () const |
Public Attributes | |
| object | cache |
| template<typename T = Policy> | |
| PYBIND11_DEPRECATED("Use of obj.attr(...) as bool is deprecated in favor of pybind11::hasattr(obj, ...)") explicit operator enable_if_t< std key_type | key |
Private Types | |
| using | key_type = typename Policy::key_type |
| PYBIND11_DEPRECATED ("Use of obj.attr(...) as bool is deprecated in favor of pybind11::hasattr(obj, ...)") explicit operator enable_if_t<std key_type accessor< Policy >::key |