Catalog contains a container of sources.
More...
#include <Catalog.h>
Catalog contains a container of sources.
Definition at line 47 of file Catalog.h.
◆ const_iterator
◆ Catalog()
Euclid::SourceCatalog::Catalog::Catalog |
( |
std::vector< Source > |
source_vector | ) |
|
|
explicit |
Build a catalog of Source objects.
Constructs a vector container of Source objects, a map of source identification and an index which is the location of the Source object in the vector container
- Parameters
-
source_vector | Vector container of Source objects |
- Exceptions
-
Definition at line 39 of file Catalog.cpp.
References m_source_index_map, and m_source_vector.
◆ ~Catalog()
virtual Euclid::SourceCatalog::Catalog::~Catalog |
( |
| ) |
|
|
virtualdefault |
◆ begin()
Get a const_iterator pointing to the first element in the m_source_vector vector.
- Returns
- Returns a const_iterator pointing to the first element in the m_source_vector container
Definition at line 82 of file Catalog.h.
◆ end()
Get an const_iterator pointing to the last element in the m_source_vector vector.
- Returns
- Returns a const_iterator pointing to the past-the-end element in the m_source_vector container
Definition at line 92 of file Catalog.h.
◆ find()
Find the Source object from its identification number.
- Parameters
-
source_id | The source identification number |
- Returns
- A shared pointer to the Source object or a null pointer in case of no object was found for this source_id
Definition at line 57 of file Catalog.cpp.
References m_source_index_map, and m_source_vector.
◆ size()
size_t Euclid::SourceCatalog::Catalog::size |
( |
| ) |
const |
|
inline |
Get the size of the vector container.
- Returns
- The size of the container which is the number of Source objects
Definition at line 111 of file Catalog.h.
◆ m_source_index_map
std::map<Source::id_type, size_t> Euclid::SourceCatalog::Catalog::m_source_index_map { } |
|
private |
◆ m_source_vector
std::vector<Source> Euclid::SourceCatalog::Catalog::m_source_vector { } |
|
private |
The documentation for this class was generated from the following files: