Cluster.hpp
Go to the documentation of this file.
1 
28 /*
29  * Cluster.hpp
30  *
31  * @date 17.06.2017
32  * @author Johan M. von Behren <johan@vonbehren.eu>
33  */
34 
35 #ifndef LVR2_UTIL_CLUSTER_H_
36 #define LVR2_UTIL_CLUSTER_H_
37 
38 #include <vector>
39 
40 using std::vector;
41 
42 namespace lvr2
43 {
44 
49 template <typename HandleT>
50 struct Cluster
51 {
52 public:
53  size_t size() const { return handles.size(); }
54 
55  // Methods for range-based for-loops
56  decltype(auto) begin() const { return handles.begin(); }
57  decltype(auto) end() const { return handles.end(); }
58 
59  vector<HandleT> handles;
60 };
61 
62 } // namespace lvr2
63 
64 #endif /* LVR2_UTIL_CLUSTER_H_ */
vector< HandleT > handles
Definition: Cluster.hpp:59
decltype(auto) begin() const
Definition: Cluster.hpp:56
size_t size() const
Definition: Cluster.hpp:53
Represents a group of handles, which are somehow connected.
Definition: Cluster.hpp:50
decltype(auto) end() const
Definition: Cluster.hpp:57


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:06