Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
elm::concept::Comparator< T > Class Template Reference

#include </home/casse/otawa/elm/src/concepts.h>

Static Public Member Functions

static int compare (const T &object1, const T &object2)
 

Detailed Description

template<class T>
class elm::concept::Comparator< T >

This concept must be implemented by classes providing comparisons of values (strict order).

Parameters
TType of objects to compare.
Implemented by:
elm::Comparator, elm::SubstractComparator, elm::CompareComparator, elm::AssocComparator, elm::ReverseComparator

Member Function Documentation

template<class T >
static int elm::concept::Comparator< T >::compare ( const T &  object1,
const T &  object2 
)
static

Compare two objects.

Parameters
object1First object to compare.
object2Second object to compare.
Returns
<0 if object 1 is less than object 2, 0 if they are equals, >0 else.

The documentation for this class was generated from the following file: