Public Member Functions | Private Attributes
grid_map::SubmapIterator Class Reference

#include <SubmapIterator.hpp>

List of all members.

Public Member Functions

const IndexgetSubmapIndex () const
const SizegetSubmapSize () const
bool isPastEnd () const
bool operator!= (const SubmapIterator &other) const
const Indexoperator* () const
SubmapIteratoroperator++ ()
SubmapIteratoroperator= (const SubmapIterator &other)
 SubmapIterator (const grid_map::SubmapGeometry &submap)
 SubmapIterator (const grid_map::GridMap &gridMap, const grid_map::BufferRegion &bufferRegion)
 SubmapIterator (const grid_map::GridMap &gridMap, const Index &submapStartIndex, const Size &submapSize)
 SubmapIterator (const SubmapIterator *other)

Private Attributes

Index index_
 Current index.
bool isPastEnd_
 Is iterator out of scope.
Size size_
 Size of the buffer.
Index startIndex_
 Start index of the circular buffer.
Index submapIndex_
 Current index in the submap.
Size submapSize_
 Submap buffer size.
Index submapStartIndex_
 Top left index of the submap.

Detailed Description

Iterator class to iterate through a rectangular part of the map (submap). Before using this iterator, make sure that the requested submap is actually contained in the grid map.

Definition at line 24 of file SubmapIterator.hpp.

Constructor & Destructor Documentation


submapthe submap geometry to iterate over.

Definition at line 16 of file SubmapIterator.cpp.


submapthe buffer region of a grid map to iterate over.

Definition at line 21 of file SubmapIterator.cpp.

grid_map::SubmapIterator::SubmapIterator ( const grid_map::GridMap gridMap,
const Index submapStartIndex,
const Size submapSize 


gridMapthe grid map to iterate on.
submapStartIndexthe start index of the submap, typically top-left index.
submapSizethe size of the submap to iterate on.

Definition at line 28 of file SubmapIterator.cpp.

Copy constructor.

otherthe object to copy.

Definition at line 40 of file SubmapIterator.cpp.

Member Function Documentation

Get the current index in the submap.

the current index in the submap.

Definition at line 73 of file SubmapIterator.cpp.

Returns the size of the submap covered by the iterator.

the size of the submap covered by the iterator.

Definition at line 90 of file SubmapIterator.cpp.

Indicates if iterator is past end.

true if iterator is out of scope, false if end has not been reached.

Definition at line 85 of file SubmapIterator.cpp.

bool grid_map::SubmapIterator::operator!= ( const SubmapIterator other) const

Compare to another iterator.

whether the current iterator points to a different address than the other one.

Definition at line 63 of file SubmapIterator.cpp.

const Index & grid_map::SubmapIterator::operator* ( ) const

Dereference the iterator with const.

the value to which the iterator is pointing.

Definition at line 68 of file SubmapIterator.cpp.

SubmapIterator & grid_map::SubmapIterator::operator++ ( )

Increase the iterator to the next element.

a reference to the updated iterator.

Definition at line 78 of file SubmapIterator.cpp.

SubmapIterator & grid_map::SubmapIterator::operator= ( const SubmapIterator other)

Assignment operator.

iteratorthe iterator to copy data from.
a reference to *this.

Definition at line 51 of file SubmapIterator.cpp.

Member Data Documentation

Current index.

Definition at line 107 of file SubmapIterator.hpp.

Is iterator out of scope.

Definition at line 119 of file SubmapIterator.hpp.

Size of the buffer.

Definition at line 101 of file SubmapIterator.hpp.

Start index of the circular buffer.

Definition at line 104 of file SubmapIterator.hpp.

Current index in the submap.

Definition at line 116 of file SubmapIterator.hpp.

Submap buffer size.

Definition at line 110 of file SubmapIterator.hpp.

Top left index of the submap.

Definition at line 113 of file SubmapIterator.hpp.

The documentation for this class was generated from the following files:

Author(s): P├ęter Fankhauser
autogenerated on Mon Oct 9 2017 03:09:17