#include <SimpleArrayData.hh>
Inheritance diagram for SimpleArrayDataT< T >:

Public Methods | |
| SimpleArrayDataT (T *array, int length) | |
| Constructor. | |
| SimpleArrayDataT (int length) | |
| Constructor. | |
| ~SimpleArrayDataT () | |
| Destructor. | |
| int | size () const |
| returns size of mArray | |
| T * | array () |
| returns pointer mArray | |
| const T & | operator[] (int i) const |
| Allows for vector[i] notation. | |
Protected Attributes | |
| int | mNeverDelete |
| Used to determine whether or not to delete mArray. | |
| int | mSize |
| Size of mArray. | |
| T * | mArray |
| Actual array stored. | |
Matrix and vector classes use objects of this class to store the actual matrix or vector.
This is a template class. For your convenience, the type SimpleArrayData has been defined to be SimpleArrayDataT<double>. In other words, SimpleArrayData holds arrays of double precision data.
|
||||||||||||||||
|
Constructor. Stores parameter array as a member pointer mArray. Ensures when destructor is called that array is not deleted. |
|
||||||||||
|
Constructor. Creates a new array. Ensures that elements in mArray are deleted when the object goes out of scope. |
|
|||||||||
|
Destructor. Deletes mArray if necessary. |
|
||||||||||
|
Allows for vector[i] notation. Return mElements[i] |
1.2.18