This class implements a dynamic vector of char values.
More...
#include <charptrvector.h>
|
char ** | v |
| This is the vector of char values. More...
|
|
int | size |
| This is the size of the vector. More...
|
|
This class implements a dynamic vector of char values.
◆ CharPtrVector() [1/2]
CharPtrVector::CharPtrVector |
( |
| ) |
|
|
inline |
◆ CharPtrVector() [2/2]
◆ ~CharPtrVector()
CharPtrVector::~CharPtrVector |
( |
| ) |
|
This is the CharPtrVector destructor.
- Note
- This will free all the memory allocated to all the elements of the vector
◆ Delete()
void CharPtrVector::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
◆ operator=()
This operator will set the vector equal to an existing CharPtrVector.
- Parameters
-
◆ operator[]() [1/2]
char*& CharPtrVector::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]
char* const& CharPtrVector::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
◆ Reset()
void CharPtrVector::Reset |
( |
| ) |
|
This will reset the vector.
- Note
- This will delete every entry from the vector and set the size to zero
◆ resize()
void CharPtrVector::resize |
( |
char * |
value | ) |
|
This will add one new entry to the vector.
- Parameters
-
value | is the value that will be entered for the new entry |
◆ resizeBlank()
void CharPtrVector::resizeBlank |
( |
int |
addsize | ) |
|
This will add new blank (ie. NULL) entries to the vector.
- Parameters
-
addsize | is the number of blank entries that will be entered |
◆ Size()
int CharPtrVector::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 char values.
The documentation for this class was generated from the following files: