28 #ifndef ENDFIELDMODEL_ENDFIELDMODEL_H_
29 #define ENDFIELDMODEL_ENDFIELDMODEL_H_
39 virtual std::ostream&
print(std::ostream& out)
const = 0;
40 virtual double function(
double x,
int n)
const = 0;
45 (std::vector< std::vector<int> >
vec);
48 bool GreaterThan(std::vector<int> v1, std::vector<int> v2);
66 template <
class TEMP_ITER>
68 TEMP_ITER b_begin, TEMP_ITER b_end);
86 template <
class TEMP_ITER>
88 TEMP_ITER b_begin, TEMP_ITER b_end);
90 template <
class TEMP_CLASS>
95 template <
class TEMP_ITER>
98 TEMP_ITER a_it = a_begin;
99 TEMP_ITER b_it = b_begin;
100 while (a_it != a_end && b_it != b_end) {
101 if (*a_it != *b_it)
return false;
105 if ( a_it != a_end || b_it != b_end )
return false;
std::vector< std::vector< int > > CompactVector(std::vector< std::vector< int > > vec)
bool IterableEquality(TEMP_ITER a_begin, TEMP_ITER a_end, TEMP_ITER b_begin, TEMP_ITER b_end)
bool GreaterThan(std::vector< int > v1, std::vector< int > v2)
CompactVector helper function, used for sorting.
virtual EndFieldModel * clone() const =0
virtual std::ostream & print(std::ostream &out) const =0