Inheritance diagram for RS::PredicateWithPosition:


Public Member Functions | |
| PredicateWithPosition (const Point &pos) | |
| Constructor taking the default argument for the position used as an argument in the predicate. | |
| PredicateWithPosition (const PredicateWithPosition &) | |
| Creates a predicate that is an exact copy of obj. | |
| virtual | ~PredicateWithPosition () |
| Destroys the predicate. | |
| PredicateWithPosition & | operator= (const PredicateWithPosition &) |
| Assignment operator. | |
| virtual void | setArguments (const std::vector< Float > &arguments) throw (TooFewArgumentsException) |
| Used to set the predicate's arguments in a generic way. | |
| virtual void | setPosition (const Point &pos) |
| Used to set the predicate's position argument to pos. | |
| virtual Point | getPosition () const |
| Return the predicate's position argument. | |
| virtual FuzzyBool | evaluate ()=0 |
| Should return the truth value of the predicate. | |
| virtual FuzzyBool | evaluate (const Point &pos) |
| This method is used to first set the argument of the predicate and then evaluate it. | |
Protected Attributes | |
| Point | position |
| The position argument. | |
Definition at line 68 of file PredicateWithPosition.h.
|
|
Assignment operator. Assigns obj to this object. Definition at line 70 of file PredicateWithPosition.cc. References position. |
|
|
Used to set the predicate's arguments in a generic way. The first value in the vector will be interpreted as the X-coordinate and the second value the Y-coordinate. Implements RS::PredicateWithArguments. Definition at line 52 of file PredicateWithPosition.icc. References RS_THROW. |
|
|
This method is used to first set the argument of the predicate and then evaluate it. It uses the methods setPosition and evaluate(), so it should not be overriden unless it should made unavailable. Definition at line 76 of file PredicateWithPosition.icc. References evaluate(), and setPosition(). |
1.3-rc3