h o m e d o c u m e n t a t i o n c l a s s h i e r a r c h y

UnaryPredicate1D Class Reference

#include <Predicates1D.h>

Inheritance diagram for UnaryPredicate1D:

ContourUP1D DensityLowerThanUP1D EqualToChainingTimeStampUP1D EqualToTimeStampUP1D ExternalContourUP1D FalseUP1D QuantitativeInvisibilityUP1D ShapeUP1D TrueUP1D List of all members.

Detailed Description

Base class for Unary Predicates that work on Interface1D. A UnaryPredicate1D is a functor that evaluates a condition on a Interface1D and returns true or false depending on whether this condition is satisfied or not. The UnaryPredicate1D is used by calling its () operator. Any inherited class must overload the () operator.


Public Member Functions

 UnaryPredicate1D ()
virtual ~UnaryPredicate1D ()
virtual string getName () const
virtual bool operator() (Interface1D &inter)

Constructor & Destructor Documentation

UnaryPredicate1D  )  [inline]
 

Default constructor.

virtual ~UnaryPredicate1D  )  [inline, virtual]
 

Destructor.


Member Function Documentation

virtual string getName  )  const [inline, virtual]
 

Returns the string of the name of the UnaryPredicate1D.

Reimplemented in TrueUP1D, FalseUP1D, QuantitativeInvisibilityUP1D, ContourUP1D, ExternalContourUP1D, EqualToTimeStampUP1D, EqualToChainingTimeStampUP1D, ShapeUP1D, and DensityLowerThanUP1D.

virtual bool operator() Interface1D inter  )  [inline, virtual]
 

The () operator. Must be overload by inherited classes.

Parameters:
inter The Interface1D on which we wish to evaluate the predicate.
Returns:
true if the condition is satisfied, false otherwise.

Reimplemented in TrueUP1D, FalseUP1D, QuantitativeInvisibilityUP1D, ContourUP1D, ExternalContourUP1D, EqualToTimeStampUP1D, EqualToChainingTimeStampUP1D, ShapeUP1D, and DensityLowerThanUP1D.


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