Static Public Member Functions

StrictlyDecreasing Class Reference

StrictlyDecreasing monotone class. More...

#include <keyvalue/key/generic/monotone/StrictlyDecreasing.h>

List of all members.

Static Public Member Functions

template<typename ElementType >
static bool check (const ElementType &x, const ElementType &y)
 Performs the comparison.
static const char * getName ()
 Gets type name.

Detailed Description

StrictlyDecreasing monotone class.

Given two consecutive values of a sequence, x[i] and x[i+1], this class checks if x[i] > x[i+1].


Member Function Documentation

static bool check ( const ElementType &  x,
const ElementType &  y 
) [static]

Performs the comparison.

Parameters:
x : 1st value to be checked;
y : 2nd value to be checked.
ElementType : (template parameter) Type of x and y. Accepted types are double, ptime, string and unsigned int. (Other types will generate a link error.)
Returns:
(x > y).
static const char* getName (  )  [static]

Gets type name.

Returns:
"strictly decreasing".