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 
59  bool operator !=(const SubmapIterator& other) const;
60 
65  const Index& operator *() const;
66 
71  const Index& getSubmapIndex() const;
72 
78 
83  bool isPastEnd() const;
84 
89  const Size& getSubmapSize() const;
90 
91 private:
92 
95 
98 
101 
104 
107 
110 
113 
114  public:
115  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
116 };
117 
118 } // namespace grid_map
119 
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
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.
Eigen::Array2i Index
Definition: TypeDefs.hpp:22
Eigen::Array2i Size
Definition: TypeDefs.hpp:23
Index index_
Current index.
SubmapIterator & operator++()


grid_map_core
Author(s): Péter Fankhauser
autogenerated on Wed Jul 5 2023 02:23:35