The Source class includes all information related to a sky source.
More...
#include <Source.h>
|
typedef boost::variant< int64_t, std::string > | id_type |
|
The Source class includes all information related to a sky source.
Definition at line 48 of file Source.h.
◆ id_type
◆ Source()
Euclid::SourceCatalog::Source::Source |
( |
id_type |
source_id, |
|
|
std::vector< std::shared_ptr< Attribute >> |
attributeVector |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
source_id | Source identifier |
attributeVector | Vector of shared pointers on Attribute objects |
Definition at line 60 of file Source.h.
◆ ~Source()
virtual Euclid::SourceCatalog::Source::~Source |
( |
| ) |
|
|
inlinevirtual |
Virtual default destructor.
Definition at line 65 of file Source.h.
◆ getAttribute()
template<typename T >
std::shared_ptr<T> Euclid::SourceCatalog::Source::getAttribute |
( |
| ) |
const |
Get a pointer to source attribute of type T or a null pointer if the source do not contain an attribute of type T.
An example usage is
std::shared_ptr<Photometry> a_photometric_attribute = source.getAttribute<Photometry>()
where Photometry can be replaced by any other attributes.
- Returns
- The pointer to the attribute or nullptr if the attribute is not found
◆ getId()
id_type Euclid::SourceCatalog::Source::getId |
( |
| ) |
const |
|
inline |
◆ m_attribute_vector
std::vector<std::shared_ptr<Attribute> > Euclid::SourceCatalog::Source::m_attribute_vector |
|
private |
◆ m_source_id
id_type Euclid::SourceCatalog::Source::m_source_id { } |
|
private |
The documentation for this class was generated from the following file: