This class implements a dynamic vector of ModelVariable values.
More...
#include <modelvariablevector.h>
This class implements a dynamic vector of ModelVariable values.
◆ ModelVariableVector()
ModelVariableVector::ModelVariableVector |
( |
| ) |
|
|
inline |
◆ ~ModelVariableVector()
ModelVariableVector::~ModelVariableVector |
( |
| ) |
|
This is the ModelVariableVector destructor.
- Note
- This will free all the memory allocated to all the elements of the vector
◆ didChange()
int ModelVariableVector::didChange |
( |
const TimeClass *const |
TimeInfo | ) |
const |
This function will check to see if the ModelVariable values have changed.
- Parameters
-
TimeInfo | is the TimeClass for the current model |
- Returns
- 1 if the values have changed, 0 otherwise
◆ 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 ModelVariable& ModelVariableVector::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
◆ read()
This function will read the value of the ModelVariable entries from file.
- Parameters
-
infile | is the CommentStream to read the parameters from |
TimeInfo | is the TimeClass for the current model |
keeper | is the Keeper for the current model |
◆ resize() [1/2]
This will add one new entry to the vector and inform Keeper of the change.
- Parameters
-
◆ resize() [2/2]
void ModelVariableVector::resize |
( |
int |
addsize, |
|
|
Keeper *const |
keeper |
|
) |
| |
This will add new empty entries to the vector and inform Keeper of the change.
- Parameters
-
addsize | is the number of new entries to the vector |
keeper | is the Keeper for the current model |
- Note
- The new elements of the vector will be created, and set to zero
◆ setsize()
void ModelVariableVector::setsize |
( |
int |
addsize | ) |
|
This will add new empty entries to the vector.
- Parameters
-
addsize | is the number of new entries to the vector |
- Note
- All elements of the vector will be created, and set to zero
◆ Size()
int ModelVariableVector::Size |
( |
| ) |
const |
|
inline |
This will return the size of the vector.
- Returns
- the size of the vector
◆ Update()
void ModelVariableVector::Update |
( |
const TimeClass *const |
TimeInfo | ) |
|
◆ size
int ModelVariableVector::size |
|
protected |
This is the size of the vector.
The documentation for this class was generated from the following files: