#include <Siena.h>
Inheritance diagram for Filter::
Public Methods | |
Filter () | |
Filter (const Filter &) | |
bool | operator== (const Filter &) const |
iterator | add_constraint (const string &, SXOperator, const AttributeValue &) |
iterator | add_constraint (const string &, const AttributeConstraint &) |
Filter& | reduce () |
A Filter
represents a boolean expression to be evaluated against an Notification
. It consists of a set of constraints. Each constraint poses a condition on an attribute of the Notification
. A Filter
can pose multiple constraints on the same attribute.
A Filter
is implemented by means of a multimap<string, AttributeConstraint>
, therefore a Filter
can be manipulated using all the methods of a standard multimap
. Two additional utility methods are provided to add constraints.
|
default constructor creates an empty filter (always false) |
|
copy constructor |
|
adds a constraint to this filter |
|
adds a constraint to this filter
|
|
equality operator |