27 template<
typename TYPE>
45 virtual bool compare(
const TYPE& t1,
const TYPE& t2)
const = 0;
63 template<
typename TYPE>
72 bool compare(
const TYPE& t1,
const TYPE& t2)
const override;
82 template<
typename TYPE>
91 bool compare(
const TYPE& t1,
const TYPE& t2)
const override;
101 template<
typename TYPE>
110 bool compare(
const TYPE& t1,
const TYPE& t2)
const override;
120 template<
typename TYPE>
129 bool compare(
const TYPE& t1,
const TYPE& t2)
const override;
139 template<
typename TYPE>
148 bool compare(
const TYPE& t1,
const TYPE& t2)
const override;
158 template<
typename TYPE>
167 bool compare(
const TYPE& t1,
const TYPE& t2)
const override;
171 template <
typename TYPE>
174 return this->compare(t1, t2);
177 template <
typename TYPE>
183 template<
typename TYPE>
189 template <
typename TYPE>
195 template <
typename TYPE>
201template<
typename TYPE>
204 return t1 < t2 || t1 == t2;
208 template <
typename TYPE>
211 return t1 > t2 || t1 == t2;
Base class for comparison.
Definition comparator.h:28
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:172
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:83
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:184
Comparator for non-strict decreasing comparison (greater than or equal to).
Definition comparator.h:159
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:209
Comparator for equality comparison.
Definition comparator.h:102
bool compare(const TYPE &t1, const TYPE &t2) const override
Compares two elements to check if they are equal.
Definition comparator.h:190
Comparator for increasing comparison (less than).
Definition comparator.h:64
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:178
Comparator for non-strict increasing comparison (less than or equal to).
Definition comparator.h:140
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:202
Comparator for inequality comparison.
Definition comparator.h:121
bool compare(const TYPE &t1, const TYPE &t2) const override
Compares two elements to check if they are not equal.
Definition comparator.h:196
Main namespace for the project Original.
Definition algorithms.h:21