atlas
Public Types | Public Member Functions | List of all members
atlas::array::LocalIndexView< Value, Rank > Class Template Reference
Inheritance diagram for atlas::array::LocalIndexView< Value, Rank >:
Inheritance graph
[legend]
Collaboration diagram for atlas::array::LocalIndexView< Value, Rank >:
Collaboration graph
[legend]

Public Types

using value_type = typename remove_const< Value >::type
 
typedef Value & Index
 
- Public Types inherited from atlas::array::IndexView< Value, Rank >
typedef Value & Index
 
using data_view_t = gridtools::data_view_tt< typename std::remove_const< Value >::type, Rank, gridtools::get_access_mode< Value >()>
 
using value_type = typename remove_const< Value >::type
 
typedef Value & Index
 

Public Member Functions

 LocalIndexView (Value *data, const idx_t shape[Rank])
 
 LocalIndexView (Value *data, const idx_t shape[Rank], const idx_t strides[Rank])
 
template<typename... Ints, typename = typename std::enable_if<( sizeof...( Ints ) == Rank ), int>::type>
Index operator() (Ints... idx)
 
template<typename... Ints, typename = typename std::enable_if<( sizeof...( Ints ) == Rank ), int>::type>
const value_type operator() (Ints... idx) const
 
- Public Member Functions inherited from atlas::array::IndexView< Value, Rank >
 IndexView (data_view_t data_view)
 
template<typename... Coords, typename = typename std::enable_if<( sizeof...( Coords ) == Rank ), int>::type>
Index ATLAS_HOST_DEVICE operator() (Coords... c)
 
template<typename... Coords, typename = typename std::enable_if<( sizeof...( Coords ) == Rank ), int>::type>
ATLAS_HOST_DEVICE Value const operator() (Coords... c) const
 
idx_t size () const
 
void dump (std::ostream &os) const
 
 IndexView (Value *data, const idx_t shape[Rank])
 
 IndexView (Value *data, const idx_t shape[Rank], const idx_t strides[Rank])
 
template<typename... Idx>
Index operator() (Idx... idx)
 Multidimensional index operator: view(i,j,k,...)
 
template<typename... Ints>
const value_type operator() (Ints... idx) const
 Multidimensional index operator: view(i,j,k,...)
 

The documentation for this class was generated from the following files: