GridMapIterator.hpp
Go to the documentation of this file.
1 /*
2  * GridMapIterator.hpp
3  *
4  * Created on: Sep 22, 2014
5  * Author: Péter Fankhauser
6  * Institute: ETH Zurich, ANYbotics
7  */
8 
9 #pragma once
10 
12 
13 // Eigen
14 #include <Eigen/Core>
15 
16 namespace grid_map {
17 
22 {
23 public:
24 
29  GridMapIterator(const grid_map::GridMap &gridMap);
30 
35  GridMapIterator(const GridMapIterator* other);
36 
41  bool operator !=(const GridMapIterator& other) const;
42 
48  Index operator *() const;
49 
56  const size_t& getLinearIndex() const;
57 
62  Index getUnwrappedIndex() const;
63 
68  virtual GridMapIterator& operator ++();
69 
74  GridMapIterator end() const;
75 
80  bool isPastEnd() const;
81 
82  protected:
83  // NOLINTBEGIN(misc-non-private-member-variables-in-classes)
86 
89 
91  size_t linearSize_;
92 
94  size_t linearIndex_;
95 
97  bool isPastEnd_;
98  // NOLINTEND(misc-non-private-member-variables-in-classes)
99 
100  public:
101  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
102 };
103 
104 } // namespace grid_map
105 
bool operator!=(const GridMapIterator &other) const
size_t linearIndex_
Linear index.
GridMapIterator end() const
bool isPastEnd_
Is iterator out of scope.
Size size_
Size of the buffer.
Eigen::Array2i Index
Definition: TypeDefs.hpp:22
const size_t & getLinearIndex() const
size_t linearSize_
Linear size of the data.
Eigen::Array2i Size
Definition: TypeDefs.hpp:23
GridMapIterator(const grid_map::GridMap &gridMap)
virtual GridMapIterator & operator++()
Index startIndex_
Start index of the circular buffer.


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