33 if( (
size+num) < 16384)
35 memcpy(&(
arr[
size]), a, (num<<2));
40 for(
unsigned int i=0;i<
num;++i)
59 return vec[idx-16384];
68 for(
unsigned int i=0;i<
size;++i)
75 for(
unsigned int i=0;i<16384;++i)
89 std::vector<unsigned int>
vec;
90 unsigned int arr[16384];
104 void fill(
unsigned int* buf,
unsigned int bufsize)
114 std::vector<unsigned int> tempvec;
115 for(
unsigned int i=0;i<bufsize;++i)
117 tempvec.push_back(buf[i]);
119 vec.push_back(tempvec);
136 unsigned int&
operator()(
unsigned int idx1,
unsigned int idx2)
148 void fetch(
unsigned int begin,
unsigned int end,
unsigned int* result_arr,
unsigned int* result_size)
152 memcpy(result_arr, &(
arr[begin*
size2]), ((1+end-begin)*size2)*4);
153 memcpy(result_size, &(
arr_size[begin]), (1+end-begin)*4);
157 for(
unsigned int i=begin;i<=end;++i)
160 result_size[i-begin] = entries;
161 for(
unsigned int j=0;j<entries;++j)
163 result_arr[(i-begin)*
size2 + j] = (*
this)(i,j);
175 std::vector<std::vector<unsigned int> >
vec;