SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SimpleSourceGroup.h
Go to the documentation of this file.
1
17/*
18 * @file SimpleSourceGroup.h
19 * @author nikoapos
20 */
21
22#ifndef _SEFRAMEWORK_SIMPLESOURCEGROUP_H
23#define _SEFRAMEWORK_SIMPLESOURCEGROUP_H
24
25#include <list>
26
29
30namespace SourceXtractor {
31
40
41public:
42
43 virtual ~SimpleSourceGroup() = default;
44
45 iterator begin() override;
46
47 iterator end() override;
48
49 const_iterator cbegin() const override;
50
51 const_iterator cend() const override;
52
53 const_iterator begin() const override;
54
55 const_iterator end() const override;
56
58
60
61 unsigned int size() const override;
62
63 void merge(SourceGroupInterface&& other) override;
64
67
68protected:
69
70 const Property& getProperty(const PropertyId& property_id) const override;
71
73
74private:
75
78
79}; /* End of SimpleSourceGroup class */
80
81} /* namespace SourceXtractor */
82
83#endif /* _SEFRAMEWORK_SIMPLESOURCEGROUP_H */
84
A class providing a simple implementation of a container of properties.
Identifier used to set and retrieve properties.
Definition PropertyId.h:40
Base class for all Properties. (has no actual content)
Definition Property.h:33
A bare bones implementation of SourceGroupInterface meant to be used to implement unit tests.
iterator removeSource(iterator pos) override
void setProperty(std::unique_ptr< Property > property, const PropertyId &property_id) override
unsigned int size() const override
const_iterator cbegin() const override
virtual ~SimpleSourceGroup()=default
void merge(SourceGroupInterface &&other) override
const_iterator cend() const override
std::list< SourceWrapper > m_sources
const Property & getProperty(const PropertyId &property_id) const override
void addSource(std::unique_ptr< SourceInterface > source) override
Defines the interface used to group sources.
std::list< SourceWrapper >::const_iterator const_iterator
std::list< SourceWrapper >::iterator iterator
const PropertyType & getProperty(unsigned int index=0) const
Convenience template method to call getProperty() with a more user-friendly syntax.