26 template<
typename TYPE>
44 virtual bool compare(
const TYPE& t1,
const TYPE& t2)
const = 0;
62 template<
typename TYPE>
71 bool compare(
const TYPE& t1,
const TYPE& t2)
const override;
81 template<
typename TYPE>
90 bool compare(
const TYPE& t1,
const TYPE& t2)
const override;
100 template<
typename TYPE>
109 bool compare(
const TYPE& t1,
const TYPE& t2)
const override;
119 template<
typename TYPE>
128 bool compare(
const TYPE& t1,
const TYPE& t2)
const override;
138 template<
typename TYPE>
147 bool compare(
const TYPE& t1,
const TYPE& t2)
const override;
157 template<
typename TYPE>
166 bool compare(
const TYPE& t1,
const TYPE& t2)
const override;
170 template <
typename TYPE>
176 template <
typename TYPE>
182 template<
typename TYPE>
188 template <
typename TYPE>
194 template <
typename TYPE>
200template<
typename TYPE>
203 return t1 < t2 || t1 == t2;
207 template <
typename TYPE>
210 return t1 > t2 || t1 == t2;
Base class for comparison.
Definition comparator.h:27
virtual ~comparator()=default
Virtual destructor for the comparator class.
bool operator()(const TYPE &t1, const TYPE &t2) const
Function call operator for comparing two elements using the compare method.
Definition comparator.h:171
virtual bool compare(const TYPE &t1, const TYPE &t2) const =0
Pure virtual compare method for comparing two elements.
Comparator for decreasing comparison (greater than).
Definition comparator.h:82
bool compare(const TYPE &t1, const TYPE &t2) const override
Compares two elements to check if the first is greater than the second.
Definition comparator.h:183
Comparator for non-strict decreasing comparison (greater than or equal to).
Definition comparator.h:158
bool compare(const TYPE &t1, const TYPE &t2) const override
Compares two elements to check if the first is greater than or equal to the second.
Definition comparator.h:208
Comparator for equality comparison.
Definition comparator.h:101
bool compare(const TYPE &t1, const TYPE &t2) const override
Compares two elements to check if they are equal.
Definition comparator.h:189
Comparator for increasing comparison (less than).
Definition comparator.h:63
bool compare(const TYPE &t1, const TYPE &t2) const override
Compares two elements to check if the first is less than the second.
Definition comparator.h:177
Comparator for non-strict increasing comparison (less than or equal to).
Definition comparator.h:139
bool compare(const TYPE &t1, const TYPE &t2) const override
Compares two elements to check if the first is less than or equal to the second.
Definition comparator.h:201
Comparator for inequality comparison.
Definition comparator.h:120
bool compare(const TYPE &t1, const TYPE &t2) const override
Compares two elements to check if they are not equal.
Definition comparator.h:195
Main namespace for the project Original.
Definition algorithms.h:21