35 namespace SourceCatalog {
39 Catalog::Catalog(vector<Source> source_vector): m_source_vector(source_vector)
47 throw Elements::Exception() <<
"Euclid::SourceCatalog::Catalog: Source object already exist " 48 <<
"in the map for source ID : " <<
m_source_vector[index].getId() <<
", index: " << index;
59 shared_ptr<Source> ptr(
nullptr);
boost::variant< int64_t, std::string > id_type
std::map< Source::id_type, size_t > m_source_index_map
std::vector< Source > m_source_vector
std::shared_ptr< Source > find(const Source::id_type &source_id) const
Find the Source object from its identification number.