SourceXtractorPlusPlus
1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEImplementation
SEImplementation
Property
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 "
SEUtils/PixelCoordinate.h
"
26
#include "
SEFramework/Property/Property.h
"
27
28
#include <algorithm>
29
#include <vector>
30
31
namespace
SourceXtractor
{
32
33
class
PixelCoordinateList
:
public
Property
{
34
35
public
:
36
37
explicit
PixelCoordinateList
(
std::vector<PixelCoordinate>
coordinate_list)
38
:
m_coordinate_list
(
std
::
move
(coordinate_list)) {
39
}
40
41
virtual
~PixelCoordinateList
() =
default
;
42
43
const
std::vector<PixelCoordinate>
&
getCoordinateList
()
const
{
44
return
m_coordinate_list
;
45
}
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
51
private
:
52
53
std::vector<PixelCoordinate>
m_coordinate_list
;
54
55
};
/* End of PixelCoordinateList class */
56
57
}
/* namespace SourceXtractor */
58
59
#endif
/* _SEIMPLEMENTATION_PIXELCOORDINATELIST_H */
60
PixelCoordinate.h
Property.h
SourceXtractor::PixelCoordinateList::PixelCoordinateList
PixelCoordinateList(std::vector< PixelCoordinate > coordinate_list)
Definition
PixelCoordinateList.h:37
SourceXtractor::PixelCoordinateList::getCoordinateList
const std::vector< PixelCoordinate > & getCoordinateList() const
Definition
PixelCoordinateList.h:43
SourceXtractor::PixelCoordinateList::contains
bool contains(const PixelCoordinate &coord) const
Definition
PixelCoordinateList.h:47
SourceXtractor::PixelCoordinateList::~PixelCoordinateList
virtual ~PixelCoordinateList()=default
SourceXtractor::PixelCoordinateList::m_coordinate_list
std::vector< PixelCoordinate > m_coordinate_list
Definition
PixelCoordinateList.h:53
SourceXtractor::Property
Base class for all Properties. (has no actual content)
Definition
Property.h:33
std::find
T find(T... args)
std::move
T move(T... args)
SourceXtractor
Definition
Aperture.h:30
std
STL namespace.
SourceXtractor::PixelCoordinate
A pixel coordinate made of two integers m_x and m_y.
Definition
PixelCoordinate.h:37
std::vector
Generated by
1.14.0