cpp_template_pybind.h File Reference
#include <string>
#include <utility>
#include "pybind11/functional.h"
#include "pybind11/pybind11.h"
#include "pybind11/stl.h"
#include "drake/bindings/pydrake/pydrake_pybind.h"
#include "drake/bindings/pydrake/util/cpp_param_pybind.h"
Include dependency graph for cpp_template_pybind.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.




py::object GetOrInitTemplate (py::handle scope, const std::string &name, const std::string &template_cls_name, py::tuple args=py::tuple(), py::dict kwargs=py::dict())
void AddInstantiation (py::handle py_template, py::handle obj, py::tuple param)
std::string GetInstantiationName (py::handle py_template, py::tuple param)
template<typename T >
std::string TemporaryClassName (const std::string &name="TemporaryName")
 Provides a temporary, unique name for a class instantiation that will be passed to AddTemplateClass. More...
py::object AddTemplateClass (py::handle scope, const std::string &name, py::handle py_class, py::tuple param)
 Adds a template class instantiation. More...
template<typename Class , typename... Options>
py::class_< Class, Options... > DefineTemplateClassWithDefault (py::handle scope, const std::string &default_name, py::tuple param, const std::string &template_suffix="_")
 Provides a convenience wrapper for defining a template class instantiation and a default instantiation (if not already defined). More...
template<typename Func >
py::object AddTemplateFunction (py::handle scope, const std::string &name, Func &&func, py::tuple param)
 Declares a template function. More...
template<typename Method >
py::object AddTemplateMethod (py::handle scope, const std::string &name, Method &&method, py::tuple param)
 Declares a template method. More...