Greater-than bound class
.
More...
#include "keyvalue/key/generic/bound/Greater.h"
Public Member Functions | |
Greater (const ElementType &bound) | |
Constructs and sets bound. | |
bool | check (const ElementType &x) const |
Performs the check. | |
const ElementType & | getBound () const |
Gets bound value. | |
const char * | getName () const |
Gets comparison name. | |
Private Attributes | |
const ElementType | bound_ |
Greater-than bound class
.
Given a value x this class
checks if x > bound, where bound is fixed at construction time.
ElementType | : (template parameter) Type of bound. Accepted types are double , ptime , string and unsigned int . (Other types will generate a link error.) |
Greater | ( | const ElementType & | bound | ) | [explicit] |
Constructs and sets bound.
bound | : The bound value. |
bool check | ( | const ElementType & | x | ) | const |
Performs the check.
x | : Value to be checked. |
const ElementType& getBound | ( | ) | const |
Gets bound value.
const char* getName | ( | ) | const |
Gets comparison name.
ptime
, in which case it returns "latter than".