|
| using | obj_attr_accessor = accessor< accessor_policies::obj_attr > |
| |
| using | str_attr_accessor = accessor< accessor_policies::str_attr > |
| |
| using | item_accessor = accessor< accessor_policies::generic_item > |
| |
| using | sequence_accessor = accessor< accessor_policies::sequence_item > |
| |
| using | list_accessor = accessor< accessor_policies::list_item > |
| |
| using | tuple_accessor = accessor< accessor_policies::tuple_item > |
| |
| template<typename T > |
| using | is_pyobject = std::is_base_of< pyobject_tag, remove_reference_t< T > > |
| |
| using | tuple_iterator = generic_iterator< iterator_policies::sequence_fast_readonly > |
| |
| using | list_iterator = generic_iterator< iterator_policies::sequence_fast_readonly > |
| |
| using | sequence_iterator = generic_iterator< iterator_policies::sequence_slow_readwrite > |
| |
| using | dict_iterator = generic_iterator< iterator_policies::dict_readonly > |
| |
| template<typename T > |
| using | is_keyword = std::is_base_of< arg, T > |
| | Python argument categories (using PEP 448 terms) More...
|
| |
| template<typename T > |
| using | is_s_unpacking = std::is_same< args_proxy, T > |
| |
| template<typename T > |
| using | is_ds_unpacking = std::is_same< kwargs_proxy, T > |
| |
| template<typename T > |
| using | is_positional = satisfies_none_of< T, is_keyword, is_s_unpacking, is_ds_unpacking > |
| |
| template<typename T > |
| using | is_keyword_or_ds = satisfies_any_of< T, is_keyword, is_ds_unpacking > |
| |
|
| bool | isinstance_generic (handle obj, const std::type_info &tp) |
| |
| template<typename T > |
| T | reinterpret_borrow (handle h) |
| |
| template<typename T > |
| T | reinterpret_steal (handle h) |
| |
| std::string | error_string () |
| |
| template<typename T , detail::enable_if_t< std::is_base_of< object, T >::value, int > = 0> |
| bool | isinstance (handle obj) |
| |
| template<> |
| bool | isinstance< handle > (handle obj)=delete |
| |
| template<> |
| bool | isinstance< object > (handle obj) |
| |
| bool | isinstance (handle obj, handle type) |
| |
| bool | hasattr (handle obj, handle name) |
| |
| bool | hasattr (handle obj, const char *name) |
| |
| void | delattr (handle obj, handle name) |
| |
| void | delattr (handle obj, const char *name) |
| |
| object | getattr (handle obj, handle name) |
| |
| object | getattr (handle obj, const char *name) |
| |
| object | getattr (handle obj, handle name, handle default_) |
| |
| object | getattr (handle obj, const char *name, handle default_) |
| |
| void | setattr (handle obj, handle name, handle value) |
| |
| void | setattr (handle obj, const char *name, handle value) |
| |
| ssize_t | hash (handle obj) |
| |
| handle | get_function (handle value) |
| |
| template<typename T , enable_if_t< is_pyobject< T >::value, int > = 0> |
| auto | object_or_cast (T &&o) -> decltype(std::forward< T >(o)) |
| |
| template<typename T , enable_if_t<!is_pyobject< T >::value, int > > |
| object | object_or_cast (T &&o) |
| |
| handle | object_or_cast (PyObject *ptr) |
| |
| bool | PyIterable_Check (PyObject *obj) |
| |
| bool | PyNone_Check (PyObject *o) |
| |
| bool | PyUnicode_Check_Permissive (PyObject *o) |
| |
| bool | PyStaticMethod_Check (PyObject *o) |
| |
| str | operator"" _s (const char *s, size_t size) |
| |
| template<typename Unsigned > |
| Unsigned | as_unsigned (PyObject *o) |
| |
| size_t | len (handle h) |
| |
| size_t | len_hint (handle h) |
| |
| str | repr (handle h) |
| |
| iterator | iter (handle obj) |
| |