source: trunk/src/python_Iterator.cpp@ 2599

Last change on this file since 2599 was 2580, checked in by ShinnosukeKawakami, 12 years ago

hpc33 merged asap-trunk

File size: 561 bytes
Line 
1#include <boost/python.hpp>
2#include <boost/noncopyable.hpp>
3#include <vector>
4
5#include "STIdxIter.h"
6
7using namespace boost::python;
8
9namespace asap {
10 namespace python {
11
12 void python_Iterator() {
13 class_<STIdxIterAcc>("iterator")
14 .def( init < const string &, const vector<string> & > () )
15 .def("current", &STIdxIterAcc::currentSTL)
16 .def("pastEnd", &STIdxIterAcc::pastEnd)
17 .def("next", &STIdxIterAcc::next)
18 .def("getrows", &STIdxIterAcc::getRowsSTL)
19 ;
20 };
21
22 } //namespace python
23} // namespace asap
Note: See TracBrowser for help on using the repository browser.