interface of a generic constraint in the Siena data model. More...
#include <types.h>


Public Member Functions | |
| virtual | ~constraint () |
| virtual destructor | |
| virtual operator_id | op () const =0 |
| returns the operator defined for this constraint. | |
| virtual bool | covers (const attribute &a) const |
| applies this constraint to an attribute. More... | |
Public Member Functions inherited from siena::attribute | |
| virtual | ~attribute () |
| virtual destructor | |
| virtual string_t | name () const =0 |
| returns the name of this attribute. | |
Public Member Functions inherited from siena::value | |
| virtual | ~value () |
| virtual destructor | |
| virtual type_id | type () const =0 |
| returns the actual type identifier of this value. More... | |
| virtual int_t | int_value () const =0 |
| returns this value as an integer. More... | |
| virtual string_t | string_value () const =0 |
| returns this value as a string. More... | |
| virtual bool_t | bool_value () const =0 |
| returns this value as a boolean. More... | |
| virtual double_t | double_value () const =0 |
| returns this value as a double. More... | |
interface of a generic constraint in the Siena data model.
A constraint is defined by a name, an operator and a value.
|
virtual |
applies this constraint to an attribute.