const Size & getSize() const
Index getIndexFromBufferIndex(const Index &bufferIndex, const Size &bufferSize, const Index &bufferStartIndex)
Size size_
Size of the buffer.
Index endIndex_
End index of the circular buffer.
CostMapIterator & operator=(const CostMapIterator &other)
Index startIndex_
Start index of the circular buffer.
bool incrementIndex(Index &index, const Size &bufferSize, const Index &bufferStartIndex=Index::Zero())
CostMapIterator & operator++()
CostMapIterator(const cost_map::CostMap &gridMap)
void boundIndexToRange(Index &index, const Size &bufferSize)
CostMapIterator end() const
bool operator!=(const CostMapIterator &other) const
bool isPastEnd_
Is iterator out of scope.
const Index & getStartIndex() const
Index index_
Current index.
const Index & operator*() const
const Index getUnwrappedIndex() const