SubmapIterator.hpp
Go to the documentation of this file.
1 /*
2  * SubmapIterator.hpp
3  *
4  * Created on: Sep 12, 2014
5  * Author: Péter Fankhauser
6  * Institute: ETH Zurich, ANYbotics
7  */
8 
9 #pragma once
10 
14 
15 #include <Eigen/Core>
16 
17 namespace grid_map {
18 
25 {
26 public:
27 
33 
38  SubmapIterator(const grid_map::GridMap& gridMap, const grid_map::BufferRegion& bufferRegion);
39 
46  SubmapIterator(const grid_map::GridMap& gridMap, const Index& submapStartIndex,
47  const Size& submapSize);
48 
53  SubmapIterator(const SubmapIterator* other);
54 
61 
66  bool operator !=(const SubmapIterator& other) const;
67 
72  const Index& operator *() const;
73 
78  const Index& getSubmapIndex() const;
79 
85 
90  bool isPastEnd() const;
91 
96  const Size& getSubmapSize() const;
97 
98 private:
99 
102 
105 
108 
111 
114 
117 
120 
121  public:
122  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
123 };
124 
125 } /* namespace */
Eigen::Array2i Index
Definition: TypeDefs.hpp:22
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.
Eigen::Array2i Size
Definition: TypeDefs.hpp:23
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
SubmapIterator & operator=(const SubmapIterator &other)


grid_map_core
Author(s): Péter Fankhauser
autogenerated on Sun Sep 13 2020 03:15:22