Catalog contains a container of sources.
More...
#include <Catalog.h>
Catalog contains a container of sources.
Definition at line 47 of file Catalog.h.
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 36 of file Catalog.cpp.
References m_source_index_map, and m_source_vector.
virtual Euclid::SourceCatalog::Catalog::~Catalog |
( |
| ) |
|
|
virtualdefault |
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 80 of file Catalog.h.
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 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 51 of file Catalog.cpp.
References m_source_index_map, and m_source_vector.
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 113 of file Catalog.h.
The documentation for this class was generated from the following files: