This class implements a dynamic vector of PopRatioVector values, indexed from minpos not 0.
More...
#include <popratioindexvector.h>
This class implements a dynamic vector of PopRatioVector values, indexed from minpos not 0.
◆ PopRatioIndexVector() [1/4]
| PopRatioIndexVector::PopRatioIndexVector |
( |
| ) |
|
|
inline |
◆ PopRatioIndexVector() [2/4]
| PopRatioIndexVector::PopRatioIndexVector |
( |
int |
sz, |
|
|
int |
minpos |
|
) |
| |
This is the PopRatioIndexVector constructor for a specified size.
- Parameters
-
| sz | is the size of the vector to be created |
| minpos | is the index for the vector to be created |
- Note
- The elements of the vector will all be created, and set to zero
◆ PopRatioIndexVector() [3/4]
| PopRatioIndexVector::PopRatioIndexVector |
( |
int |
sz, |
|
|
int |
minpos, |
|
|
const PopRatioVector & |
initial |
|
) |
| |
This is the PopRatioIndexVector constructor for a specified size with an initial value.
- Parameters
-
| sz | is the size of the vector to be created |
| minpos | is the index for the vector to be created |
| initial | is the initial value for all the entries of the vector |
◆ PopRatioIndexVector() [4/4]
◆ ~PopRatioIndexVector()
| PopRatioIndexVector::~PopRatioIndexVector |
( |
| ) |
|
This is the PopRatioIndexVector destructor.
- Note
- This will free all the memory allocated to all the elements of the vector
◆ maxCol()
| int PopRatioIndexVector::maxCol |
( |
| ) |
const |
|
inline |
This will return the length of the vector.
- Returns
- the length of the vector
◆ minCol()
| int PopRatioIndexVector::minCol |
( |
| ) |
const |
|
inline |
This will return the index of the vector.
- Returns
- the index of the vector
◆ operator[]() [1/2]
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 PopRatioVector& PopRatioIndexVector::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 PopRatioIndexVector::resize |
( |
int |
addsize, |
|
|
int |
newminpos, |
|
|
const PopRatioVector & |
initial |
|
) |
| |
This will add new entries to the vector.
- Parameters
-
| addsize | is the number of new entries to the vector |
| newminpos | is the index for the vector to be created |
| initial | is the value that will be entered for the new entries |
◆ Size()
| int PopRatioIndexVector::Size |
( |
| ) |
const |
|
inline |
This will return the size of the vector.
- Returns
- the size of the vector
◆ minpos
| int PopRatioIndexVector::minpos |
|
protected |
This is the index for the vector.
◆ size
| int PopRatioIndexVector::size |
|
protected |
This is the size of the vector.
The documentation for this class was generated from the following files: