|
SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
|
A bare bones implementation of SourceGroupInterface meant to be used to implement unit tests. More...
#include <SimpleSourceGroup.h>


Protected Member Functions | |
| const Property & | getProperty (const PropertyId &property_id) const override |
| void | setProperty (std::unique_ptr< Property > property, const PropertyId &property_id) override |
Protected Member Functions inherited from SourceXtractor::SourceInterface | |
| virtual | ~SourceInterface ()=default |
| Destructor. | |
| template<typename PropertyType > | |
| const PropertyType & | getProperty (unsigned int index=0) const |
| Convenience template method to call getProperty() with a more user-friendly syntax. | |
| template<typename PropertyType , typename ... Args> | |
| void | setIndexedProperty (std::size_t index, Args... args) |
| Convenience template method to call setProperty() with a more user-friendly syntax. | |
| template<typename PropertyType , typename ... Args> | |
| void | setProperty (Args... args) |
Private Attributes | |
| std::list< SourceWrapper > | m_sources |
| PropertyHolder | m_property_holder |
Additional Inherited Members | |
Public Types inherited from SourceXtractor::SourceGroupInterface | |
| using | iterator = std::list<SourceWrapper>::iterator |
| using | const_iterator = std::list<SourceWrapper>::const_iterator |
A bare bones implementation of SourceGroupInterface meant to be used to implement unit tests.
Definition at line 39 of file SimpleSourceGroup.h.
|
virtualdefault |
|
overridevirtual |
Implements SourceXtractor::SourceGroupInterface.
Definition at line 50 of file SimpleSourceGroup.cpp.
References std::list< T >::emplace_back(), m_sources, and std::move().

|
overridevirtual |
Implements SourceXtractor::SourceGroupInterface.
Definition at line 42 of file SimpleSourceGroup.cpp.
References std::list< T >::cbegin(), and m_sources.

|
overridevirtual |
Implements SourceXtractor::SourceGroupInterface.
Definition at line 26 of file SimpleSourceGroup.cpp.
References std::list< T >::begin(), and m_sources.

|
overridevirtual |
Implements SourceXtractor::SourceGroupInterface.
Definition at line 34 of file SimpleSourceGroup.cpp.
References std::list< T >::cbegin(), and m_sources.

|
overridevirtual |
Implements SourceXtractor::SourceGroupInterface.
Definition at line 38 of file SimpleSourceGroup.cpp.
References std::list< T >::cend(), and m_sources.

|
overridevirtual |
Implements SourceXtractor::SourceGroupInterface.
Definition at line 46 of file SimpleSourceGroup.cpp.
References std::list< T >::cend(), and m_sources.

|
overridevirtual |
Implements SourceXtractor::SourceGroupInterface.
Definition at line 30 of file SimpleSourceGroup.cpp.
References std::list< T >::end(), and m_sources.

|
overrideprotectedvirtual |
Returns a reference to the requested property. The property may be computed if needed Throws a PropertyNotFoundException if the property cannot be provided.
Implements SourceXtractor::SourceInterface.
Definition at line 68 of file SimpleSourceGroup.cpp.
References SourceXtractor::PropertyHolder::getProperty(), and m_property_holder.

|
virtual |
Returns a reference to the requested property. The property may be computed if needed Throws a PropertyNotFoundException if the property cannot be provided.
Implements SourceXtractor::SourceInterface.
|
inline |
Convenience template method to call getProperty() with a more user-friendly syntax.
Definition at line 57 of file SourceInterface.h.
|
overridevirtual |
Implements SourceXtractor::SourceGroupInterface.
Definition at line 59 of file SimpleSourceGroup.cpp.
References SourceXtractor::PropertyHolder::clear(), std::list< T >::emplace_back(), m_property_holder, m_sources, and std::move().

|
overridevirtual |
Implements SourceXtractor::SourceGroupInterface.
Definition at line 54 of file SimpleSourceGroup.cpp.
References std::list< T >::erase(), and m_sources.

|
inline |
Definition at line 72 of file SourceInterface.h.
|
overrideprotectedvirtual |
Implements SourceXtractor::SourceInterface.
Definition at line 72 of file SimpleSourceGroup.cpp.
References m_property_holder, std::move(), and SourceXtractor::PropertyHolder::setProperty().

|
virtual |
Implements SourceXtractor::SourceInterface.
Implements SourceXtractor::SourceGroupInterface.
Definition at line 76 of file SimpleSourceGroup.cpp.
References m_sources, and std::list< T >::size().

|
private |
Definition at line 77 of file SimpleSourceGroup.h.
Referenced by getProperty(), merge(), and setProperty().
|
private |
Definition at line 76 of file SimpleSourceGroup.h.
Referenced by addSource(), begin(), begin(), cbegin(), cend(), end(), end(), merge(), removeSource(), and size().