Less-than-or-equal-to bound class
.
More...
#include <keyvalue/key/generic/bound/Leq.h>
Public Member Functions | |
Leq (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_ |
Less-than-or-equal-to 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.) |
Leq | ( | 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 "earlier than or equal to".