Public Member Functions | Public Attributes | Private Types | List of all members
accessor< Policy > Class Template Reference

#include <pytypes.h>

Inheritance diagram for accessor< Policy >:
Inheritance graph
[legend]

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
 

Detailed Description

template<typename Policy>
class accessor< Policy >

Definition at line 30 of file pytypes.h.

Member Typedef Documentation

template<typename Policy >
using accessor< Policy >::key_type = typename Policy::key_type
private

Definition at line 492 of file pytypes.h.

Constructor & Destructor Documentation

template<typename Policy >
accessor< Policy >::accessor ( handle  obj,
key_type  key 
)
inline

Definition at line 495 of file pytypes.h.

template<typename Policy >
accessor< Policy >::accessor ( const accessor< Policy > &  )
default
template<typename Policy >
accessor< Policy >::accessor ( accessor< Policy > &&  )
default

Member Function Documentation

template<typename Policy >
void accessor< Policy >::operator= ( const accessor< Policy > &  a)
inline

Definition at line 501 of file pytypes.h.

template<typename Policy >
void accessor< Policy >::operator= ( const accessor< Policy > &  a)
inline

Definition at line 502 of file pytypes.h.

template<typename Policy >
template<typename T >
void accessor< Policy >::operator= ( T &&  value)
inline

Definition at line 504 of file pytypes.h.

template<typename Policy >
template<typename T >
void accessor< Policy >::operator= ( T &&  value)
inline

Definition at line 507 of file pytypes.h.

Member Data Documentation

template<typename Policy >
object accessor< Policy >::cache
mutable

Definition at line 536 of file pytypes.h.

template<typename Policy >
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 accessor< Policy >::key

Definition at line 512 of file pytypes.h.


The documentation for this class was generated from the following file:


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:44