Xmipp
v3.23.11-Nereus
|
#include <array_2D.h>
Public Member Functions | |
Array2D () | |
Array2D (int xSize, int ySize) | |
Array2D (const Array2D &other) | |
Copy constructor. More... | |
~Array2D () | |
Destructor. More... | |
void | allocateZeros (int xSize, int ySize) |
Allocate memory and initialized with zeros. More... | |
void | clear () |
Clear memory. More... | |
Array2D & | operator= (const Array2D &other) |
Assignment. More... | |
T & | operator() (int x, int y) const |
int | getXSize () const |
get Xsize More... | |
int | getYSize () const |
get Ysize More... | |
bool | inRange (int x, int y) const |
check if in range More... | |
bool | inRangeX (int x) const |
check x in range More... | |
bool | inRangeY (int y) const |
check Y in range More... | |
T * | getRow (int y) const |
get y-th row More... | |
struct is used for compatibility with OpenCL / C for Cuda Instance of this struct represent a 2D array of arbitrary type. Data are being stored as a dynamic 2D array (i.e. not continuous block of memory). Access to elements will be the fastest if traversing in Y -> X order.
Definition at line 38 of file array_2D.h.
Empty constructor
Definition at line 41 of file array_2D.h.
Constructor, allocates the data immediately
Definition at line 44 of file array_2D.h.
Destructor.
Definition at line 55 of file array_2D.h.
|
inline |
|
inline |
|
inline |
get y-th row
Definition at line 139 of file array_2D.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |