|
SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
|
The SourceInterface is an abstract "source" that has properties attached to it. More...
#include <SourceInterface.h>

Public Member Functions | |
| 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) |
| virtual const Property & | getProperty (const PropertyId &property_id) const =0 |
| virtual void | setProperty (std::unique_ptr< Property > property, const PropertyId &property_id)=0 |
The SourceInterface is an abstract "source" that has properties attached to it.
Properties are accessed through the templated method getProperty<>()/setProperty<>().
Actual implementation in sub-classed is done by overriding the virtual getProperty()/setProperty()
Definition at line 46 of file SourceInterface.h.
|
virtualdefault |
Destructor.
|
pure virtual |
Returns a reference to the requested property. The property may be computed if needed Throws a PropertyNotFoundException if the property cannot be provided.
Implemented in SourceXtractor::SimpleSource, SourceXtractor::SimpleSourceGroup, SourceXtractor::SourceGroupInterface::SourceWrapper, SourceXtractor::SourceGroupWithOnDemandProperties, SourceXtractor::SourceGroupWithOnDemandProperties::EntangledSource, SourceXtractor::SourceWithOnDemandProperties, SourceXtractor::SimpleSource, SourceXtractor::SimpleSourceGroup, SourceXtractor::SourceGroupInterface::SourceWrapper, SourceXtractor::SourceGroupInterface, SourceXtractor::SourceGroupWithOnDemandProperties, and SourceXtractor::SourceWithOnDemandProperties.
|
inline |
Convenience template method to call getProperty() with a more user-friendly syntax.
Definition at line 57 of file SourceInterface.h.
References getProperty().
Referenced by getProperty().

|
inline |
Convenience template method to call setProperty() with a more user-friendly syntax.
Definition at line 64 of file SourceInterface.h.
References setProperty().

|
inline |
Definition at line 72 of file SourceInterface.h.
Referenced by setIndexedProperty().
|
pure virtual |
Implemented in SourceXtractor::SimpleSource, SourceXtractor::SimpleSourceGroup, SourceXtractor::SourceGroupInterface::SourceWrapper, SourceXtractor::SourceGroupWithOnDemandProperties, SourceXtractor::SourceGroupWithOnDemandProperties::EntangledSource, SourceXtractor::SourceWithOnDemandProperties, SourceXtractor::SimpleSource, SourceXtractor::SimpleSourceGroup, SourceXtractor::SourceGroupInterface::SourceWrapper, SourceXtractor::SourceGroupInterface, SourceXtractor::SourceGroupWithOnDemandProperties, and SourceXtractor::SourceWithOnDemandProperties.