|
| ComponentView () |
| Construct a new ComponentView with size 0.
|
|
| ComponentView (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...
|
|
| ComponentView (T_ptr data, const std::array< int, D > &strides, const std::array< int, D > &lengths, int num_ghost_cells) |
| Construct a new View object. More...
|
|
template<int M> |
View< T, 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< typename std::remove_const< T >::type, M > | getGhostSliceOn (Face< D, M > f, const std::array< size_t, D - M > &offset) const |
| Get the gosts slice on a given face. More...
|
|
| operator ComponentView< 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...
|
|
template<class... Types> |
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::ComponentView< T, D >
Array for acessing data of a patch. It supports variable striding.
- Template Parameters
-
D | number of cartesian dimensions |