Drake
PythonAccessor< Policy > Class Template Reference

#include <common/proto/call_python.h>

Inheritance diagram for PythonAccessor< Policy >:
[legend]
Collaboration diagram for PythonAccessor< Policy >:
[legend]

Public Types

using KeyType = typename Policy::KeyType
 

Public Member Functions

 PythonAccessor (PythonRemoteVariable obj, const KeyType &key)
 
 PythonAccessor (const PythonAccessor &)=default
 
 operator PythonRemoteVariable () const
 
PythonRemoteVariable operator= (const PythonAccessor &value)
 
PythonRemoteVariable operator= (const PythonRemoteVariable &value)
 
template<typename T >
PythonRemoteVariable operator= (const T &value)
 
- Public Member Functions inherited from PythonApi< PythonAccessor< Policy > >
PythonRemoteVariable operator() (Types...args) const
 Calls object with given arguments, returning the remote result. More...
 
PythonAttrAccessor attr (const std::string &name) const
 Accesses an attribute. More...
 
PythonItemAccessor operator[] (Type key) const
 Accesses an item. More...
 
PythonItemAccessor slice (Types...args) const
 Accesses a NumPy-friendly slice. More...
 

Member Typedef Documentation

using KeyType = typename Policy::KeyType

Constructor & Destructor Documentation

PythonAccessor ( PythonRemoteVariable  obj,
const KeyType key 
)
inline
PythonAccessor ( const PythonAccessor< Policy > &  )
default

Member Function Documentation

operator PythonRemoteVariable ( ) const
inline
PythonRemoteVariable operator= ( const PythonAccessor< Policy > &  value)
inline
PythonRemoteVariable operator= ( const PythonRemoteVariable value)
inline
PythonRemoteVariable operator= ( const T &  value)
inline

Here is the call graph for this function:


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