32 namespace SourceCatalog {
42 throw Elements::Exception() <<
"Euclid::SourceCatalog::Catalog: Source object already exist "
43 <<
"in the map for source ID : " <<
m_source_vector[index].getId() <<
", index: " << index;
std::map< Source::id_type, size_t > m_source_index_map
Catalog(std::vector< Source > source_vector)
Build a catalog of Source objects.
std::shared_ptr< Source > find(const Source::id_type &source_id) const
Find the Source object from its identification number.
std::vector< Source > m_source_vector
boost::variant< int64_t, std::string > id_type