#include <pytypes.h>
Public Member Functions | |
accessor (handle obj, key_type key) | |
accessor (const accessor &)=default | |
accessor (accessor &&) noexcept=default | |
object & | get_cache () const |
void | operator= (const accessor &a) && |
void | operator= (const accessor &a) & |
template<typename T > | |
void | operator= (T &&value) && |
template<typename T > | |
void | operator= (T &&value) & |
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 | |
Public Member Functions inherited from object_api< accessor< Policy > > | |
obj_attr_accessor | attr (handle key) const |
obj_attr_accessor | attr (object &&key) const |
See above (the only difference is that the key's reference is stolen) More... | |
str_attr_accessor | attr (const char *key) const |
See above (the only difference is that the 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... | |
handle | get_type () const |
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[] (object &&key) const |
See above (the only difference is that the key's reference is stolen) More... | |
item_accessor | operator[] (const char *key) const |
See above (the only difference is that the 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 | |
int | ref_count () const |
Return the object's current reference count. More... | |
pybind11::str | str () const |
Static Public Member Functions | |
static object | ensure_object (handle h) |
Private Types | |
using | key_type = typename Policy::key_type |
Private Attributes | |
object | cache |
key_type | key |
handle | obj |
|
inline |