Last change
on this file since 2528 was 2523, checked in by Takeshi Nakazato, 12 years ago |
New Development: No
JIRA Issue: No
Ready for Test: Yes
Interface Changes: No
What Interface Changed: Please list interface changes
Test Programs: List test programs
Put in Release Notes: Yes/No
Module(s): Module Names change impacts.
Description: Describe your changes here...
Add python_Iterator.cpp that I forgot to add in the previous commit.
|
File size:
561 bytes
|
Rev | Line | |
---|
[2523] | 1 | #include <boost/python.hpp>
|
---|
| 2 | #include <boost/noncopyable.hpp>
|
---|
| 3 | #include <vector>
|
---|
| 4 |
|
---|
| 5 | #include "STIdxIter.h"
|
---|
| 6 |
|
---|
| 7 | using namespace boost::python;
|
---|
| 8 |
|
---|
| 9 | namespace 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.