Belle II Software development
|
class to replace POD 2D array to save stack usage since it just allocates memory dynamically. More...
#include <WrapArray2D.h>
Public Member Functions | |
WrapArray2D (int rows, int cols) | |
replace POD 2D array | |
WrapArray2D (const WrapArray2D &)=delete | |
no copy | |
WrapArray2D & | operator= (const WrapArray2D &)=delete |
no assignment | |
~WrapArray2D () | |
destructor | |
T * | operator[] (int irow) |
return row | |
operator T* () | |
return | |
Private Attributes | |
T * | m_data |
content of the 2d array | |
int | m_ncols |
number of columns | |
class to replace POD 2D array to save stack usage since it just allocates memory dynamically.
Definition at line 23 of file WrapArray2D.h.
|
inline |
|
inline |
|
inline |
|
inline |
return row
Definition at line 41 of file WrapArray2D.h.
|
private |
content of the 2d array
Definition at line 50 of file WrapArray2D.h.
|
private |
number of columns
Definition at line 51 of file WrapArray2D.h.