SourceXtractorPlusPlus  0.19
SourceXtractor++, the next generation SExtractor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExternalFlagTask.h
Go to the documentation of this file.
1 
23 #ifndef _SEIMPLEMENTATION_TASK_EXTERNALFLAGTASK_H
24 #define _SEIMPLEMENTATION_TASK_EXTERNALFLAGTASK_H
25 
31 
32 namespace SourceXtractor {
33 
34 namespace ExternalFlagCombineTypes {
35 struct Or;
36 struct And;
37 struct Min;
38 struct Max;
39 struct Most;
40 }
41 
47 template <typename Combine>
48 class ExternalFlagTask : public SourceTask {
49 
50 public:
51 
52  virtual ~ExternalFlagTask();
53 
54  ExternalFlagTask(const std::vector<std::shared_ptr<FlagImage>>& flag_images, unsigned int flag_instance);
55 
56  void computeProperties(SourceInterface& source) const override;
57 
58 private:
59 
61  unsigned int m_flag_instance;
62 
63 };
64 
67 
70 
73 
76 
79 
80 } /* namespace SourceXtractor */
81 
82 
83 #endif
void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
ExternalFlagTask(const std::vector< std::shared_ptr< FlagImage >> &flag_images, unsigned int flag_instance)
A Task that acts on a Source to compute one or more properties.
Definition: SourceTask.h:36
STL class.
std::vector< std::shared_ptr< FlagImage > > m_flag_images
The SourceInterface is an abstract &quot;source&quot; that has properties attached to it.
Task to produce the ExternalFlag Property.