QTrk
Public Member Functions | Public Attributes | List of all members
LVArray2D< T > Struct Template Reference

LabVIEW 2D Array template. More...

#include <labview.h>

Public Member Functions

T & xy (int col, int row)
 
T & get (int row, int col)
 
int numElem ()
 

Public Attributes

int32_t dimSizes [2]
 
elem [1]
 

Detailed Description

template<typename T>
struct LVArray2D< T >

LabVIEW 2D Array template.

Definition at line 41 of file labview.h.

Member Function Documentation

§ get()

template<typename T>
T& LVArray2D< T >::get ( int  row,
int  col 
)
inline

Definition at line 48 of file labview.h.

48  {
49  return elem[row*dimSizes[1]+col];
50  }
int32_t dimSizes[2]
Definition: labview.h:42
T elem[1]
Definition: labview.h:43

§ numElem()

template<typename T>
int LVArray2D< T >::numElem ( )
inline

Definition at line 51 of file labview.h.

51 { return dimSizes[0]*dimSizes[1]; }
int32_t dimSizes[2]
Definition: labview.h:42

§ xy()

template<typename T>
T& LVArray2D< T >::xy ( int  col,
int  row 
)
inline

Definition at line 45 of file labview.h.

45  {
46  return elem[row*dimSizes[1]+col];
47  }
int32_t dimSizes[2]
Definition: labview.h:42
T elem[1]
Definition: labview.h:43

Member Data Documentation

§ dimSizes

template<typename T>
int32_t LVArray2D< T >::dimSizes[2]

Definition at line 42 of file labview.h.

§ elem

template<typename T>
T LVArray2D< T >::elem[1]

Definition at line 43 of file labview.h.


The documentation for this struct was generated from the following file: