|
FlexELA
|
A helper class to wrap pointers to padded 3D cartesian data. More...
#include <fields.h>
Classes | |
| struct | forward_Iterator |
| struct | Iterator |
| An iterator for all data (excluding padding) in Helper<T>. More... | |
| struct | reverse_Iterator |
Public Member Functions | |
| Helper (T *array, const int n[3], const int pad[6]) | |
Construct a new Array Helper object pointing to array. | |
| T & | at (int i, int j, int k) const |
| Get the element at (i,j,k) | |
| std::size_t | size () const |
| Return the number of (not pad) cells. | |
| Helper< T > | slice (int is, int ie, int js, int je, int ks, int ke) const |
| Create a slice of the array. | |
| forward_Iterator | begin () const |
| Iterator to the start (0,0,0) of the data. | |
| forward_Iterator | end () const |
| Iterator to the end of the data. | |
| reverse_Iterator | rbegin () const |
| Reverse Iterator to the end (ni-1,nj-1,nk-1) of the data. | |
| reverse_Iterator | rend () const |
| Reverse Iterator end. | |
Protected Attributes | |
| T *const | basePtr |
| Pointer to start of underlying data. | |
| int const | n [3] |
| \(\left[N_{i},N_{j},N_{k}\right]\) | |
| int const | pad [6] |
| \(\left[n_{i-},n_{i+},n_{j-},n_{j+},n_{k-},n_{k+}\right]\) | |
A helper class to wrap pointers to padded 3D cartesian data.
| T | The class of the field data |
Construct a new Array Helper object pointing to array.
For definitions of n and pad, see fields
| array | The 3D cartesian data |
| n | The number of (not pad) cells in each direction, \(\left[N_{i},N_{j},N_{k}\right]\) |
| pad | The number of ghost cells in each direction, \(\left[n_{i-},n_{i+},n_{j-},n_{j+},n_{k-},n_{k+}\right]\) |
Get the element at (i,j,k)
| i | First Index |
| j | Second Index |
| k | Third Index |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Return the number of (not pad) cells.