SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SourceXtractor::SourceGroupWithOnDemandProperties::EntangledSource Class Reference

#include <SourceGroupWithOnDemandProperties.h>

Inheritance diagram for SourceXtractor::SourceGroupWithOnDemandProperties::EntangledSource:
Collaboration diagram for SourceXtractor::SourceGroupWithOnDemandProperties::EntangledSource:

Public Member Functions

 EntangledSource (std::shared_ptr< SourceInterface > source, SourceGroupWithOnDemandProperties &group)
virtual ~EntangledSource ()=default
const PropertygetProperty (const PropertyId &property_id) const override
void setProperty (std::unique_ptr< Property > property, const PropertyId &property_id) override
bool operator< (const EntangledSource &other) const
Public 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

PropertyHolder m_property_holder
std::shared_ptr< SourceInterfacem_source
SourceGroupWithOnDemandPropertiesm_group

Friends

void SourceGroupWithOnDemandProperties::clearGroupProperties ()
void SourceGroupWithOnDemandProperties::merge (SourceGroupInterface &&)

Detailed Description

Definition at line 96 of file SourceGroupWithOnDemandProperties.h.

Constructor & Destructor Documentation

◆ EntangledSource()

SourceXtractor::SourceGroupWithOnDemandProperties::EntangledSource::EntangledSource ( std::shared_ptr< SourceInterface > source,
SourceGroupWithOnDemandProperties & group )

◆ ~EntangledSource()

virtual SourceXtractor::SourceGroupWithOnDemandProperties::EntangledSource::~EntangledSource ( )
virtualdefault

References EntangledSource().

Here is the call graph for this function:

Member Function Documentation

◆ getProperty()

const Property & SourceXtractor::SourceGroupWithOnDemandProperties::EntangledSource::getProperty ( const PropertyId & property_id) const
overridevirtual

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 40 of file EntangledSource.cpp.

References SourceXtractor::GroupTask::computeProperties(), m_group, m_property_holder, and m_source.

Here is the call graph for this function:

◆ operator<()

bool SourceXtractor::SourceGroupWithOnDemandProperties::EntangledSource::operator< ( const EntangledSource & other) const

Definition at line 83 of file EntangledSource.cpp.

References EntangledSource(), and m_source.

Here is the call graph for this function:

◆ setProperty()

void SourceXtractor::SourceGroupWithOnDemandProperties::EntangledSource::setProperty ( std::unique_ptr< Property > property,
const PropertyId & property_id )
overridevirtual

Implements SourceXtractor::SourceInterface.

Definition at line 79 of file EntangledSource.cpp.

References m_property_holder, and std::move().

Here is the call graph for this function:

◆ SourceGroupWithOnDemandProperties::clearGroupProperties

◆ SourceGroupWithOnDemandProperties::merge

Member Data Documentation

◆ m_group

SourceGroupWithOnDemandProperties& SourceXtractor::SourceGroupWithOnDemandProperties::EntangledSource::m_group
private

Definition at line 114 of file SourceGroupWithOnDemandProperties.h.

Referenced by EntangledSource(), and getProperty().

◆ m_property_holder

PropertyHolder SourceXtractor::SourceGroupWithOnDemandProperties::EntangledSource::m_property_holder
private

◆ m_source

std::shared_ptr<SourceInterface> SourceXtractor::SourceGroupWithOnDemandProperties::EntangledSource::m_source
private

Definition at line 113 of file SourceGroupWithOnDemandProperties.h.

Referenced by EntangledSource(), getProperty(), and operator<().


The documentation for this class was generated from the following files: