|  | 
#include <core/Matrix.hpp>
| Public Member Functions | |
| Matrix () | |
| Matrix (const Matrix &Matrix) | |
| Matrix (unsigned long ColsNbr, unsigned long RowsNbr) | |
| Matrix (unsigned long ColsNbr, unsigned long RowsNbr, T InitValue) | |
| virtual | ~Matrix () | 
| unsigned long | getColsNbr () const | 
| unsigned long | getRowsNbr () const | 
| unsigned long | getSize () const | 
| unsigned long | size () const | 
| T * | data () const | 
| void | setData (T *Data, unsigned long ColsNbr, unsigned long RowsNbr) | 
| T | getElement (unsigned long ColIndex, unsigned long RowIndex) const | 
| T | at (unsigned long ColIndex, unsigned long RowIndex) const | 
| T | get (unsigned long ColIndex, unsigned long RowIndex) const | 
| void | setElement (unsigned long ColIndex, unsigned long RowIndex, T Element) | 
| void | set (unsigned long ColIndex, unsigned long RowIndex, T Element) | 
| Matrix< T > & | operator= (const Matrix &A) | 
| void | fill (const T &Val) | 
| void | clear () | 
| Protected Member Functions | |
| bool | allocate (unsigned long ColsNbr, unsigned long RowsNbr) | 
| void | init () | 
| Protected Attributes | |
| T * | m_Data | 
| unsigned long | m_ColsNbr | 
| unsigned long | m_RowsNbr | 
Template class for matrix data
| openfluid::core::Matrix< T >::Matrix | ( | ) | 
Default constructor, creates an empty Matrix
| openfluid::core::Matrix< T >::Matrix | ( | const Matrix< T > & | Matrix | ) | 
Copy constructor
| openfluid::core::Matrix< T >::Matrix | ( | unsigned long | ColsNbr, | 
| unsigned long | RowsNbr | ||
| ) | 
Constructor, creates a Matrix containing Size elements
| openfluid::core::Matrix< T >::Matrix | ( | unsigned long | ColsNbr, | 
| unsigned long | RowsNbr, | ||
| T | InitValue | ||
| ) | 
Constructor, creates a Matrix containing Size elements, initialized with value InitValue
| 
 | inlinevirtual | 
Destructor
| 
 | protected | 
| 
 | inline | 
Returns the element of the Matrix for index Index
| void openfluid::core::Matrix< T >::clear | ( | ) | 
Clears the Matrix (empty and size is 0)
| 
 | inline | 
Returns a pointer to the content of the Matrix (like C arrays)
| void openfluid::core::Matrix< T >::fill | ( | const T & | Val | ) | 
Fills the Matrix with given value
| 
 | inline | 
Returns the element of the Matrix for index Index
| 
 | inline | 
Returns the number of columns of the Matrix
| T openfluid::core::Matrix< T >::getElement | ( | unsigned long | ColIndex, | 
| unsigned long | RowIndex | ||
| ) | const | 
Returns the element of the Matrix for index Index
| 
 | inline | 
Returns the number of rows of the Matrix
| 
 | inline | 
| 
 | protected | 
| Matrix< T > & openfluid::core::Matrix< T >::operator= | ( | const Matrix< T > & | A | ) | 
Allocation operator
| 
 | inline | 
Sets a new value for element at the given index
| void openfluid::core::Matrix< T >::setData | ( | T * | Data, | 
| unsigned long | ColsNbr, | ||
| unsigned long | RowsNbr | ||
| ) | 
Sets data from a pointer to a content (like C arrays)
| void openfluid::core::Matrix< T >::setElement | ( | unsigned long | ColIndex, | 
| unsigned long | RowIndex, | ||
| T | Element | ||
| ) | 
Sets a new value for element at the given index
| 
 | inline | 
Returns the full size of the Matrix
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
 1.8.6
 1.8.6