18 #ifndef __tsid_python_test_hpp__ 19 #define __tsid_python_test_hpp__ 29 namespace bp = boost::python;
33 :
public boost::python::def_visitor< ConstPythonVisitor<T> >
35 template<
class PyClass>
40 .def(bp::init<>(
"Default Constructor"))
41 .def(
"print_all", &T::print)
42 .def(
"append", &T::append_eq, bp::arg(
"data"))
43 .def(
"append", &T::append_ineq, bp::arg(
"data"))
44 .def(
"append", &T::append_bound, bp::arg(
"data"))
48 static void expose(
const std::string & class_name)
50 std::string doc =
"ConstraintLevel info.";
51 bp::class_<T>(class_name.c_str(),
60 :
public boost::python::def_visitor< HQPPythonVisitor<T> >
62 template<
class PyClass>
67 .def(bp::init<>(
"Default Constructor"))
68 .def(
"print_all", &T::print)
69 .def(
"resize", &T::resize, bp::arg(
"i"))
70 .def(
"append", &T::append_helper, bp::arg(
"constraintLevel"))
74 static void expose(
const std::string & class_name)
76 std::string doc =
"HQPdata info.";
77 bp::class_<T>(class_name.c_str(),
88 #endif // ifndef __tsid_python_test_hpp__
void visit(PyClass &cl) const
Definition: HQPData.hpp:37
static void expose(const std::string &class_name)
Definition: HQPData.hpp:74
Definition: HQPData.hpp:32
void visit(PyClass &cl) const
Definition: HQPData.hpp:64
Definition: constraint-bound.hpp:26
static void expose(const std::string &class_name)
Definition: HQPData.hpp:48
Definition: HQPData.hpp:59