Less-than bound class.
More...
#include <keyvalue/key/generic/bound/Less.h>
Public Member Functions | |
| Less (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 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.) |
| Less | ( | 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".
1.7.1