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.
const Index & getStartIndex() const
Index submapIndex_
Current index in the submap.
Index submapStartIndex_
Top left index of the submap.
Size submapSize_
Submap buffer size.
Index startIndex_
Start index of the circular buffer.
SubmapIterator(const grid_map::SubmapGeometry &submap)
Size size_
Size of the buffer.
const Index & getSubmapIndex() const
Index index_
Current index.
SubmapIterator & operator++()
const Index & operator*() const
bool operator!=(const SubmapIterator &other) const
const Size & getSubmapSize() const
const Size & getSize() const
SubmapIterator & operator=(const SubmapIterator &other)