This class implements a dynamic vector of PopInfo values.
More...
#include <popinfovector.h>
This class implements a dynamic vector of PopInfo values.
◆ PopInfoVector() [1/3]
PopInfoVector::PopInfoVector |
( |
| ) |
|
|
inline |
◆ PopInfoVector() [2/3]
PopInfoVector::PopInfoVector |
( |
int |
sz, |
|
|
PopInfo |
initial |
|
) |
| |
This is the PopInfoVector constructor for a specified size.
- Parameters
-
sz | is the size of the vector to be created |
initial | is the initial value for all the entries of the vector |
◆ PopInfoVector() [3/3]
◆ ~PopInfoVector()
PopInfoVector::~PopInfoVector |
( |
| ) |
|
This is the PopInfoVector destructor.
- Note
- This will free all the memory allocated to all the elements of the vector
◆ Delete()
void PopInfoVector::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]
PopInfo& PopInfoVector::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]
const PopInfo& PopInfoVector::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 PopInfoVector::resize |
( |
PopInfo |
value | ) |
|
This will add one new entry to the vector.
- Parameters
-
value | is the value that will be entered for the new entry |
◆ resizeBlank()
void PopInfoVector::resizeBlank |
( |
int |
addsize | ) |
|
This will add new blank (ie. NULL) entries to the vector.
- Parameters
-
addsize | is the number of blank entries that will be entered |
◆ Size()
int PopInfoVector::Size |
( |
| ) |
const |
|
inline |
This will return the size of the vector.
- Returns
- the size of the vector
◆ Sum()
This function will sum the elements of an existing PopInfoVector, possibly allowing for the length grouping to be changed using a ConversionIndex.
- Parameters
-
Number | is the PopInfoVector containing the elements to be summed |
CI | is the ConversionIndex to be used to convert from one length grouping to another |
◆ size
This is the size of the vector.
This is the vector of PopInfo values.
The documentation for this class was generated from the following files: