SourceXtractorPlusPlus 0.21
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
27
28#include <algorithm>
29#include <vector>
30
31namespace SourceXtractor {
32
34
35public:
36
40
41 virtual ~PixelCoordinateList() = default;
42
46
47 bool contains(const PixelCoordinate& coord) const {
48 return std::find(m_coordinate_list.begin(), m_coordinate_list.end(), coord) != m_coordinate_list.end();
49 }
50
51private:
52
54
55}; /* End of PixelCoordinateList class */
56
57} /* namespace SourceXtractor */
58
59#endif /* _SEIMPLEMENTATION_PIXELCOORDINATELIST_H */
60
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.