|
| ComponentArray (const std::array< int, D > &lengths, int num_ghost_cells) |
| Construct a new View object. More...
|
|
| ComponentArray (const ComponentArray< D > &other) |
| Copy constructor. More...
|
|
ComponentArray< D > & | operator= (const ComponentArray< D > &other) |
| Copy assignment. More...
|
|
template<int M> |
View< double, M > | 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 > | 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 > | 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 > &coord) const |
|
template<class... Types> |
const double & | operator() (Types... args) const |
|
void | set (const std::array< int, D > &coord, double value) const |
|
double & | operator[] (const std::array< int, D > &coord) |
|
template<class... Types> |
double & | operator() (Types... args) |
|
void | set (const std::array< int, D > &coord, double value) |
|
const std::array< int, D > & | getStrides () const |
| Get the strides of the patch in each direction.
|
|
const std::array< int, D > & | getStart () const |
| Get the coordinate of the first element.
|
|
const std::array< int, D > & | getEnd () const |
| Get the coordinate of the last element.
|
|
const std::array< int, D > & | getGhostStart () const |
| Get the coordinate of the first ghost cell element.
|
|
const std::array< int, D > & | getGhostEnd () const |
| Get the coordinate of the last ghost cell element.
|
|
template<int D>
class ThunderEgg::ComponentArray< D >
Array for acessing data of a patch. It supports variable striding.
- Template Parameters
-
D | number of cartesian dimensions |