This class implements a dynamic vector of TimeVariable values.
More...
#include <timevariablevector.h>
This class implements a dynamic vector of TimeVariable values.
◆ TimeVariableVector()
TimeVariableVector::TimeVariableVector |
( |
| ) |
|
|
inline |
◆ ~TimeVariableVector()
TimeVariableVector::~TimeVariableVector |
( |
| ) |
|
This is the TimeVariableVector destructor.
- Note
- This will free all the memory allocated to all the elements of the vector
◆ didChange()
int TimeVariableVector::didChange |
( |
const TimeClass *const |
TimeInfo | ) |
const |
This function will check to see if the TimeVariable 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 TimeVariable& TimeVariableVector::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 TimeVariable 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 TimeVariableVector::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 TimeVariableVector::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 TimeVariableVector::Size |
( |
| ) |
const |
|
inline |
This will return the size of the vector.
- Returns
- the size of the vector
◆ Update()
void TimeVariableVector::Update |
( |
const TimeClass *const |
TimeInfo | ) |
|
This function will update the TimeVariable values.
- Parameters
-
TimeInfo | is the TimeClass for the current model |
◆ size
int TimeVariableVector::size |
|
protected |
This is the size of the vector.
The documentation for this class was generated from the following files: