SourceXtractorPlusPlus  0.15
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PixelCoordinateList.h
Go to the documentation of this file.
1 
17 /*
18  * @file PixelCoordinateList.h
19  * @author nikoapos
20  */
21 
22 #ifndef _SEIMPLEMENTATION_PIXELCOORDINATELIST_H
23 #define _SEIMPLEMENTATION_PIXELCOORDINATELIST_H
24 
25 #include <algorithm>
28 
29 namespace SourceXtractor {
30 
31 class PixelCoordinateList : public Property {
32 
33 public:
34 
36  : m_coordinate_list(std::move(coordinate_list)) {
37  }
38 
39  virtual ~PixelCoordinateList() = default;
40 
42  return m_coordinate_list;
43  }
44 
45  bool contains(const PixelCoordinate& coord) const {
46  return std::find(m_coordinate_list.begin(), m_coordinate_list.end(), coord) != m_coordinate_list.end();
47  }
48 
49 private:
50 
52 
53 }; /* End of PixelCoordinateList class */
54 
55 } /* namespace SourceXtractor */
56 
57 #endif /* _SEIMPLEMENTATION_PIXELCOORDINATELIST_H */
58 
std::vector< PixelCoordinate > m_coordinate_list
virtual ~PixelCoordinateList()=default
bool contains(const PixelCoordinate &coord) const
Base class for all Properties. (has no actual content)
Definition: Property.h:33
PixelCoordinateList(std::vector< PixelCoordinate > coordinate_list)
A pixel coordinate made of two integers m_x and m_y.
T move(T...args)
T find(T...args)
STL class.
const std::vector< PixelCoordinate > & getCoordinateList() const