This class implements a dynamic vector of Tags values.
More...
#include <tagptrvector.h>
This class implements a dynamic vector of Tags values.
◆ TagPtrVector() [1/2]
TagPtrVector::TagPtrVector |
( |
| ) |
|
|
inline |
◆ TagPtrVector() [2/2]
◆ ~TagPtrVector()
TagPtrVector::~TagPtrVector |
( |
| ) |
|
This is the TagPtrVector destructor.
- Note
- This will free all the memory allocated to all the elements of the vector
◆ Delete()
void TagPtrVector::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
◆ deleteAll()
void TagPtrVector::deleteAll |
( |
| ) |
|
This function will delete all the elements of the vector.
◆ deleteAllTags()
void TagPtrVector::deleteAllTags |
( |
| ) |
|
This function will delete all the tagging experiments from the vector.
◆ deleteTags()
void TagPtrVector::deleteTags |
( |
const TimeClass *const |
TimeInfo | ) |
|
This function will delete all the tagging experiments from the vector that have expired for the current timestep.
- Parameters
-
TimeInfo | is the TimeClass for the current model |
◆ operator[]() [1/2]
Tags*& TagPtrVector::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]
Tags* const& TagPtrVector::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 TagPtrVector::resize |
( |
Tags * |
value | ) |
|
This will add one new entry to the vector.
- Parameters
-
value | is the value that will be entered for the new entry |
◆ Size()
int TagPtrVector::Size |
( |
| ) |
const |
|
inline |
This will return the size of the vector.
- Returns
- the size of the vector
◆ updateTags()
void TagPtrVector::updateTags |
( |
const TimeClass *const |
TimeInfo | ) |
|
This function will update all the elements of the vector for the current timestep.
- Parameters
-
TimeInfo | is the TimeClass for the current model |
◆ size
This is the size of the vector.
This is the vector of Tags values.
The documentation for this class was generated from the following files: