SourceXtractorPlusPlus
0.13
Please provide a description of the project.
|
Defines the interface used to group sources. More...
#include <SourceGroupInterface.h>
Classes | |
struct | is_shared_ptr |
struct | is_shared_ptr< std::shared_ptr< T > > |
class | SourceWrapper |
Public Types | |
using | iterator = std::list< SourceWrapper >::iterator |
using | const_iterator = std::list< SourceWrapper >::const_iterator |
Public Member Functions | |
virtual iterator | begin ()=0 |
virtual iterator | end ()=0 |
virtual const_iterator | cbegin ()=0 |
virtual const_iterator | cend ()=0 |
virtual const_iterator | begin () const =0 |
virtual const_iterator | end () const =0 |
virtual void | addSource (std::shared_ptr< SourceInterface > source)=0 |
virtual iterator | removeSource (iterator pos)=0 |
virtual void | merge (const SourceGroupInterface &other)=0 |
virtual unsigned int | size () const =0 |
template<typename SourceCollection > | |
void | addAllSources (const SourceCollection &sources) |
Convenient method to add all the sources of a collection. 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... | |
virtual const Property & | getProperty (const PropertyId &property_id) const=0 |
template<typename PropertyType , typename ... Args> | |
void | setProperty (Args... args) |
virtual void | setProperty (std::unique_ptr< Property > property, const PropertyId &property_id)=0 |
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... | |
Private Types | |
template<typename Collection > | |
using | CollectionType = typename std::iterator_traits< typename Collection::iterator >::value_type |
Additional Inherited Members | |
![]() | |
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) |
virtual const Property & | getProperty (const PropertyId &property_id) const =0 |
virtual void | setProperty (std::unique_ptr< Property > property, const PropertyId &property_id)=0 |
Defines the interface used to group sources.
Warning: please note that the order in which the sources are added to a group is not preserved.
Definition at line 37 of file SourceGroupInterface.h.
|
private |
Definition at line 40 of file SourceGroupInterface.h.
using SourceXtractor::SourceGroupInterface::const_iterator = std::list<SourceWrapper>::const_iterator |
Definition at line 82 of file SourceGroupInterface.h.
Definition at line 81 of file SourceGroupInterface.h.
|
inline |
Convenient method to add all the sources of a collection.
Definition at line 98 of file SourceGroupInterface.h.
References addSource().
|
pure virtual |
Implemented in SourceXtractor::SourceGroupWithOnDemandProperties, and SourceXtractor::SimpleSourceGroup.
Referenced by addAllSources(), and SourceXtractor::Cleaning::deblend().
|
pure virtual |
Implemented in SourceXtractor::SourceGroupWithOnDemandProperties, and SourceXtractor::SimpleSourceGroup.
|
pure virtual |
Implemented in SourceXtractor::SourceGroupWithOnDemandProperties, and SourceXtractor::SimpleSourceGroup.
Referenced by SourceXtractor::MeasurementFrameGroupRectangleTask::computeProperties(), SourceXtractor::JacobianGroupTask::computeProperties(), SourceXtractor::FlexibleModelFittingTask::createFrameModel(), SourceXtractor::FlexibleModelFittingTask::createImageCopy(), SourceXtractor::FlexibleModelFittingTask::createWeightImage(), SourceXtractor::Cleaning::deblend(), and SourceXtractor::Cleaning::shouldClean().
|
pure virtual |
Implemented in SourceXtractor::SourceGroupWithOnDemandProperties, and SourceXtractor::SimpleSourceGroup.
Referenced by SourceXtractor::DetectionFrameGroupStampTask::computeProperties().
|
pure virtual |
Implemented in SourceXtractor::SourceGroupWithOnDemandProperties, and SourceXtractor::SimpleSourceGroup.
|
pure virtual |
Implemented in SourceXtractor::SourceGroupWithOnDemandProperties, and SourceXtractor::SimpleSourceGroup.
|
pure virtual |
Implemented in SourceXtractor::SourceGroupWithOnDemandProperties, and SourceXtractor::SimpleSourceGroup.
Referenced by SourceXtractor::Cleaning::deblend(), and SourceXtractor::Cleaning::shouldClean().
virtual const Property& SourceXtractor::SourceInterface::getProperty |
Returns a reference to the requested property. The property may be computed if needed Throws a PropertyNotFoundException if the property cannot be provided.
|
inline |
Convenience template method to call getProperty() with a more user-friendly syntax.
Definition at line 57 of file SourceInterface.h.
Referenced by SourceXtractor::FlexibleModelFittingTask::computeChiSquared(), SourceXtractor::MeasurementFrameGroupRectangleTask::computeProperties(), SourceXtractor::JacobianGroupTask::computeProperties(), SourceXtractor::FlexibleModelFittingTask::createFrameModel(), SourceXtractor::FlexibleModelFittingTask::createImageCopy(), SourceXtractor::FlexibleModelFittingTask::createWeightImage(), SourceXtractor::getCoordX(), SourceXtractor::getCoordY(), SourceXtractor::FlexibleModelFittingTask::isFrameValid(), and SourceXtractor::FlexibleModelFittingTask::updateCheckImages().
|
pure virtual |
Implemented in SourceXtractor::SourceGroupWithOnDemandProperties, and SourceXtractor::SimpleSourceGroup.
Implemented in SourceXtractor::SourceGroupWithOnDemandProperties, and SourceXtractor::SimpleSourceGroup.
Referenced by SourceXtractor::Cleaning::deblend().
|
inline |
Convenience template method to call setProperty() with a more user-friendly syntax.
Definition at line 64 of file SourceInterface.h.
References SourceXtractor::SourceInterface::setProperty().
Referenced by SourceXtractor::MeasurementFrameGroupRectangleTask::computeProperties(), SourceXtractor::JacobianGroupTask::computeProperties(), and SourceXtractor::PsfTask::computeProperties().
|
inline |
Definition at line 72 of file SourceInterface.h.
Referenced by SourceXtractor::GroupInfoTask::computeProperties().
virtual void SourceXtractor::SourceInterface::setProperty |
|
pure virtual |
Implemented in SourceXtractor::SourceGroupWithOnDemandProperties, and SourceXtractor::SimpleSourceGroup.
Referenced by SourceXtractor::PsfTask::computeProperties(), and SourceXtractor::Cleaning::deblend().