Siena Fast Forwarding Documentation (v. 2.0.1)
Classes | Public Member Functions | List of all members
siena::Predicate Class Referenceabstract

interface of a generic predicate in the attribute-based data model. More...

#include <attributes.h>

Classes

class  Iterator
 interface of a generic predicate iterator. More...
 

Public Member Functions

virtual ~Predicate ()
 virtual destructor
 
virtual Iteratorfirst () const =0
 returns an iterator over this predicate. More...
 
virtual bool covers (const Message &m) const
 applies this predicate to a message. More...
 

Detailed Description

interface of a generic predicate in the attribute-based data model.

A predicate is a set of filters representing a logical disjunctions of conjunctions of elementary conditions. Individual conjunctions can be accessed sequentially through a predicate::iterator.

Examples:
simple_attributes_types.h.

Member Function Documentation

virtual bool siena::Predicate::covers ( const Message m) const
virtual

applies this predicate to a message.

This is a naive implementation of the matching function.

Returns
true iff this predicate matches (i.e., covers) the given message.
virtual Iterator* siena::Predicate::first ( ) const
pure virtual

returns an iterator over this predicate.

Returns
iterator pointing to the first filter in this predicate, or NULL if this predicate is empty.
Examples:
simple_attributes_types.h.