SourceXtractorPlusPlus  0.11
Please provide a description of the project.
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 
SourceXtractor::PixelCoordinateList
Definition: PixelCoordinateList.h:31
SourceXtractor::PixelCoordinate
A pixel coordinate made of two integers m_x and m_y.
Definition: PixelCoordinate.h:37
std::move
T move(T... args)
SourceXtractor::Property
Base class for all Properties. (has no actual content)
Definition: Property.h:33
std::vector
STL class.
std::find
T find(T... args)
SourceXtractor::PixelCoordinateList::m_coordinate_list
std::vector< PixelCoordinate > m_coordinate_list
Definition: PixelCoordinateList.h:51
SourceXtractor::PixelCoordinateList::getCoordinateList
const std::vector< PixelCoordinate > & getCoordinateList() const
Definition: PixelCoordinateList.h:41
SourceXtractor
Definition: Aperture.h:30
Property.h
SourceXtractor::PixelCoordinateList::contains
bool contains(const PixelCoordinate &coord) const
Definition: PixelCoordinateList.h:45
SourceXtractor::PixelCoordinateList::PixelCoordinateList
PixelCoordinateList(std::vector< PixelCoordinate > coordinate_list)
Definition: PixelCoordinateList.h:35
std
STL namespace.
PixelCoordinate.h
SourceXtractor::PixelCoordinateList::~PixelCoordinateList
virtual ~PixelCoordinateList()=default