Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
Euclid::SourceCatalog::Photometry::PhotometryIterator< Const > Class Template Reference

#include <Photometry.h>

Inheritance diagram for Euclid::SourceCatalog::Photometry::PhotometryIterator< Const >:
Inheritance graph
[legend]
Collaboration diagram for Euclid::SourceCatalog::Photometry::PhotometryIterator< Const >:
Collaboration graph
[legend]

Public Types

using value_t = typename std::conditional< Const, const FluxErrorPair, FluxErrorPair >::type
 
using filters_iter_t = typename std::vector< std::string >::const_iterator
 
using values_iter_t = typename std::conditional< Const, std::vector< FluxErrorPair >::const_iterator, std::vector< FluxErrorPair >::iterator >::type
 

Public Member Functions

 PhotometryIterator (const PhotometryIterator< false > &other)
 
PhotometryIteratoroperator++ ()
 
bool operator== (const PhotometryIterator &other) const
 
bool operator!= (const PhotometryIterator &other) const
 
reference operator* ()
 
pointer operator-> ()
 
ssize_t operator- (const PhotometryIterator &other) const
 
const std::stringfilterName () const
 

Protected Member Functions

 PhotometryIterator (const filters_iter_t &filters_iter, const values_iter_t &values_iter)
 

Private Attributes

filters_iter_t m_filters_iter
 
values_iter_t m_values_iter
 

Friends

class Photometry
 

Detailed Description

template<bool Const>
class Euclid::SourceCatalog::Photometry::PhotometryIterator< Const >

Iterator class, implemented as a template to avoid repetition for const and non const iterators

Template Parameters
ConstA boolean. If true, this will be a const iterator

Definition at line 83 of file Photometry.h.

Member Typedef Documentation

◆ filters_iter_t

Definition at line 91 of file Photometry.h.

◆ value_t

Definition at line 87 of file Photometry.h.

◆ values_iter_t

Definition at line 92 of file Photometry.h.

Constructor & Destructor Documentation

◆ PhotometryIterator() [1/2]

template<bool Const>
Euclid::SourceCatalog::Photometry::PhotometryIterator< Const >::PhotometryIterator ( const PhotometryIterator< false > &  other)

Constructor from non-const iterator

◆ PhotometryIterator() [2/2]

template<bool Const>
Euclid::SourceCatalog::Photometry::PhotometryIterator< Const >::PhotometryIterator ( const filters_iter_t filters_iter,
const values_iter_t values_iter 
)
protected

Constructor

Parameters
filters_iterFilter name iterator
values_iterFluxErrorPair iterator

Member Function Documentation

◆ filterName()

Returns
The filter name corresponding to this FluxErrorPair

◆ operator!=()

Returns
true if this iterator and other do not point to the same position

◆ operator*()

template<bool Const>
reference Euclid::SourceCatalog::Photometry::PhotometryIterator< Const >::operator* ( )
Returns
A reference to the FluxErrorPair pointed by this iterator

◆ operator++()

Increment the iterator

◆ operator-()

Returns
The number of elements between this iterator and other

◆ operator->()

Returns
A pointer to the FluxErrorPair pointed by this iterator

◆ operator==()

Returns
true if this iterator and other point to the same position

Friends And Related Symbol Documentation

◆ Photometry

template<bool Const>
friend class Photometry
friend

Definition at line 145 of file Photometry.h.

Member Data Documentation

◆ m_filters_iter

Definition at line 148 of file Photometry.h.

◆ m_values_iter

Definition at line 149 of file Photometry.h.


The documentation for this class was generated from the following file: