MCPcopy Create free account
hub / github.com/comaps/comaps / Next

Method Next

generator/pygen/pygen.cpp:223–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221 MwmIter(boost::shared_ptr<Mwm> const & mwm) : m_mwm(mwm) {}
222
223 FeatureTypeWrapper Next()
224 {
225 if (m_current == m_mwm->Size())
226 {
227 PyErr_SetNone(PyExc_StopIteration);
228 bp::throw_error_already_set();
229 }
230
231 return m_mwm->GetFeatureByIndex(m_current++);
232 }
233
234private:
235 boost::shared_ptr<Mwm> m_mwm;

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.45
GetFeatureByIndexMethod · 0.45

Tested by

no test coverage detected