PythonAccessor< Policy > Class Template Reference

#include <drake/common/proto/call_python.h>

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

◆ KeyType

using KeyType = typename Policy::KeyType

Constructor & Destructor Documentation

◆ PythonAccessor() [1/2]

PythonAccessor ( PythonRemoteVariable  obj,
const KeyType key 

◆ PythonAccessor() [2/2]

PythonAccessor ( const PythonAccessor< Policy > &  )

Member Function Documentation

◆ operator PythonRemoteVariable()

operator PythonRemoteVariable ( ) const

◆ operator=() [1/3]

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

◆ operator=() [2/3]

PythonRemoteVariable operator= ( const PythonRemoteVariable value)

◆ operator=() [3/3]

PythonRemoteVariable operator= ( const T &  value)

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