|
OSFI-C++
3.9.2
OpenSF Integration Library
|
#include <DynamicArray.h>
Public Member Functions | |
| DynamicArray () | |
| DynamicArray (int rows, int columns) | |
| const std::vector< T > & | operator[] (int i) const |
| std::vector< T >::reference | operator() (int i, int j) |
| std::vector< T >::const_reference | operator() (int i, int j) const |
| std::vector< T >::reference | at (int i, int j) |
| std::vector< T >::const_reference | at (int i, int j) const |
| void | resize (int rows, int columns) |
| int | getRows () const |
| int | getColumns () const |
An implementation of a generic and dynamic bi-dimensional matrix.
|
inline |
Class default constructor.
|
inline |
Class "size" constructor. Creates an instance of the class, specifying the number of rows and columns.
| rows | number of rows |
| columns | number of columns |
|
inline |
Returns a reference to the element in row i and column j
| i | rows |
| j | columns |
| std::out_of_range | If the row or column are not in range |
|
inline |
Returns a reference to the element in row i and column j
| i | rows |
| j | columns |
| std::out_of_range | If the row or column are not in range |
|
inline |
Gets the number of columns.
|
inline |
Gets the number of rows.
|
inline |
Indexing operator.
| i | rows |
| j | columns |
|
inline |
Constant indexing operator.
| i | rows |
| j | columns |
|
inline |
Constant indexing operator.
| i | element number |
|
inline |
Changes the size of the instance.
| rows | - new number of rows |
| columns | - new number of columns |