Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include </home/casse/otawa/elm/src/concepts.h>
Static Public Member Functions | |
static bool | equals (const T &v1, const T &v2) |
static bool | greaterThan (const T &v1, const T &v2) |
static bool | lessThan (const T &v1, const T &v2) |
static int | compare (const T &v1, const T &v2) |
Static Public Attributes | |
static const int | EQUAL = 0x001 |
static const int | LESS = 0x010 |
static const int | GREATER = 0x100 |
static const int | UNCOMP = 0x000 |
This concept is implemented by objects matching a partial order.
T | Type of compared items. |
|
static |
Perform a soft comparison: any value may be compared.
v1 | Value 1 to compare. |
v2 | Value 2 to compare. |
|
static |
Test for equality.
v1 | Value 1 to compare. |
v2 | Value 2 to compare. |
|
static |
Test for greatness.
v1 | Value 1 to compare. |
v2 | Value 2 to compare. |
|
static |
Test for lessness.
v1 | Value 1 to compare. |
v2 | Value 2 to compare. |
|
static |
The bit 0 asserts equality relation.
|
static |
The bit 2 asserts the superioritiy relation.
|
static |
The bit 1 asserts the inferiority relation.
|
static |
All bits to zero shows that both values are uncomparable.