Inheritance diagram for RS::PredicateWithVector:


Public Member Functions | |
| PredicateWithVector (const Vector &vec) | |
| Constructor taking the default argument for the vector used as an argument in the predicate. | |
| PredicateWithVector (const PredicateWithVector &) | |
| Creates a predicate that is an exact copy of obj. | |
| virtual | ~PredicateWithVector () |
| Destroys the predicate. | |
| PredicateWithVector & | operator= (const PredicateWithVector &) |
| 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 | setVector (const Vector &vec) |
| Used to set the predicate's vector argument to pos. | |
| virtual Vector | getVector () const |
| Return the predicate's vector argument. | |
| virtual FuzzyBool | evaluate ()=0 |
| Should return the truth value of the predicate. | |
| virtual FuzzyBool | evaluate (const Vector &vec) |
| This method is used to first set the argument of the predicate and then evaluate it. | |
Protected Attributes | |
| Vector | vector |
| The vector argument. | |
Definition at line 68 of file PredicateWithVector.h.
|
|
Assignment operator. Assigns obj to this object. Definition at line 70 of file PredicateWithVector.cc. References vector. |
|
|
Used to set the predicate's arguments in a generic way. The first value in the vector will be interpreted as the distance and the second value as the direction in degrees. Implements RS::PredicateWithArguments. Definition at line 52 of file PredicateWithVector.icc. References RS_THROW, and RS::Vector. |
|
|
This method is used to first set the argument of the predicate and then evaluate it. It uses the methods setVector and evaluate(), so it should not be overriden unless it should made unavailable. Definition at line 76 of file PredicateWithVector.icc. References evaluate(), and setVector(). |
1.3-rc3