#include <Range.h>
Collaboration diagram for Range< T >:
Public Member Functions | |
Range () | |
Constructor. | |
Range (T min, T max) | |
Constructor. | |
Range< T > & | add (T t) |
The function enlarges the range so that a certain value will be part of it. | |
Range< T > & | add (const Range< T > &r) |
The function enlarges the range so that the resulting range also contains another one. | |
bool | isInside (T t) const |
The function checks whether a certain value is in the range. | |
T | limit (T t) const |
The function limits a certain value to the range. | |
Range< T > | limit (const Range< T > &r) const |
The function limits another range to this range. | |
T | getSize () const |
The function returns the size of the range. | |
T | getCenter () const |
The function returns the center of the range. | |
The 13 Allen relations | |
bool | operator== (const Range< T > &r) const |
bool | operator< (const Range< T > &r) const |
bool | operator> (const Range< T > &r) const |
bool | meets (const Range< T > &r) const |
bool | metBy (const Range< T > &r) const |
bool | overlaps (const Range< T > &r) const |
bool | overlappedBy (const Range< T > &r) const |
bool | starts (const Range< T > &r) const |
bool | startedBy (const Range< T > &r) const |
bool | finishes (const Range< T > &r) const |
bool | finishedBy (const Range< T > &r) const |
bool | during (const Range< T > &r) const |
bool | contains (const Range< T > &r) const |
Public Attributes | |
T | min |
T | max |
The limits of the range. |
It also defines the 13 Allen relations
Definition at line 15 of file Range.h.
|
Constructor. Defines an empty range. Definition at line 24 of file Range.h. Referenced by GT2004BasicBehaviorGoToPointAndAvoidObstacles::execute(), and GT2004BasicBehaviorTurnAroundPoint::execute(). |
|
Constructor.
|
|
The function enlarges the range so that a certain value will be part of it.
Definition at line 39 of file Range.h. Referenced by Range< double >::add(). |
|
The function enlarges the range so that the resulting range also contains another one.
|
|
The function checks whether a certain value is in the range. Note that the function is able to handle circular range, i.e. max < min.
|
|
The function limits a certain value to the range. Note that the function is not able to handle circular range, i.e. max < min.
Definition at line 75 of file Range.h. Referenced by GT2004HeadControl::getLookAtBallAngles(), GT2004HeadPathPlanner::init(), Range< double >::limit(), and GT2004HeadControl::simpleLookAtPointRelativeToRobot(). |
|
The function limits another range to this range. Note that the function is able to handle circular range, i.e. max < min.
|
|
The function returns the size of the range.
Definition at line 89 of file Range.h. Referenced by GoalRecognizer::scanHorizontalForGoals(), and GT2004GoalRecognizer::scanHorizontalForGoals(). |
|
The function returns the center of the range.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|