This class implements a dynamic vector of CharPtrVector values.
More...
#include <charptrmatrix.h>
This class implements a dynamic vector of CharPtrVector values.
◆ CharPtrMatrix()
CharPtrMatrix::CharPtrMatrix |
( |
| ) |
|
|
inline |
◆ ~CharPtrMatrix()
CharPtrMatrix::~CharPtrMatrix |
( |
| ) |
|
This is the CharPtrMatrix destructor.
- Note
- This will free all the memory allocated to all the elements of the vector
◆ Ncol()
int CharPtrMatrix::Ncol |
( |
int |
i = 0 | ) |
const |
|
inline |
This will return the number of columns in row i of the vector.
- Parameters
-
i | is the row of the vector to have the number of columns counted |
- Returns
- the number of columns in row i of the vector
- Note
- This is the number of entries in the CharPtrVector that is entry i of the CharPtrMatrix
◆ Nrow()
int CharPtrMatrix::Nrow |
( |
| ) |
const |
|
inline |
This will return the number of rows of the vector.
- Returns
- the number of rows of the vector
◆ 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]
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 CharPtrMatrix::resize |
( |
| ) |
|
This will add one new empty entry to the vector.
- Note
- The new element of the vector will be created, and set to zero
◆ nrow
This is number of rows of the vector.
The documentation for this class was generated from the following files: