Store Sequence sequence location in a shared_ptr class
[mussa.git] / py / conserved_path.cpp
1 #include <boost/python/suite/indexing/vector_indexing_suite.hpp>
2 #include <boost/python.hpp>
3 #include <vector>
4 using namespace boost::python;
5
6 #include "alg/conserved_path.hpp"
7
8 void export_conserved_path()
9 {
10  
11   class_<std::vector<int> >("intvec")
12     .def(vector_indexing_suite<std::vector<int> >())
13   ;
14
15   class_<ConservedPath>("ConservedPath")
16     .def_readwrite("window_size", &ConservedPath::window_size)
17     .def_readwrite("score", &ConservedPath::score)
18     .def_readwrite("track_indexes", &ConservedPath::track_indexes)
19     //.add_property("track_indexes", //iterator<std::vector<int> >())
20     //    range(&ConservedPath::track_indexes.begin(),
21     //                                 &ConservedPath::track_indexes.end()))
22   ;
23 }