This class implements a dynamic vector of Formula values.
More...
#include <formulavector.h>
This class implements a dynamic vector of Formula values.
◆ FormulaVector() [1/4]
FormulaVector::FormulaVector |
( |
| ) |
|
|
inline |
◆ FormulaVector() [2/4]
FormulaVector::FormulaVector |
( |
int |
sz, |
|
|
Formula |
initial |
|
) |
| |
This is the FormulaVector 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 |
◆ FormulaVector() [3/4]
FormulaVector::FormulaVector |
( |
int |
sz, |
|
|
double |
initial |
|
) |
| |
This is the FormulaVector 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 |
◆ FormulaVector() [4/4]
◆ ~FormulaVector()
FormulaVector::~FormulaVector |
( |
| ) |
|
This is the FormulaVector destructor.
- Note
- This will free all the memory allocated to all the elements of the vector
◆ Delete()
void FormulaVector::Delete |
( |
int |
pos, |
|
|
Keeper * |
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
◆ Inform()
void FormulaVector::Inform |
( |
Keeper * |
keeper | ) |
|
This function will inform Keeper of the values of the stored Formula.
- Parameters
-
keeper | is the Keeper for the current model |
◆ operator[]() [1/2]
Formula& FormulaVector::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 Formula& FormulaVector::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 FormulaVector::resize |
( |
int |
addsize, |
|
|
Keeper * |
keeper |
|
) |
| |
This will add new blank (ie. NULL) entries to the vector.
- Parameters
-
addsize | is the number of blank entries that will be entered |
keeper | is the Keeper for the current model |
- Note
- The new elements of the vector will be created, and set to zero
◆ Size()
int FormulaVector::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.
This is the vector of Formula values.
The documentation for this class was generated from the following files: