Siena C++ API documentation.

class AttributeConstraint: public AttributeValue

attribute constraint

Inheritance:


Public Fields

[more]SienaOperator op
the constraint operator

Public Methods

[more] AttributeConstraint()
default constructor
[more] AttributeConstraint(const AttributeValue & v)
construct from an AttributeValue
[more] AttributeConstraint(const AttributeValue & v, SienaOperator o)
construct from an AttributeValue and a SienaOperator
[more] AttributeConstraint(const AttributeConstraint & c)
copy constructor
[more]AttributeConstraint& operator = (const AttributeConstraint & c)
copy assignment
[more]AttributeConstraint& operator = (const AttributeValue & v)
assignment from an AttributeValue
[more]bool apply_to(const AttributeValue & v)
applies this constraint to an attribute value


Inherited from AttributeValue:

Public

Constructors

Access functions

Assignment operators


Documentation

An AttributeConstraint represents a condition posed on an attribute value. It stores an operator plus a comparison value.
oSienaOperator op
the constraint operator

o AttributeConstraint()
op defaults to Siena_eq, the comparison value is null.

o AttributeConstraint(const AttributeValue & v)
op defaults to Siena_eq, the comparison value is initialized with v.
Parameters:
v - initializes the comparison value

o AttributeConstraint(const AttributeValue & v, SienaOperator o)
construct from an AttributeValue and a SienaOperator
Parameters:
v - initializes the comparison value
o - initializes the operator op

o AttributeConstraint(const AttributeConstraint & c)
copy constructor

oAttributeConstraint& operator = (const AttributeConstraint & c)
copy assignment

oAttributeConstraint& operator = (const AttributeValue & v)
assigns the comparison value using Siena_eq as the comparison operator
Parameters:
v - comparison value

obool apply_to(const AttributeValue & v)
applies this constraint to an attribute value
Parameters:
v - value to verify against this constraint


This class has no child classes.
See Also:
AttributeValue

Alphabetic index HTML hierarchy of classes or Java


This document is part of Siena. Please, direct any comment or suggestion to Antonio Carzaniga