Drake
pydrake_pybind.h File Reference
#include "pybind11/pybind11.h"
Include dependency graph for pydrake_pybind.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  overload_cast_impl< Return, Args >
 

Namespaces

 drake
 
 drake::pydrake
 

Macros

#define PYDRAKE_PREVENT_PYTHON3_MODULE_REIMPORT(variable)
 

Functions

template<typename PyClass >
void DefCopyAndDeepCopy (PyClass *ppy_class)
 Binds Pythonic __copy__ and __deepcopy__ for a class's copy constructor. More...
 
void ExecuteExtraPythonCode (py::module m)
 Executes Python code to introduce additional symbols for a given module. More...
 

Variables

const auto py_reference = py::return_value_policy::reference
 Used when returning T& orconst T&`, as pybind's default behavior is to copy lvalue references. More...
 
const auto py_reference_internal = py::return_value_policy::reference_internal
 Used when returning references to objects that are internally owned by self. More...
 
template<typename Return , typename... Args>
constexpr auto overload_cast_explicit = overload_cast_impl<Return, Args...>{}
 Provides option to provide explicit signature when py::overload_cast<Args...> fails to infer the Return argument. More...
 

Macro Definition Documentation

◆ PYDRAKE_PREVENT_PYTHON3_MODULE_REIMPORT

#define PYDRAKE_PREVENT_PYTHON3_MODULE_REIMPORT (   variable)