This class implements a dynamic vector of SuitFunc values.
More...
#include <suitfuncptrvector.h>
This class implements a dynamic vector of SuitFunc values.
◆ SuitFuncPtrVector()
SuitFuncPtrVector::SuitFuncPtrVector |
( |
| ) |
|
|
inline |
◆ ~SuitFuncPtrVector()
SuitFuncPtrVector::~SuitFuncPtrVector |
( |
| ) |
|
This is the SuitFuncPtrVector destructor.
- Note
- This will free all the memory allocated to all the elements of the vector
◆ Delete()
void SuitFuncPtrVector::Delete |
( |
int |
pos, |
|
|
Keeper *const |
keeper |
|
) |
| |
This will delete an entry from the vector.
- Parameters
-
pos | is the element of the vector to be deleted |
keeper | is the Keeper for the current model |
- Note
- This will free the memory allocated to the deleted element of the vector
◆ operator[]() [1/2]
SuitFunc*& SuitFuncPtrVector::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]
SuitFunc* const& SuitFuncPtrVector::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
◆ readSuitFunction()
void SuitFuncPtrVector::readSuitFunction |
( |
CommentStream & |
infile, |
|
|
const char * |
suitname, |
|
|
const TimeClass *const |
TimeInfo, |
|
|
Keeper *const |
keeper |
|
) |
| |
This function will read SuitFunc data from the input file.
- Parameters
-
infile | is the CommentStream to read suitability function data from |
suitname | is the name for the suitability function |
TimeInfo | is the TimeClass for the current model |
keeper | is the Keeper for the current model |
◆ resize()
void SuitFuncPtrVector::resize |
( |
SuitFunc * |
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 SuitFuncPtrVector::Size |
( |
| ) |
const |
|
inline |
This will return the size of the vector.
- Returns
- the size of the vector
◆ size
int SuitFuncPtrVector::size |
|
protected |
This is the size of the vector.
The documentation for this class was generated from the following files: