28 template<
typename TYPE>
46 virtual bool compare(
const TYPE& t1,
const TYPE& t2)
const = 0;
64 template<
typename TYPE>
73 bool compare(
const TYPE& t1,
const TYPE& t2)
const override;
83 template<
typename TYPE>
92 bool compare(
const TYPE& t1,
const TYPE& t2)
const override;
102 template<
typename TYPE>
111 bool compare(
const TYPE& t1,
const TYPE& t2)
const override;
121 template<
typename TYPE>
130 bool compare(
const TYPE& t1,
const TYPE& t2)
const override;
140 template<
typename TYPE>
149 bool compare(
const TYPE& t1,
const TYPE& t2)
const override;
159 template<
typename TYPE>
168 bool compare(
const TYPE& t1,
const TYPE& t2)
const override;
172 template <
typename TYPE>
178 template <
typename TYPE>
184 template<
typename TYPE>
190 template <
typename TYPE>
196 template <
typename TYPE>
202template<
typename TYPE>
205 return t1 < t2 || t1 == t2;
209 template <
typename TYPE>
212 return t1 > t2 || t1 == t2;
Base class for comparison.
Definition comparator.h:29
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:173
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:84
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:185
Comparator for non-strict decreasing comparison (greater than or equal to).
Definition comparator.h:160
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:210
Comparator for equality comparison.
Definition comparator.h:103
bool compare(const TYPE &t1, const TYPE &t2) const override
Compares two elements to check if they are equal.
Definition comparator.h:191
Comparator for increasing comparison (less than).
Definition comparator.h:65
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:179
Comparator for non-strict increasing comparison (less than or equal to).
Definition comparator.h:141
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:203
Comparator for inequality comparison.
Definition comparator.h:122
bool compare(const TYPE &t1, const TYPE &t2) const override
Compares two elements to check if they are not equal.
Definition comparator.h:197
Main namespace for the project Original.
Definition algorithms.h:21
Type system foundations and concept definitions.