|
The blo Library
|
Small 2D array, fixed size. More...
#include <Array2DFixed.h>
Public Member Functions | |
| Array2DFixed ()=default | |
| Default constructor. | |
| Array2DFixed (const T &val) | |
| Constructs array of specified value. | |
| Array2DFixed (const std::initializer_list< const std::initializer_list< T > > &lists) | |
| Constructs array that is a copy of specified initializer lists. | |
| Array2DFixed (const Array2DFixed< T, M, N > &rhs)=default | |
| Copy constructor. | |
| virtual | ~Array2DFixed ()=default |
| Destructor. | |
| Array2DFixed< T, M, N > & | operator= (const Array2DFixed< T, M, N > &rhs)=default |
| Copy assignment operator. | |
| T * | operator[] (int i) |
| Index array row. | |
| const T * | operator[] (int i) const |
| Index array row. | |
| T * | ptrData () |
| Retrieves the pointer to the beginning of the array. | |
| const T * | ptrData () const |
| Retrieves the pointer to the beginning of the array. | |
| void | set (const T &val) |
| Sets array elements to a value. | |
Static Public Member Functions | |
| static int | rows () |
| Number of rows in the array. | |
| static int | height () |
| Height of the array. | |
| static int | columns () |
| Number of columns in the array. | |
| static int | width () |
| Width of the array. | |
| static int | stride1 () |
| Stride in bytes between the rows in the array. | |
| static int | step () |
| Step in bytes between the rows in the array. | |
| static int | ld () |
| Leading dimension between the rows in the array. | |
| static int | stride2 () |
| Stride in bytes between the elements in the array. | |
Small 2D array, fixed size.
| T | Data type. |
| M | Size of first dimension. |
| N | Size of second dimension. |
|
default |
Default constructor.
|
explicit |
Constructs array of specified value.
| val | Constant value to assign to each element in the array. |
| blo::Array2DFixed< T, M, N >::Array2DFixed | ( | const std::initializer_list< const std::initializer_list< T > > & | lists | ) |
Constructs array that is a copy of specified initializer lists.
| lists | Initializer lists. |
|
default |
Copy constructor.
|
virtualdefault |
Destructor.
|
static |
Number of columns in the array.
|
static |
Height of the array.
|
static |
Leading dimension between the rows in the array.
|
default |
Copy assignment operator.
| T * blo::Array2DFixed< T, M, N >::operator[] | ( | int | i | ) |
Index array row.
| i | Row of the array. |
| const T * blo::Array2DFixed< T, M, N >::operator[] | ( | int | i | ) | const |
Index array row.
| i | Row of the array. |
| T * blo::Array2DFixed< T, M, N >::ptrData | ( | ) |
Retrieves the pointer to the beginning of the array.
| const T * blo::Array2DFixed< T, M, N >::ptrData | ( | ) | const |
Retrieves the pointer to the beginning of the array.
|
static |
Number of rows in the array.
| void blo::Array2DFixed< T, M, N >::set | ( | const T & | val | ) |
Sets array elements to a value.
| val | Constant value to assign to each element in the array. |
|
static |
Step in bytes between the rows in the array.
|
static |
Stride in bytes between the rows in the array.
|
static |
Stride in bytes between the elements in the array.
|
static |
Width of the array.