|
1 | | -/** Copyright © 2019 Université de Genève, LMU Munich - Faculty of Physics, IAP-CNRS/Sorbonne Université |
| 1 | +/** |
| 2 | + * Copyright © 2019-2022 Université de Genève, LMU Munich - Faculty of Physics, IAP-CNRS/Sorbonne Université |
2 | 3 | * |
3 | 4 | * This library is free software; you can redistribute it and/or modify it under |
4 | 5 | * the terms of the GNU Lesser General Public License as published by the Free |
|
14 | 15 | * along with this library; if not, write to the Free Software Foundation, Inc., |
15 | 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
16 | 17 | */ |
17 | | -/* |
| 18 | +/* |
18 | 19 | * @file PixelCoordinateList.h |
19 | 20 | * @author nikoapos |
20 | 21 | */ |
|
29 | 30 | namespace SourceXtractor { |
30 | 31 |
|
31 | 32 | class PixelCoordinateList : public Property { |
32 | | - |
| 33 | + |
33 | 34 | public: |
34 | | - |
| 35 | + |
35 | 36 | explicit PixelCoordinateList(std::vector<PixelCoordinate> coordinate_list) |
36 | 37 | : m_coordinate_list(std::move(coordinate_list)) { |
37 | 38 | } |
38 | 39 |
|
| 40 | + PixelCoordinateList(const PixelCoordinateList&) = default; |
| 41 | + PixelCoordinateList(PixelCoordinateList&&) = default; |
| 42 | + |
39 | 43 | virtual ~PixelCoordinateList() = default; |
40 | | - |
| 44 | + |
41 | 45 | const std::vector<PixelCoordinate>& getCoordinateList() const { |
42 | 46 | return m_coordinate_list; |
43 | 47 | } |
44 | 48 |
|
45 | 49 | bool contains(const PixelCoordinate& coord) const { |
46 | 50 | return std::find(m_coordinate_list.begin(), m_coordinate_list.end(), coord) != m_coordinate_list.end(); |
47 | 51 | } |
48 | | - |
| 52 | + |
49 | 53 | private: |
50 | 54 |
|
51 | 55 | std::vector<PixelCoordinate> m_coordinate_list; |
52 | | - |
| 56 | + |
53 | 57 | }; /* End of PixelCoordinateList class */ |
54 | 58 |
|
55 | 59 | } /* namespace SourceXtractor */ |
|
0 commit comments