5#ifndef __pinocchio_python_utils_comparable_hpp__
6#define __pinocchio_python_utils_comparable_hpp__
8#include <boost/python.hpp>
15 namespace bp = boost::python;
20 template<
class C,
bool has_comparison_operators = true>
21 struct ComparableVisitor
22 :
public bp::def_visitor<ComparableVisitor<C, has_comparison_operators>>
24 template<
class PyClass>
25 void visit(PyClass & cl)
const
27 cl.def(bp::self == bp::self).def(bp::self != bp::self);
32 struct ComparableVisitor<C, false> :
public bp::def_visitor<ComparableVisitor<C, false>>
34 template<
class PyClass>
35 void visit(PyClass &)
const
Main pinocchio namespace.