#include <Siena.h>
Public Member Functions | |
| AttributeConstraint () | |
| AttributeConstraint (const AttributeValue &v) | |
| AttributeConstraint (SXOperator o, const AttributeValue &v) | |
| AttributeConstraint (const AttributeConstraint &c) | |
| AttributeConstraint & | operator= (const AttributeConstraint &c) |
| AttributeConstraint & | operator= (const AttributeValue &v) |
| bool | operator== (const AttributeConstraint &c) const |
| bool | apply_to (const AttributeValue &v) |
Public Attributes | |
| SXOperator | op |
| AttributeValue | value |
An AttributeConstraint represents a condition posed on an attribute value. It stores an operator plus a comparison value. The meaning of an attribute constraint is defined by its method apply_to
| AttributeConstraint::AttributeConstraint | ( | ) |
default constructor
op defaults to SX_eq, the comparison value is null.
| AttributeConstraint::AttributeConstraint | ( | const AttributeValue & | v | ) |
construct from an AttributeValue
op defaults to SX_eq (equality), the comparison value is initialized with v.
| v | initializes the comparison value |
| AttributeConstraint::AttributeConstraint | ( | SXOperator | o, | |
| const AttributeValue & | v | |||
| ) |
construct from an AttributeValue and a SXOperator
| o | the operator op | |
| v | the comparison value |
| AttributeConstraint::AttributeConstraint | ( | const AttributeConstraint & | c | ) |
copy constructor
| AttributeConstraint& AttributeConstraint::operator= | ( | const AttributeConstraint & | c | ) |
copy assignment
| AttributeConstraint& AttributeConstraint::operator= | ( | const AttributeValue & | v | ) |
assignment from an AttributeValue
assigns the comparison value using SX_eq as the comparison operator
| v | comparison value |
| bool AttributeConstraint::operator== | ( | const AttributeConstraint & | c | ) | const |
equality operator
| bool AttributeConstraint::apply_to | ( | const AttributeValue & | v | ) |
applies this constraint to an attribute value
| v | value to verify against this constraint |
| SXOperator AttributeConstraint::op |
the constraint operator
the comparison value