27 #ifndef SCHNEK_GRIDSTORAGE_H_ 28 #define SCHNEK_GRIDSTORAGE_H_ 34 template<
typename T,
int rank>
50 : data(NULL) , data_fast(NULL), size(0) {}
55 void resize(
const IndexType &low_,
const IndexType &high_);
60 void newData(
const IndexType &low_,
const IndexType &high_);
64 template<
typename T,
int rank>
80 : data(NULL) , data_fast(NULL), size(0) {}
85 void resize(
const IndexType &low_,
const IndexType &high_);
90 void newData(
const IndexType &low_,
const IndexType &high_);
93 template<
typename T,
int rank>
119 void resize(
const IndexType &low_,
const IndexType &high_);
125 void newData(
int size);
132 template<
typename T,
int rank,
template<
typename,
int>
class AllocationPolicy>
146 T& operator*() {
return *element;}
149 {
return element == SI.element; }
151 {
return element != SI.element; }
162 const T& operator*() {
return *element;}
165 {
return element == SI.element; }
167 {
return element != SI.element; }
175 T* getRawData()
const {
return this->data; }
178 const IndexType& getLo()
const {
return this->low; }
180 const IndexType& getHi()
const {
return this->high; }
182 const IndexType& getDims()
const {
return this->dims; }
185 int getLo(
int k)
const {
return this->low[k]; }
187 int getHi(
int k)
const {
return this->high[k]; }
189 int getDims(
int k)
const {
return this->dims[k]; }
191 int getSize()
const {
return this->size; }
201 template<
typename T,
int rank,
template<
typename,
int>
class AllocationPolicy>
210 : BaseType(low_, high_) {}
212 T &
get(
const IndexType &index);
213 const T &
get(
const IndexType &index)
const;
216 template<
typename T,
int rank,
template<
typename,
int>
class AllocationPolicy>
225 : BaseType(low_, high_) {}
227 T &
get(
const IndexType &index);
228 const T &
get(
const IndexType &index)
const;
231 template<
typename T,
int rank>
242 : BaseType(low_, high_) {}
246 template<
typename T,
int rank>
257 : BaseType(low_, high_) {}
260 template<
typename T,
int rank>
271 : BaseType(low_, high_) {}
277 #include "gridstorage.t" 280 #endif // SCHNEK_GSTORAGE_H_
Definition: gridstorage.hpp:65
Definition: gridstorage.hpp:35
Definition: gridstorage.hpp:232
Definition: gridstorage.hpp:137
Definition: gridstorage.hpp:202
Definition: gridstorage.hpp:154
Definition: gridstorage.hpp:247
Definition: gridstorage.hpp:133
void resize(const IndexType &low_, const IndexType &high_)
Definition: gridstorage.hpp:217
Definition: gridstorage.hpp:94
Definition: gridstorage.hpp:261