Alexandria  2.18
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 >:
[legend]
Collaboration diagram for Euclid::SourceCatalog::Photometry::PhotometryIterator< Const >:
[legend]

Public Types

using value_t = typename std::conditional< Const, const FluxErrorPair, FluxErrorPair >::type
 
using filters_iter_t = typename std::conditional< Const, std::vector< std::string >::const_iterator, std::vector< std::string >::iterator >::type
 
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 75 of file Photometry.h.

Member Typedef Documentation

Definition at line 83 of file Photometry.h.

template<bool Const>
using Euclid::SourceCatalog::Photometry::PhotometryIterator< Const >::value_t = typename std::conditional<Const, const FluxErrorPair, FluxErrorPair>::type

Definition at line 78 of file Photometry.h.

Definition at line 85 of file Photometry.h.

Constructor & Destructor Documentation

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

Constructor from non-const iterator

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

template<bool Const>
const std::string& Euclid::SourceCatalog::Photometry::PhotometryIterator< Const >::filterName ( ) const
Returns
The filter name corresponding to this FluxErrorPair
template<bool Const>
bool Euclid::SourceCatalog::Photometry::PhotometryIterator< Const >::operator!= ( const PhotometryIterator< Const > &  other) const
Returns
true if this iterator and other do not point to the same position
template<bool Const>
reference Euclid::SourceCatalog::Photometry::PhotometryIterator< Const >::operator* ( )
Returns
A reference to the FluxErrorPair pointed by this iterator
template<bool Const>
PhotometryIterator& Euclid::SourceCatalog::Photometry::PhotometryIterator< Const >::operator++ ( )

Increment the iterator

template<bool Const>
ssize_t Euclid::SourceCatalog::Photometry::PhotometryIterator< Const >::operator- ( const PhotometryIterator< Const > &  other) const
Returns
The number of elements between this iterator and other
template<bool Const>
pointer Euclid::SourceCatalog::Photometry::PhotometryIterator< Const >::operator-> ( )
Returns
A pointer to the FluxErrorPair pointed by this iterator
template<bool Const>
bool Euclid::SourceCatalog::Photometry::PhotometryIterator< Const >::operator== ( const PhotometryIterator< Const > &  other) const
Returns
true if this iterator and other point to the same position

Friends And Related Function Documentation

template<bool Const>
friend class Photometry
friend

Definition at line 137 of file Photometry.h.

Member Data Documentation

template<bool Const>
filters_iter_t Euclid::SourceCatalog::Photometry::PhotometryIterator< Const >::m_filters_iter
private

Definition at line 140 of file Photometry.h.

template<bool Const>
values_iter_t Euclid::SourceCatalog::Photometry::PhotometryIterator< Const >::m_values_iter
private

Definition at line 141 of file Photometry.h.


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