Inheritance diagram for Exponent::Collections::TMatrix< TypeName >:
Definition at line 31 of file TMatrix.hpp.
Exponent::Collections::TMatrix< TypeName >::TMatrix | ( | const long | d1, | |
const long | d2 | |||
) |
Construction
d1 | Dimension 1 size | |
d2 | Dimension 2 size |
Exponent::Collections::TMatrix< TypeName >::TMatrix | ( | ) |
Default construction
Exponent::Collections::TMatrix< TypeName >::~TMatrix | ( | ) |
Destruction
void Exponent::Collections::TMatrix< TypeName >::addElementAtIndex | ( | const long | d1, | |
const long | d2, | |||
const TypeName & | object | |||
) |
Insert a pointer at a specific index
d1 | Dimension 1 index | |
d2 | Dimension 2 index | |
object | The object to add |
void Exponent::Collections::TMatrix< TypeName >::clearArray | ( | ) |
Clear the array - releases all objects
TypeName* Exponent::Collections::TMatrix< TypeName >::elementAtIndex | ( | const long | d1, | |
const long | d2 | |||
) |
Get the element at a specific index
d1 | Dimension 1 index | |
d2 | Dimension 2 index |
TypeName* | The object requested or NULL on error |
void Exponent::Collections::TMatrix< TypeName >::freePointers | ( | ) | [protected] |
Free pointers -> deleteds (but not allways) all pointers
long Exponent::Collections::TMatrix< TypeName >::getDimension1Size | ( | ) | const [inline] |
Get the size of the array
long | The dimension 1 of the array |
Definition at line 126 of file TMatrix.hpp.
References Exponent::Collections::TMatrix< TypeName >::m_dimension1.
long Exponent::Collections::TMatrix< TypeName >::getDimension2Size | ( | ) | const [inline] |
Get the size of the array
long | The dimension 2 of the array |
Definition at line 132 of file TMatrix.hpp.
References Exponent::Collections::TMatrix< TypeName >::m_dimension2.
const TypeName** Exponent::Collections::TMatrix< TypeName >::getInternalBuffer | ( | ) | const [inline] |
Get internal buffer
const | TypeName ** The internal buffer |
Definition at line 143 of file TMatrix.hpp.
References Exponent::Collections::TMatrix< TypeName >::m_pointers.
TypeName** Exponent::Collections::TMatrix< TypeName >::getMutableInternalBuffer | ( | ) | [inline] |
Get the internal buffer
const | TypeName ** The internal buffer |
Definition at line 149 of file TMatrix.hpp.
References Exponent::Collections::TMatrix< TypeName >::m_pointers.
void Exponent::Collections::TMatrix< TypeName >::initialise | ( | const long | d1, | |
const long | d2 | |||
) |
intialise the array with a specific size
d1 | Dimension 1 size | |
d2 | Dimension 2 size |
bool Exponent::Collections::TMatrix< TypeName >::isElementInArray | ( | const TypeName & | object | ) |
Is object in array
object | The object to look for |
bool | True if this object is stored in the array, false otherwise |
TMatrix& Exponent::Collections::TMatrix< TypeName >::operator= | ( | const TypeName & | element | ) |
Set all elements to
element | The element to set all to |
TMatrixy& | A reference to this |
TMatrix& Exponent::Collections::TMatrix< TypeName >::operator= | ( | const TMatrix< TypeName > & | other | ) |
Assignment operator
other | The vector to copy |
TMatrix& | A reference to this |
TypeName* Exponent::Collections::TMatrix< TypeName >::operator[] | ( | const long | index | ) | [inline] |
Index operator
index | The dimension1 index to retrieve |
Definition at line 80 of file TMatrix.hpp.
References Exponent::Collections::TMatrix< TypeName >::m_pointers.
void Exponent::Collections::TMatrix< TypeName >::setAllElementsTo | ( | const TypeName & | element | ) |
Set all elements to
element | The element to set all to |
long Exponent::Collections::TMatrix< TypeName >::m_dimension1 [protected] |
Dimension 1 size
Definition at line 165 of file TMatrix.hpp.
Referenced by Exponent::Collections::TMatrix< TypeName >::getDimension1Size().
long Exponent::Collections::TMatrix< TypeName >::m_dimension2 [protected] |
Dimension 2 size
Definition at line 166 of file TMatrix.hpp.
Referenced by Exponent::Collections::TMatrix< TypeName >::getDimension2Size().
TypeName** Exponent::Collections::TMatrix< TypeName >::m_pointers [protected] |
the double array of pointers
Definition at line 164 of file TMatrix.hpp.
Referenced by Exponent::Collections::TMatrix< TypeName >::getInternalBuffer(), Exponent::Collections::TMatrix< TypeName >::getMutableInternalBuffer(), and Exponent::Collections::TMatrix< TypeName >::operator[]().