|
HepMC3 event record library
|
Inheritance diagram for accessor< Policy >:
Collaboration diagram for accessor< Policy >: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) & |
| iterator | begin () const |
| iterator | end () const |
| Return a sentinel which ends iteration. More... | |
| 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... | |
| 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... | |
| args_proxy | operator* () const |
| object | operator* (object_api const &other) const |
| bool | contains (T &&item) const |
Check if the given item is contained within this object, i.e. item in obj. More... | |
| object | operator() (Args &&...args) const |
| PYBIND11_DEPRECATED ("call(...) was deprecated in favor of operator()(...)") object call(Args &&... args) 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 | equal (object_api const &other) const |
| Equivalent to obj == other in Python. More... | |
| bool | not_equal (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 |
| bool | operator>= (object_api const &other) const |
| object | operator- () 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 |
| 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& (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<< (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 |
| pybind11::str | str () const |
| str_attr_accessor | doc () const |
Get or set the object's docstring, i.e. obj.__doc__. More... | |
| int | ref_count () const |
| Return the object's current reference count. More... | |
| handle | get_type () const |
Data Fields | |
| 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 |
| object | cache |
Private Types | |
| using | key_type = typename Policy::key_type |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Return a sentinel which ends iteration.
Definition at line 1579 of file pytypes.h.
References iterator::sentinel().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Assuming the Python object is a function or implements the __call__ protocol, operator() invokes the underlying function, passing an arbitrary set of parameters. The result is returned as a object and may need to be converted back into a Python object using handle::cast().
When some of the arguments cannot be converted to Python objects, the function will throw a cast_error exception. When the Python function call fails, a error_already_set exception is thrown.
|
inherited |
|
inherited |
Return an internal functor to invoke the object's sequence protocol. Casting the returned detail::item_accessor instance to a handle or object subclass causes a corresponding call to __getitem__. Assigning a handle or object subclass causes a call to __setitem__.
|
inherited |
|
inlineinherited |
1.8.14