12 #ifndef __GA_OffsetMatrix__
13 #define __GA_OffsetMatrix__
43 {
return (inclusive ?
sizeof(*
this) : 0) + myList.getMemoryUsage(
false); }
72 { myList.reserve(rows*cols); }
94 { myList.set(row*myCols+col, value); }
97 {
return myList.get(
row*myCols+col); }
101 {
return get(
row, col); }
109 {
return myList.find(value); }
116 {
return myList.swapOffsetValues(defrag); }
GA_Size appendCol()
Add a single entry (may grow array)
Used to pass options and map offset values during saving.
GA_Size appendRow()
Add a single entry (may grow array)
JSON reader class which handles parsing of JSON or bJSON files.
Class which writes ASCII or binary JSON streams.
void clear()
clear removes all of the entries
exint GA_Size
Defines the bit width for index and offset types in GA.
GA_Size cols() const
Returns the used columns of the matrix (always <= to getRowCapacity())
void reserve(GA_Size rows, GA_Size cols)
GA_Offset operator()(GA_Size row, GA_Size col) const
Convenience () operator to access the list entries.
GA_Size swapOffsetValues(const GA_Defragment &defrag)
Defragmentation of IndexMaps.
void set(GA_Size row, GA_Size col, GA_Offset value)
Set the index to the value.
int64 getMemoryUsage(bool inclusive) const
Report memory usage.
GA_Size find(GA_Offset value) const
GA_Size rows() const
Returns the used rows of the matrix (always <= to getRowCapacity())
GLubyte GLubyte GLubyte GLubyte w
GLenum GLenum GLsizei void * row