This class encapsulates a collection of TSLWayPoint objects.
◆ TSLWayPointSet() [1/2]
| TSLWayPointSet::TSLWayPointSet |
( |
| ) |
|
◆ TSLWayPointSet() [2/2]
◆ ~TSLWayPointSet()
| TSLWayPointSet::~TSLWayPointSet |
( |
| ) |
|
◆ add()
| void TSLWayPointSet::add |
( |
TSLWayPoint const & | wayPoint | ) |
|
Add a waypoint to the collection.
- Parameters
-
| wayPoint | A (const) reference to the waypoint. |
The waypoint is always added in sequence order. If another waypoint has the same sequence number, it is replaced.
◆ clear()
| void TSLWayPointSet::clear |
( |
| ) |
|
◆ empty()
| bool TSLWayPointSet::empty |
( |
| ) |
const |
Returns true if the collection is empty, false otherwise.
◆ operator=()
◆ operator[]()
| TSLWayPoint * TSLWayPointSet::operator[] |
( |
int | sequenceNumber | ) |
|
Returns a pointer to the waypoint which has the corresponding sequence number.
- Parameters
-
| seq | The sequence number of the waypoint. |
- Returns
- a pointer to the waypoint or NULL if no waypoint exists with the given sequence number..
◆ remove()
| void TSLWayPointSet::remove |
( |
int | sequenceNumber | ) |
|
Removes from the collection the waypoint with the given sequence number.
- Parameters
-
| sequenceNumber | The sequence number of the waypoint that is to be removed. |
◆ size()
| int TSLWayPointSet::size |
( |
| ) |
const |
Returns the number of waypoints in the collection.
◆ wayPoint() [1/2]
Returns a pointer to the Nth waypoint.
- Parameters
-
| N | The index of the waypoint. |
- Returns
- a pointer to the waypoint or NULL if out of bounds.
◆ wayPoint() [2/2]
| TSLWayPoint const * TSLWayPointSet::wayPoint |
( |
int | N | ) |
const |
Returns a pointer to the Nth (const) waypoint.
- Parameters
-
| N | The index of the waypoint. |
- Returns
- a pointer to the (const) waypoint or NULL if out of bounds.