Drake
cpp_param_pybind.h File Reference

Provides a mechanism to map C++ types to canonical Python types. More...

#include <string>
#include <typeinfo>
#include <vector>
#include "pybind11/pybind11.h"
#include "drake/bindings/pydrake/pydrake_pybind.h"
#include "drake/bindings/pydrake/util/type_pack.h"
Include dependency graph for cpp_param_pybind.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 drake
 
 drake::pydrake
 
 drake::pydrake::internal
 

Functions

py::object GetParamAliases ()
 
py::object GetPyParamScalarImpl (const std::type_info &tinfo)
 
template<typename T >
py::object GetPyParamScalarImpl (type_pack< T >={})
 
template<typename T , T Value>
py::object GetPyParamScalarImpl (type_pack< std::integral_constant< T, Value >>={})
 
template<typename... Ts>
py::tuple GetPyParam (type_pack< Ts... >={})
 Gets the canonical Python parameters for each C++ type. More...
 

Detailed Description

Provides a mechanism to map C++ types to canonical Python types.