DASH  0.3.0
dash::ViewLocalMod< DomainType, NDim > Class Template Reference

Public Types

typedef DomainType domain_type
 
typedef view_traits< DomainType >::origin_type origin_type
 
typedef domain_type::local_type image_type
 
typedef view_traits< DomainType >::index_type index_type
 
typedef view_traits< DomainType >::size_type size_type
 
typedef dash::IndexSetLocal< DomainType > index_set_type
 
typedef self_t local_type
 
typedef domain_type::global_type global_type
 
typedef std::integral_constant< bool, true > is_local
 
typedef std::conditional< view_traits< domain_type >::is_origin::value, const domain_type &, domain_type >::type domain_member_type
 
typedef origin_type::value_type value_type
 
typedef std::integral_constant< dim_t, NDim > rank
 

Public Member Functions

constexpr ViewLocalMod (self_t &&)=default
 
constexpr ViewLocalMod (const self_t &)=default
 
self_toperator= (self_t &&)=default
 
self_toperator= (const self_t &)=default
 
constexpr ViewLocalMod (domain_type &&domain)
 Constructor, creates a view on a given domain. More...
 
constexpr ViewLocalMod (const DomainType &domain)
 Constructor, creates a view on a given domain. More...
 
constexpr bool operator== (const self_t &rhs) const
 
constexpr bool operator!= (const self_t &rhs) const
 
constexpr const std::array< size_type, NDim > extents () const
 
template<dim_t ShapeDim>
constexpr size_type extent () const
 
constexpr size_type extent (dim_t shape_dim) const
 
constexpr const std::array< index_type, NDim > offsets () const
 
constexpr size_type size (dim_t sub_dim=0) const
 
constexpr const_iterator begin () const
 
iterator begin ()
 
constexpr const_iterator end () const
 
iterator end ()
 
constexpr const_reference operator[] (int offset) const
 
reference operator[] (int offset)
 
constexpr const local_typelocal () const
 
local_typelocal ()
 
constexpr const global_type & global () const
 
constexpr const index_set_type & index_set () const
 
constexpr const domain_type & domain () const &
 
constexpr domain_type domain () const &&
 
constexpr bool is_local () const
 
constexpr index_type offset () const
 
constexpr index_type offset (dim_t shape_dim) const
 
constexpr index_type size () const
 

Static Public Member Functions

static constexpr dim_t ndim ()
 

Public Attributes

decltype(dash::begin(dash::local(dash::origin(std::declval< typename std::add_lvalue_reference< domain_type >::type >())))) typedef iterator
 
decltype(dash::begin(dash::local(dash::origin(std::declval< typename std::add_lvalue_reference< const domain_type >::type >())))) typedef const_iterator
 
decltype(*(dash::begin(dash::local(dash::origin(std::declval< typename std::add_lvalue_reference< domain_type >::type >()))))) typede reference )
 
decltype(*(dash::begin(dash::local(dash::origin(std::declval< typename std::add_lvalue_reference< const domain_type >::type >()))))) typede const_reference )
 
decltype(dash::begin(std::declval< typename std::add_lvalue_reference< origin_type >::type >())) typedef origin_iterator
 
decltype(dash::begin(std::declval< typename std::add_lvalue_reference< const origin_type >::type >())) typedef const_origin_iterator
 

Detailed Description

template<class DomainType, dim_t NDim>
class dash::ViewLocalMod< DomainType, NDim >

Definition at line 349 of file ViewMod.h.

Constructor & Destructor Documentation

◆ ViewLocalMod() [1/2]

template<class DomainType , dim_t NDim>
constexpr dash::ViewLocalMod< DomainType, NDim >::ViewLocalMod ( domain_type &&  domain)
inlineexplicit

Constructor, creates a view on a given domain.

Definition at line 420 of file ViewMod.h.

References dash::domain().

422  : base_t(std::forward<domain_type>(domain))
423  , _index_set(this->domain())
424  { }

◆ ViewLocalMod() [2/2]

template<class DomainType , dim_t NDim>
constexpr dash::ViewLocalMod< DomainType, NDim >::ViewLocalMod ( const DomainType &  domain)
inlineexplicit

Constructor, creates a view on a given domain.

Definition at line 429 of file ViewMod.h.

431  : base_t(domain)
432  , _index_set(domain)
433  { }

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