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

Identifier used to set and retrieve properties. More...

#include <PropertyId.h>

Collaboration diagram for SourceXtractor::PropertyId:

Public Member Functions

bool operator== (PropertyId other) const
 Equality operator is needed to be use PropertyId as key in unordered_map.
bool operator< (PropertyId other) const
 Less than operator needed to use PropertyId as key in a std::map.
std::type_index getTypeId () const
unsigned int getIndex () const
std::string getString () const

Static Public Member Functions

template<typename T>
static PropertyId create (unsigned int index=0)

Private Member Functions

 PropertyId (std::type_index type_id, unsigned int index)

Private Attributes

std::type_index m_type_id
unsigned int m_index

Friends

struct std::hash< SourceXtractor::PropertyId >

Detailed Description

Identifier used to set and retrieve properties.

Definition at line 40 of file PropertyId.h.

Constructor & Destructor Documentation

◆ PropertyId()

SourceXtractor::PropertyId::PropertyId ( std::type_index type_id,
unsigned int index )
inlineprivate

Definition at line 77 of file PropertyId.h.

References m_index, and m_type_id.

Referenced by create(), operator<(), and operator==().

Member Function Documentation

◆ create()

template<typename T>
PropertyId SourceXtractor::PropertyId::create ( unsigned int index = 0)
inlinestatic

Templated factory method used to create a PropertyId based on the type of a property. An optional index parameter is used to make the distinction between several properties of the same type.

Definition at line 45 of file PropertyId.h.

References PropertyId().

Referenced by SourceXtractor::ExternalFlagTaskFactory::configure(), SourceXtractor::AperturePhotometryTaskFactory::createTask(), SourceXtractor::AutoPhotometryTaskFactory::createTask(), SourceXtractor::BlendedFlagTaskFactory::createTask(), SourceXtractor::CoreThresholdPartitionTaskFactory::createTask(), SourceXtractor::DetectionFrameCoordinatesTaskFactory::createTask(), SourceXtractor::DetectionFrameGroupStampTaskFactory::createTask(), SourceXtractor::DetectionFrameImagesTaskFactory::createTask(), SourceXtractor::DetectionFrameInfoTaskFactory::createTask(), SourceXtractor::DetectionFramePixelValuesTaskFactory::createTask(), SourceXtractor::DetectionFrameSourceStampTaskFactory::createTask(), SourceXtractor::ErrorEllipseTaskFactory::createTask(), SourceXtractor::FlexibleModelFittingTaskFactory::createTask(), SourceXtractor::FluxRadiusTaskFactory::createTask(), SourceXtractor::GroupInfoTaskFactory::createTask(), SourceXtractor::HduNumberTaskFactory::createTask(), SourceXtractor::IsophotalFluxTaskFactory::createTask(), SourceXtractor::KronRadiusTaskFactory::createTask(), SourceXtractor::MeasurementFrameCoordinatesTaskFactory::createTask(), SourceXtractor::MeasurementFrameImagesTaskFactory::createTask(), SourceXtractor::MeasurementFrameInfoTaskFactory::createTask(), SourceXtractor::MeasurementFramePixelCentroidTaskFactory::createTask(), SourceXtractor::MeasurementFrameTaskFactory::createTask(), SourceXtractor::MoffatModelFittingTaskFactory::createTask(), SourceXtractor::NDetectedPixelsTaskFactory::createTask(), SourceXtractor::OnnxTaskFactory::createTask(), SourceXtractor::PeakValueTaskFactory::createTask(), SourceXtractor::PixelBoundariesTaskFactory::createTask(), SourceXtractor::PixelCentroidTaskFactory::createTask(), SourceXtractor::ReferenceCoordinatesTaskFactory::createTask(), SourceXtractor::ShapeParametersTaskFactory::createTask(), SourceXtractor::SNRRatioTaskFactory::createTask(), SourceXtractor::SourceFlagsTaskFactory::createTask(), SourceXtractor::SourceIDTaskFactory::createTask(), SourceXtractor::VignetTaskFactory::createTask(), SourceXtractor::WorldCentroidTaskFactory::createTask(), SourceXtractor::SourceInterface::getProperty(), SourceXtractor::AssocGrouping::requiredProperties(), SourceXtractor::Cleaning::requiredProperties(), SourceXtractor::MoffatCriteria::requiredProperties(), SourceXtractor::MoffatGrouping::requiredProperties(), and SourceXtractor::SourceInterface::setIndexedProperty().

Here is the call graph for this function:

◆ getIndex()

◆ getString()

std::string SourceXtractor::PropertyId::getString ( ) const

Definition at line 36 of file PropertyId.cpp.

References m_index, m_type_id, and std::stringstream::str().

Referenced by SourceXtractor::TaskProvider::getTask(), and SourceXtractor::Prefetcher::requestProperty().

Here is the call graph for this function:

◆ getTypeId()

◆ operator<()

bool SourceXtractor::PropertyId::operator< ( PropertyId other) const
inline

Less than operator needed to use PropertyId as key in a std::map.

Definition at line 56 of file PropertyId.h.

References m_index, m_type_id, and PropertyId().

Here is the call graph for this function:

◆ operator==()

bool SourceXtractor::PropertyId::operator== ( PropertyId other) const
inline

Equality operator is needed to be use PropertyId as key in unordered_map.

Definition at line 50 of file PropertyId.h.

References m_index, m_type_id, and PropertyId().

Here is the call graph for this function:

◆ std::hash< SourceXtractor::PropertyId >

friend struct std::hash< SourceXtractor::PropertyId >
friend

Definition at line 80 of file PropertyId.h.

Member Data Documentation

◆ m_index

unsigned int SourceXtractor::PropertyId::m_index
private

Definition at line 80 of file PropertyId.h.

Referenced by getIndex(), getString(), operator<(), operator==(), and PropertyId().

◆ m_type_id

std::type_index SourceXtractor::PropertyId::m_type_id
private

Definition at line 79 of file PropertyId.h.

Referenced by getString(), getTypeId(), operator<(), operator==(), and PropertyId().


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