Last change
on this file since 2937 was 2921, checked in by Takeshi Nakazato, 11 years ago |
New Development: No
JIRA Issue: No
Ready for Test: Yes
Interface Changes: Yes
What Interface Changed: Replaced C++ implementation of python iterator with
STIdxIter2 (was STIdxIterAcc)
Test Programs: List test programs
Put in Release Notes: Yes/No
Module(s): Module Names change impacts.
Description: Describe your changes here...
Removed STIdxIter classes except STIdxIter2. Implementation of Python
iterator is replaced with STIdxITer2.
|
File size:
581 bytes
|
Line | |
---|
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_<STIdxIter2>("iterator")
|
---|
14 | .def( init < const string &, const vector<string> & > () )
|
---|
15 | #ifdef HAVE_LIBPYRAP
|
---|
16 | .def("current", &STIdxIter2::currentValue)
|
---|
17 | #endif
|
---|
18 | .def("pastEnd", &STIdxIter2::pastEnd)
|
---|
19 | .def("next", &STIdxIter2::next)
|
---|
20 | .def("getrows", &STIdxIter2::getRowsSTL)
|
---|
21 | ;
|
---|
22 | };
|
---|
23 |
|
---|
24 | } //namespace python
|
---|
25 | } // namespace asap
|
---|
Note:
See
TracBrowser
for help on using the repository browser.