18 #ifndef __tsid_python_test_hpp__ 
   19 #define __tsid_python_test_hpp__ 
   27 namespace bp = boost::python;
 
   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)
 
Definition: constraint-bound.hpp:25
 
Definition: HQPData.hpp:31
 
void visit(PyClass &cl) const
Definition: HQPData.hpp:34
 
static void expose(const std::string &class_name)
Definition: HQPData.hpp:42
 
Definition: HQPData.hpp:51
 
void visit(PyClass &cl) const
Definition: HQPData.hpp:54
 
static void expose(const std::string &class_name)
Definition: HQPData.hpp:61