|
|
| SingleArrayGridFortranOrderStorageBase () |
| | Default constructor.
|
| |
|
| SingleArrayGridFortranOrderStorageBase (const SingleArrayGridFortranOrderStorageBase &) |
| | Copy constructor.
|
| |
| | SingleArrayGridFortranOrderStorageBase (const IndexType &lo, const IndexType &hi) |
| | Construct with a given size. More...
|
| |
| | SingleArrayGridFortranOrderStorageBase (const RangeType &range) |
| | Construct with a given size. More...
|
| |
|
SingleArrayGridFortranOrderStorageBase< T, rank, AllocationPolicy > & | operator= (const SingleArrayGridFortranOrderStorageBase< T, rank, AllocationPolicy > &)=default |
| | Assignment operator.
|
| |
| SCHNEK_INLINE T & | get (const IndexType &index) |
| | Get the lvalue at a given grid index. More...
|
| |
| SCHNEK_INLINE const T & | get (const IndexType &index) const |
| | Get the rvalue at a given grid index. More...
|
| |
|
void | resize (const IndexType &low, const IndexType &high) |
| | resizes to grid with lower indices low[0],...,low[rank-1] and upper indices high[0],...,high[rank-1]
|
| |
|
void | resize (const RangeType range) |
| | resizes to grid with the range. The endponts of the range are inclusive
|
| |
|
ptrdiff_t | stride (size_t dim) const |
| | returns the stride of the specified dimension
|
| |
|
| SingleArrayGridStorageBase () |
| | Default constructor.
|
| |
|
| SingleArrayGridStorageBase (const SingleArrayGridStorageBase &)=default |
| | Copy constructor.
|
| |
|
SingleArrayGridStorageBase< T, rank, AllocationPolicy > & | operator= (const SingleArrayGridStorageBase< T, rank, AllocationPolicy > &)=default |
| | Assignment operator.
|
| |
|
T * | getRawData () const |
| | Access to the underlying raw data.
|
| |
|
SCHNEK_INLINE const IndexType & | getLo () const |
| | Get the lowest coordinate in the grid (inclusive)
|
| |
|
SCHNEK_INLINE const IndexType & | getHi () const |
| | Get the highest coordinate in the grid (inclusive)
|
| |
|
SCHNEK_INLINE const RangeType & | getRange () const |
| | Get the lowest coordinate in the grid (inclusive)
|
| |
|
SCHNEK_INLINE const IndexType & | getDims () const |
| | Get the dimensions of the grid dims = high - low + 1
|
| |
|
SCHNEK_INLINE int | getLo (int k) const |
| | Get k-th component of the lowest coordinate in the grid (inclusive)
|
| |
|
SCHNEK_INLINE int | getHi (int k) const |
| | Get k-th component of the highest coordinate in the grid (inclusive)
|
| |
|
SCHNEK_INLINE int | getDims (int k) const |
| | Get k-th component of the dimensions of the grid dims = high - low + 1
|
| |
|
SCHNEK_INLINE int | getSize () const |
| | Get the length of the allocated array.
|
| |
|
SCHNEK_INLINE storage_iterator | begin () |
| |
|
SCHNEK_INLINE storage_iterator | end () |
| |
|
SCHNEK_INLINE const_storage_iterator | cbegin () const |
| |
|
SCHNEK_INLINE const_storage_iterator | cend () const |
| |
template<typename T, size_t rank, template< typename, size_t > class AllocationPolicy>
class schnek::SingleArrayGridFortranOrderStorageBase< T, rank, AllocationPolicy >
Extends from SingleArrayGridStorageBase to provide Fortran-order indexing over the 1-dimensional data array for a multidimensional grid.
- Template Parameters
-
| T | The type of data stored in the grid |
| rank | The rank of the grid |
| AllocationPolicy | The allocation policy |