21 #ifndef __UT_RefMatrix_h__
22 #define __UT_RefMatrix_h__
33 explicit UT_RefMatrix(
unsigned int mSz = 0,
unsigned int nSz = 0);
38 int64 mem = inclusive ?
sizeof(*this) : 0;
39 mem += myArray.getMemoryUsage(
false);
66 void cycle(
int rowshift,
int colshift);
84 return myArray(i*myCols+j);
88 return myArray(i*myCols+j);
107 int find(
const T &
t,
unsigned int *m,
unsigned int *
n)
const;
111 unsigned int rows()
const {
return myRows; }
112 unsigned int cols()
const {
return myCols; }
116 void resize(
unsigned int mSz,
unsigned int nSz);
122 int apply(
int (*apply_func)(
T &
t,
void *d),
void *d);
int apply(int(*apply_func)(T &t, void *d), void *d)
typedef int(APIENTRYP RE_PFNGLXSWAPINTERVALSGIPROC)(int)
UT_RefMatrix< T > & operator=(const UT_RefMatrix< T > &m)
int removeRow(unsigned int index)
unsigned int insertRow(unsigned int index)
void swap(UT_RefMatrix< T > &other)
int64 getMemoryUsage(bool inclusive) const
UT_RefMatrix(unsigned int mSz=0, unsigned int nSz=0)
T & safeGet(unsigned i, unsigned j)
void resize(unsigned int mSz, unsigned int nSz)
unsigned int rows() const
int find(const T &t, unsigned int *m, unsigned int *n) const
unsigned int insertCol(unsigned int index)
const T safeGet(unsigned i, unsigned j) const
const T & operator()(unsigned i, unsigned j) const
int removeCol(unsigned int index)
void cycle(int rowshift, int colshift)
unsigned int appendCol(const UT_Array< T > &c)
unsigned int cols() const
int(* Comparator)(const T *, const T *)
int operator==(const UT_RefMatrix< T > &m) const
unsigned int appendRow(const UT_Array< T > &r)
T & operator()(unsigned i, unsigned j)