OSFI-C++
3.10.0
OpenSF Integration Library
|
#include <DynamicArray.h>
Public Member Functions | |
DynamicArray ()=default | |
DynamicArray (int rows, int columns) | |
OSFI_DEPRECATED ("Use operator() instead to access elements like mat(i,j)") const std | |
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 |
Friends | |
bool | operator== (const DynamicArray &lhs, const DynamicArray &rhs) |
bool | operator!= (const DynamicArray &lhs, const DynamicArray &rhs) |
An implementation of a generic and dynamic bi-dimensional matrix.
|
default |
Class default constructor, creates a 0x0 matrix
|
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 |
Indexing operator (checked).
i | rows |
j | columns |
std::out_of_range | If the row or column are not in range |
|
inline |
Indexing operator (checked).
i | rows |
j | columns |
std::out_of_range | If the row or column are not in range |
|
inline |
|
inline |
|
inline |
Indexing operator (unchecked).
i | rows |
j | columns |
|
inline |
Constant indexing operator.
i | element number |
Indexing operator (unchecked).
i | rows |
j | columns |
|
inline |
Changes the size of the data. New elements will be default initialized.
rows | new number of rows |
columns | new number of columns |
|
friend |
Inequality operator. Two instances compare different if either their sizes or values differ.
|
friend |
Equality comparison operator. Two instances compare equal if their sizes and all their values are the same.
lhs,rhs | instances to compare |