SourceXtractorPlusPlus 0.19
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
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
29namespace SourceXtractor {
30
32
33public:
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
49private:
50
52
53}; /* End of PixelCoordinateList class */
54
55} /* namespace SourceXtractor */
56
57#endif /* _SEIMPLEMENTATION_PIXELCOORDINATELIST_H */
58
PixelCoordinateList(std::vector< PixelCoordinate > coordinate_list)
const std::vector< PixelCoordinate > & getCoordinateList() const
bool contains(const PixelCoordinate &coord) const
virtual ~PixelCoordinateList()=default
std::vector< PixelCoordinate > m_coordinate_list
Base class for all Properties. (has no actual content)
Definition: Property.h:33
T find(T... args)
T move(T... args)
STL namespace.
A pixel coordinate made of two integers m_x and m_y.