5 #ifndef __pinocchio_python_utils_pickle_vector_hpp__ 
    6 #define __pinocchio_python_utils_pickle_vector_hpp__ 
    8 #include <boost/python.hpp> 
    9 #include <boost/python/tuple.hpp> 
   10 #include <boost/python/stl_iterator.hpp> 
   21     template<
typename VecType>
 
   26         return boost::python::make_tuple();
 
   29       static boost::python::tuple 
getstate(boost::python::object op)
 
   31         return boost::python::make_tuple(
 
   32           boost::python::list(boost::python::extract<const VecType &>(op)()));
 
   35       static void setstate(boost::python::object op, boost::python::tuple tup)
 
   37         if (boost::python::len(tup) > 0)
 
   39           VecType & 
o = boost::python::extract<VecType &>(op)();
 
   40           boost::python::stl_input_iterator<typename VecType::value_type> begin(tup[0]), end;
 
   57 #endif // ifndef __pinocchio_python_utils_pickle_vector_hpp__