Siena Fast Forwarding Documentation (v. 1.9.4)

siena::constraint Class Reference

interface of a generic constraint in the Siena data model. More...

#include <types.h>

Inheritance diagram for siena::constraint:
siena::attribute siena::value siena::filter::iterator

List of all members.

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 throw ()
 applies this constraint to an attribute.

Detailed Description

interface of a generic constraint in the Siena data model.

A constraint is defined by a name, an operator and a value.

See also:
see operator_id, attribute, value

Member Function Documentation

virtual bool siena::constraint::covers ( const attribute a  )  const throw () [virtual]

applies this constraint to an attribute.

Returns:
true iff this constraint matches (i.e., covers) the given attribute.

The documentation for this class was generated from the following file: