18 #ifndef __tsid_python_test_hpp__ 19 #define __tsid_python_test_hpp__ 31 :
public boost::python::def_visitor<ConstPythonVisitor<T> > {
32 template <
class PyClass>
35 cl.def(bp::init<>(
"Default Constructor"))
36 .def(
"print_all", &T::print)
37 .def(
"append", &T::append_eq, bp::arg(
"data"))
38 .def(
"append", &T::append_ineq, bp::arg(
"data"))
39 .def(
"append", &T::append_bound, bp::arg(
"data"));
42 static void expose(
const std::string& class_name) {
43 std::string doc =
"ConstraintLevel info.";
44 bp::class_<T>(class_name.c_str(), doc.c_str(), bp::no_init)
51 :
public boost::python::def_visitor<HQPPythonVisitor<T> > {
52 template <
class PyClass>
55 cl.def(bp::init<>(
"Default Constructor"))
56 .def(
"print_all", &T::print)
57 .def(
"resize", &T::resize, bp::arg(
"i"))
58 .def(
"append", &T::append_helper, bp::arg(
"constraintLevel"));
61 static void expose(
const std::string& class_name) {
62 std::string doc =
"HQPdata info.";
63 bp::class_<T>(class_name.c_str(), doc.c_str(), bp::no_init)
71 #endif // ifndef __tsid_python_test_hpp__
void visit(PyClass &cl) const
void def(const char *name, Func func)
static void expose(const std::string &class_name)
void visit(PyClass &cl) const
static void expose(const std::string &class_name)