Skip to content

Commit dc3c234

Browse files
committed
Make PixelCoordinateList moveable
1 parent c8d0f01 commit dc3c234

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

SEImplementation/SEImplementation/Property/PixelCoordinateList.h

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
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é
23
*
34
* This library is free software; you can redistribute it and/or modify it under
45
* the terms of the GNU Lesser General Public License as published by the Free
@@ -14,7 +15,7 @@
1415
* along with this library; if not, write to the Free Software Foundation, Inc.,
1516
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1617
*/
17-
/*
18+
/*
1819
* @file PixelCoordinateList.h
1920
* @author nikoapos
2021
*/
@@ -29,27 +30,30 @@
2930
namespace SourceXtractor {
3031

3132
class PixelCoordinateList : public Property {
32-
33+
3334
public:
34-
35+
3536
explicit PixelCoordinateList(std::vector<PixelCoordinate> coordinate_list)
3637
: m_coordinate_list(std::move(coordinate_list)) {
3738
}
3839

40+
PixelCoordinateList(const PixelCoordinateList&) = default;
41+
PixelCoordinateList(PixelCoordinateList&&) = default;
42+
3943
virtual ~PixelCoordinateList() = default;
40-
44+
4145
const std::vector<PixelCoordinate>& getCoordinateList() const {
4246
return m_coordinate_list;
4347
}
4448

4549
bool contains(const PixelCoordinate& coord) const {
4650
return std::find(m_coordinate_list.begin(), m_coordinate_list.end(), coord) != m_coordinate_list.end();
4751
}
48-
52+
4953
private:
5054

5155
std::vector<PixelCoordinate> m_coordinate_list;
52-
56+
5357
}; /* End of PixelCoordinateList class */
5458

5559
} /* namespace SourceXtractor */

0 commit comments

Comments
 (0)