SourceXtractorPlusPlus  0.12
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DataVsModelInputTraits.h
Go to the documentation of this file.
1 
23 #ifndef MODELFITTING_DATAVSMODELINPUTTRAITS_H
24 #define MODELFITTING_DATAVSMODELINPUTTRAITS_H
25 
26 namespace ModelFitting {
27 
49 template <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 
static iterator end(InputType &input)
Returns an iterator to one after the last element of the input.
static iterator begin(InputType &input)
Returns an iterator to the first element of the input.
Traits class the DataVsModelResiduals class uses for accessing its inputs.
typename InputType::const_iterator iterator
static size_t size(const InputType &input)
Returns the size of the input.