|
| PatchView () |
| Construct a new PatchView with size 0.
|
|
| PatchView (T_ptr data, const std::array< int, D+1 > &strides, const std::array< int, D+1 > &ghost_start, const std::array< int, D+1 > &start, const std::array< int, D+1 > &end, const std::array< int, D+1 > &ghost_end) |
| Construct a new View object. More...
|
|
| PatchView (T_ptr data, const std::array< int, D+1 > &strides, const std::array< int, D+1 > &lengths, int num_ghost_cells) |
| Construct a new View object. More...
|
|
template<int M> |
View< T, 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< typename std::remove_const< T >::type, 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...
|
|
ComponentView< T, D > | getComponentView (int component_index) const |
|
| operator PatchView< std::add_const_t< T >, D > () const |
|
| View () |
| Constructs a view of size 0.
|
|
| View (T_ptr data, const std::array< int, D > &strides, const std::array< int, D > &ghost_start, const std::array< int, D > &start, const std::array< int, D > &end, const std::array< int, D > &ghost_end) |
| Construct a new View object. More...
|
|
T & | operator[] (const std::array< int, D > &coord) const |
| Get a reference to the element at the specified coordinate. More...
|
|
T & | operator() (Types... args) const |
| Get a reference to the element at the specified coordinate. More...
|
|
void | set (const std::array< int, D > &coord, T value) const |
| Set the value at a coordinate to the specified value. More...
|
|
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.
|
|
| operator View< std::add_const_t< T >, D > () const |
|
template<typename T, int D>
class ThunderEgg::PatchView< T, D >
View for accessing data of a patch. It supports variable striding.
- Template Parameters
-
D | number of cartesian dimensions |