This class implements a dynamic vector of Fleet values.
More...
#include <fleetptrvector.h>
This class implements a dynamic vector of Fleet values.
◆ FleetPtrVector() [1/2]
FleetPtrVector::FleetPtrVector |
( |
| ) |
|
|
inline |
◆ FleetPtrVector() [2/2]
◆ ~FleetPtrVector()
FleetPtrVector::~FleetPtrVector |
( |
| ) |
|
This is the FleetPtrVector destructor.
- Note
- This will free all the memory allocated to all the elements of the vector
◆ Delete()
void FleetPtrVector::Delete |
( |
int |
pos | ) |
|
This will delete an entry from the vector.
- Parameters
-
pos | is the element of the vector to be deleted |
- Note
- This will free the memory allocated to the deleted element of the vector
◆ operator[]() [1/2]
Fleet*& FleetPtrVector::operator[] |
( |
int |
pos | ) |
|
|
inline |
This will return the value of an element of the vector.
- Parameters
-
pos | is the element of the vector to be returned |
- Returns
- the value of the specified element
◆ operator[]() [2/2]
Fleet* const& FleetPtrVector::operator[] |
( |
int |
pos | ) |
const |
|
inline |
This will return the value of an element of the vector.
- Parameters
-
pos | is the element of the vector to be returned |
- Returns
- the value of the specified element
◆ resize()
void FleetPtrVector::resize |
( |
Fleet * |
value | ) |
|
This will add one new entry to the vector.
- Parameters
-
value | is the value that will be entered for the new entry |
◆ Size()
int FleetPtrVector::Size |
( |
| ) |
const |
|
inline |
This will return the size of the vector.
- Returns
- the size of the vector
◆ size
This is the size of the vector.
Fleet** FleetPtrVector::v |
|
protected |
This is the vector of Fleet values.
The documentation for this class was generated from the following files: