17 :
SubmapIterator(submap.getGridMap(), submap.getStartIndex(), submap.getSize())
23 :
SubmapIterator(gridMap, bufferRegion.getStartIndex(), bufferRegion.getSize())
29 const Size& submapSize)
bool incrementIndexForSubmap(Index &submapIndex, Index &index, const Index &submapTopLeftIndex, const Size &submapBufferSize, const Size &bufferSize, const Index &bufferStartIndex=Index::Zero())
bool isPastEnd_
Is iterator out of scope.
Index submapIndex_
Current index in the submap.
Index submapStartIndex_
Top left index of the submap.
Size submapSize_
Submap buffer size.
const Index & operator*() const
const Index & getStartIndex() const
const Size & getSize() const
Index startIndex_
Start index of the circular buffer.
const Index & getSubmapIndex() const
SubmapIterator(const grid_map::SubmapGeometry &submap)
bool operator!=(const SubmapIterator &other) const
const Size & getSubmapSize() const
Size size_
Size of the buffer.
Index index_
Current index.
SubmapIterator & operator++()