SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
DataVsModelInputTraits.h
Go to the documentation of this file.
1
22
23#ifndef MODELFITTING_DATAVSMODELINPUTTRAITS_H
24#define MODELFITTING_DATAVSMODELINPUTTRAITS_H
25
26namespace ModelFitting {
27
49template <typename InputType>
51
54 using iterator = typename InputType::const_iterator;
55
57 static iterator begin(InputType& input) {
58 return input.begin();
59 }
60
62 static iterator end(InputType& input) {
63 return input.end();
64 }
65
67 static size_t size(const InputType& input) {
68 return input.size();
69 }
70
71};
72
73} // end of namespace ModelFitting
74
75#endif /* MODELFITTING_DATAVSMODELINPUTTRAITS_H */
76
Traits class the DataVsModelResiduals class uses for accessing its inputs.
static iterator end(InputType &input)
Returns an iterator to one after the last element of the input.
static size_t size(const InputType &input)
Returns the size of the input.
static iterator begin(InputType &input)
Returns an iterator to the first element of the input.
typename InputType::const_iterator iterator