39namespace SourceCatalog {
85 typename std::conditional<Const, const FluxErrorPair, FluxErrorPair>::type> {
167 if (m_filter_name_vector_ptr ==
nullptr) {
171 if (m_filter_name_vector_ptr->size() != m_value_vector.size()) {
172 throw Elements::Exception() <<
"Photometry filter names vector has different size than the values vector";
180 return const_iterator{m_filter_name_vector_ptr->cbegin(), m_value_vector.cbegin()};
184 return const_iterator{m_filter_name_vector_ptr->cend(), m_value_vector.cend()};
188 return const_iterator{m_filter_name_vector_ptr->cbegin(), m_value_vector.cbegin()};
192 return const_iterator{m_filter_name_vector_ptr->cend(), m_value_vector.cend()};
196 return iterator{m_filter_name_vector_ptr->begin(), m_value_vector.begin()};
200 return iterator{m_filter_name_vector_ptr->end(), m_value_vector.end()};
208 return m_filter_name_vector_ptr->size();
233#define PHOTOMETRY_IMPL
235#undef PHOTOMETRY_IMPL
Attribute interface extended by all source attributes.
Store the Right Ascension (Ra) and Delination (Dec) of a source in decimal degrees,...
typename std::conditional< Const, std::vector< FluxErrorPair >::const_iterator, std::vector< FluxErrorPair >::iterator >::type values_iter_t
PhotometryIterator(const filters_iter_t &filters_iter, const values_iter_t &values_iter)
bool operator==(const PhotometryIterator &other) const
PhotometryIterator(const PhotometryIterator< false > &other)
ssize_t operator-(const PhotometryIterator &other) const
typename std::conditional< Const, const FluxErrorPair, FluxErrorPair >::type value_t
filters_iter_t m_filters_iter
typename std::vector< std::string >::const_iterator filters_iter_t
bool operator!=(const PhotometryIterator &other) const
PhotometryIterator & operator++()
values_iter_t m_values_iter
const std::string & filterName() const
const_iterator cend() const
const_iterator cbegin() const
std::shared_ptr< std::vector< std::string > > m_filter_name_vector_ptr
Shared pointer to the common list of filter names.
PhotometryIterator< false > iterator
std::vector< FluxErrorPair > m_value_vector
The photometry map.
const_iterator end() const
PhotometryIterator< true > const_iterator
Photometry(std::shared_ptr< std::vector< std::string > > filter_name_vector_ptr, std::vector< FluxErrorPair > value_vector)
Constructor which should never be called directly. Use the PhotometryAttributeHandler to build Photom...
std::size_t size() const
Return the size of the photometry map.
virtual ~Photometry()=default
default destructor
const_iterator begin() const
bool operator==(const FluxErrorPair &other) const
bool missing_photometry_flag
bool operator!=(const FluxErrorPair &other) const
FluxErrorPair(const FluxErrorPair &)=default