Program Listing for File Cluster.hpp
↰ Return to documentation for file (include/lvr2/util/Cluster.hpp)
/*
* Cluster.hpp
*
* @date 17.06.2017
* @author Johan M. von Behren <johan@vonbehren.eu>
*/
#ifndef LVR2_UTIL_CLUSTER_H_
#define LVR2_UTIL_CLUSTER_H_
#include <vector>
using std::vector;
namespace lvr2
{
template <typename HandleT>
struct Cluster
{
public:
size_t size() const { return handles.size(); }
// Methods for range-based for-loops
decltype(auto) begin() const { return handles.begin(); }
decltype(auto) end() const { return handles.end(); }
vector<HandleT> handles;
};
} // namespace lvr2
#endif /* LVR2_UTIL_CLUSTER_H_ */