#include </home/casse/Dev/elm/src/concepts.h>
|
static const int | EQUAL = 0x001 |
|
static const int | LESS = 0x010 |
|
static const int | GREATER = 0x100 |
|
static const int | UNCOMP = 0x000 |
|
template<class T>
class elm::concept::PartialComparator< T >
This concept is implemented by objects matching a partial order.
- Parameters
-
◆ compare()
static int compare |
( |
const T & |
v1, |
|
|
const T & |
v2 |
|
) |
| |
|
static |
Perform a soft comparison: any value may be compared.
- Parameters
-
v1 | Value 1 to compare. |
v2 | Value 2 to compare. |
- Returns
- A bit field composed by EQUAL, LESS, GREATER.
◆ equals()
static bool equals |
( |
const T & |
v1, |
|
|
const T & |
v2 |
|
) |
| |
|
static |
Test for equality.
- Parameters
-
v1 | Value 1 to compare. |
v2 | Value 2 to compare. |
- Returns
- True if both values are equals, false else.
◆ greaterThan()
static bool greaterThan |
( |
const T & |
v1, |
|
|
const T & |
v2 |
|
) |
| |
|
static |
Test for greatness.
- Parameters
-
v1 | Value 1 to compare. |
v2 | Value 2 to compare. |
- Returns
- True if v1 is greater than v2, false else.
◆ lessThan()
static bool lessThan |
( |
const T & |
v1, |
|
|
const T & |
v2 |
|
) |
| |
|
static |
Test for lessness.
- Parameters
-
v1 | Value 1 to compare. |
v2 | Value 2 to compare. |
- Returns
- True if v1 is less than v2, false else.
◆ EQUAL
The bit 0 asserts equality relation.
◆ GREATER
const int GREATER = 0x100 |
|
static |
The bit 2 asserts the superioritiy relation.
◆ LESS
The bit 1 asserts the inferiority relation.
◆ UNCOMP
All bits to zero shows that both values are uncomparable.
The documentation for this class was generated from the following file: