SourceXtractorPlusPlus
0.8
Please provide a description of the project.
|
A bare bones implementation of SourceGroupInterface meant to be used to implement unit tests. More...
#include <SimpleSourceGroup.h>
Classes | |
class | iter |
Public Member Functions | |
virtual | ~SimpleSourceGroup ()=default |
iterator | begin () override |
iterator | end () override |
const_iterator | cbegin () override |
const_iterator | cend () override |
const_iterator | begin () const override |
const_iterator | end () const override |
void | addSource (std::shared_ptr< SourceInterface > source) override |
iterator | removeSource (iterator pos) override |
unsigned int | size () const override |
void | merge (const SourceGroupInterface &other) override |
![]() | |
template<typename SourceCollection > | |
void | addAllSources (const SourceCollection &sources) |
Convenient method to add all the sources of a collection. More... | |
Protected Member Functions | |
const Property & | getProperty (const PropertyId &property_id) const override |
void | setProperty (std::unique_ptr< Property > property, const PropertyId &property_id) override |
![]() | |
const Property & | getPropertyFromInterface (const SourceInterface &source, const PropertyId &property_id) const |
virtual | ~SourceInterface ()=default |
Destructor. More... | |
template<typename PropertyType > | |
const PropertyType & | getProperty (unsigned int index=0) const |
Convenience template method to call getProperty() with a more user-friendly syntax. More... | |
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. More... | |
template<typename PropertyType , typename... Args> | |
void | setProperty (Args...args) |
Private Attributes | |
std::list< std::shared_ptr < SourceInterface > > | m_sources |
PropertyHolder | m_property_holder |
Additional Inherited Members | |
![]() | |
using | iterator = GroupIterator< SourceInterface > |
using | const_iterator = GroupIterator< const SourceInterface > |
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 m_sources.
|
overridevirtual |
Implements SourceXtractor::SourceGroupInterface.
Definition at line 26 of file SimpleSourceGroup.cpp.
References m_sources.
|
overridevirtual |
Implements SourceXtractor::SourceGroupInterface.
Definition at line 42 of file SimpleSourceGroup.cpp.
References m_sources.
|
overridevirtual |
Implements SourceXtractor::SourceGroupInterface.
Definition at line 34 of file SimpleSourceGroup.cpp.
References m_sources.
|
overridevirtual |
Implements SourceXtractor::SourceGroupInterface.
Definition at line 38 of file SimpleSourceGroup.cpp.
References m_sources.
|
overridevirtual |
Implements SourceXtractor::SourceGroupInterface.
Definition at line 30 of file SimpleSourceGroup.cpp.
References m_sources.
|
overridevirtual |
Implements SourceXtractor::SourceGroupInterface.
Definition at line 46 of file SimpleSourceGroup.cpp.
References 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 65 of file SimpleSourceGroup.cpp.
References SourceXtractor::PropertyHolder::getProperty(), and m_property_holder.
|
overridevirtual |
Implements SourceXtractor::SourceGroupInterface.
Definition at line 60 of file SimpleSourceGroup.cpp.
References SourceXtractor::SourceGroupInterface::addAllSources().
|
overridevirtual |
Implements SourceXtractor::SourceGroupInterface.
Definition at line 54 of file SimpleSourceGroup.cpp.
References SourceXtractor::SourceGroupInterface::GroupIterator< T >::getImpl(), m_sources, and SourceXtractor::SimpleSourceGroup::iter::m_wrapped_it.
|
overrideprotectedvirtual |
Implements SourceXtractor::SourceInterface.
Definition at line 69 of file SimpleSourceGroup.cpp.
References m_property_holder, std::move(), and SourceXtractor::PropertyHolder::setProperty().
|
overridevirtual |
Implements SourceXtractor::SourceGroupInterface.
Definition at line 73 of file SimpleSourceGroup.cpp.
References m_sources.
|
private |
Definition at line 78 of file SimpleSourceGroup.h.
Referenced by getProperty(), and setProperty().
|
private |
Definition at line 76 of file SimpleSourceGroup.h.
Referenced by addSource(), begin(), cbegin(), cend(), end(), removeSource(), and size().