SourceXtractorPlusPlus  0.15
Please provide a description of the project.
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
SourceXtractor::AssocModeConfig Class Reference

#include <AssocModeConfig.h>

Inheritance diagram for SourceXtractor::AssocModeConfig:
[legend]
Collaboration diagram for SourceXtractor::AssocModeConfig:
[legend]

Classes

struct  CatalogEntry
 

Public Types

enum class  AssocMode {
  UNKNOWN , FIRST , NEAREST , MIN ,
  MAX , MEAN , MAG_MEAN , SUM ,
  MAG_SUM
}
 
enum class  AssocFilter { ALL , MATCHED , UNMATCHED }
 
- Public Types inherited from Euclid::Configuration::Configuration
enum class  State { CONSTRUCTED , PRE_INITIALIZED , INITIALIZED , FINAL }
 
typedef std::vector< boost::program_options::option_description > OptionDescriptionList
 
typedef std::map< std::string, boost::program_options::variable_value > UserValues
 

Public Member Functions

 AssocModeConfig (long manager_id)
 
virtual ~AssocModeConfig ()=default
 
std::map< std::string, OptionDescriptionListgetProgramOptions () override
 
void initialize (const UserValues &args) override
 
AssocMode getAssocMode () const
 
double getAssocRadius () const
 
const std::vector< CatalogEntry > & getCatalog () const
 
- Public Member Functions inherited from Euclid::Configuration::Configuration
 Configuration (long manager_id)
 
virtual ~Configuration ()=default
 
virtual void preInitialize (const UserValues &args)
 
virtual void postInitialize (const UserValues &args)
 
const std::set< std::type_index > & getDependencies ()
 
StategetCurrentState ()
 
State getCurrentState () const
 

Private Member Functions

void readTable (const Euclid::Table::Table &table, const std::vector< int > &columns, const std::vector< int > &copy_columns)
 

Private Attributes

AssocMode m_assoc_mode
 
double m_assoc_radius
 
std::vector< CatalogEntrym_catalog
 

Additional Inherited Members

- Protected Member Functions inherited from Euclid::Configuration::Configuration
void declareDependency ()
 
T & getDependency ()
 
const T & getDependency () const
 

Detailed Description

Definition at line 31 of file AssocModeConfig.h.

Member Enumeration Documentation

◆ AssocFilter

Enumerator
ALL 
MATCHED 
UNMATCHED 

Definition at line 47 of file AssocModeConfig.h.

◆ AssocMode

Enumerator
UNKNOWN 
FIRST 
NEAREST 
MIN 
MAX 
MEAN 
MAG_MEAN 
SUM 
MAG_SUM 

Definition at line 35 of file AssocModeConfig.h.

Constructor & Destructor Documentation

◆ AssocModeConfig()

SourceXtractor::AssocModeConfig::AssocModeConfig ( long  manager_id)

Definition at line 87 of file AssocModeConfig.cpp.

References Euclid::Configuration::ConfigManager::getInstance(), and Euclid::Configuration::ConfigManager::registerDependency().

Here is the call graph for this function:

◆ ~AssocModeConfig()

virtual SourceXtractor::AssocModeConfig::~AssocModeConfig ( )
virtualdefault

Member Function Documentation

◆ getAssocMode()

AssocMode SourceXtractor::AssocModeConfig::getAssocMode ( ) const
inline

Definition at line 66 of file AssocModeConfig.h.

References m_assoc_mode.

◆ getAssocRadius()

double SourceXtractor::AssocModeConfig::getAssocRadius ( ) const
inline

Definition at line 70 of file AssocModeConfig.h.

References m_assoc_radius.

◆ getCatalog()

const std::vector<CatalogEntry>& SourceXtractor::AssocModeConfig::getCatalog ( ) const
inline

Definition at line 74 of file AssocModeConfig.h.

References m_catalog.

◆ getProgramOptions()

std::map< std::string, Configuration::OptionDescriptionList > SourceXtractor::AssocModeConfig::getProgramOptions ( )
overridevirtual

Reimplemented from Euclid::Configuration::Configuration.

Definition at line 93 of file AssocModeConfig.cpp.

References SourceXtractor::ASSOC_CATALOG, SourceXtractor::ASSOC_COLUMNS, SourceXtractor::ASSOC_COPY, SourceXtractor::ASSOC_FILTER, SourceXtractor::ASSOC_MODE, SourceXtractor::ASSOC_RADIUS, and std::string::c_str().

Here is the call graph for this function:

◆ initialize()

void SourceXtractor::AssocModeConfig::initialize ( const UserValues args)
overridevirtual

◆ readTable()

void SourceXtractor::AssocModeConfig::readTable ( const Euclid::Table::Table table,
const std::vector< int > &  columns,
const std::vector< int > &  copy_columns 
)
private

Definition at line 173 of file AssocModeConfig.cpp.

References std::vector< T >::at(), m_catalog, and std::vector< T >::size().

Referenced by initialize().

Here is the call graph for this function:

Member Data Documentation

◆ m_assoc_mode

AssocMode SourceXtractor::AssocModeConfig::m_assoc_mode
private

Definition at line 83 of file AssocModeConfig.h.

Referenced by getAssocMode(), and initialize().

◆ m_assoc_radius

double SourceXtractor::AssocModeConfig::m_assoc_radius
private

Definition at line 84 of file AssocModeConfig.h.

Referenced by getAssocRadius(), and initialize().

◆ m_catalog

std::vector<CatalogEntry> SourceXtractor::AssocModeConfig::m_catalog
private

Definition at line 86 of file AssocModeConfig.h.

Referenced by getCatalog(), and readTable().


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