Static Public Member Functions

Decreasing Class Reference

Decreasing monotone class. More...

#include <keyvalue/key/generic/monotone/Decreasing.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

Decreasing 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.

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.)
(x >= y).
static const char* getName (  )  [static]

Gets type name.