|
| PatchArray ()=default |
| Construct a new PatchArray object of size zero. More...
|
|
| PatchArray (const std::array< int, D > &lengths, int num_components, int num_ghost_cells) |
| Construct a new PatchArray object. More...
|
|
| PatchArray (const PatchArray< D > &other) |
| Copy constructor. More...
|
|
PatchArray< D > & | operator= (const PatchArray< D > &other) |
| Copy assignment. More...
|
|
template<int M> |
View< double, M+1 > | getSliceOn (Face< D, M > f, const std::array< int, D - M > &offset) |
| Get the slice on a given face. More...
|
|
template<int M> |
View< const double, M+1 > | getSliceOn (Face< D, M > f, const std::array< int, D - M > &offset) const |
| Get the slice on a given face. More...
|
|
template<int M> |
View< double, M+1 > | getGhostSliceOn (Face< D, M > f, const std::array< size_t, D - M > &offset) const |
| Get the gosts slice on a given face. More...
|
|
const double & | operator[] (const std::array< int, D+1 > &coord) const |
|
template<class... Types> |
const double & | operator() (Types... args) const |
|
void | set (const std::array< int, D+1 > &coord, double value) const |
|
double & | operator[] (const std::array< int, D+1 > &coord) |
|
template<class... Types> |
double & | operator() (Types... args) |
|
void | set (const std::array< int, D+1 > &coord, double value) |
|
const std::array< int, D+1 > & | getStrides () const |
| Get the strides of the patch in each direction.
|
|
const std::array< int, D+1 > & | getStart () const |
| Get the coordinate of the first element.
|
|
const std::array< int, D+1 > & | getEnd () const |
| Get the coordinate of the last element.
|
|
const std::array< int, D+1 > & | getGhostStart () const |
| Get the coordinate of the first ghost cell element.
|
|
const std::array< int, D+1 > & | getGhostEnd () const |
| Get the coordinate of the last ghost cell element.
|
|
const PatchView< double, D > & | getView () |
| Get the View for the array. More...
|
|
template<int D>
class ThunderEgg::PatchArray< D >
Array for acessing data of a patch. It supports variable striding.
- Template Parameters
-
D | number of cartesian dimensions |