OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr > Class Template Reference

Detailed Description

template<typename T, std::size_t NumDims, typename vector, typename TPtr>
class openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr >

Definition at line 49 of file multi_array_ref_base_openfpm.hpp.

+ Inheritance diagram for openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr >:

Data Structures

struct  array_view
 
struct  const_array_view
 

Public Types

typedef super_type::value_type value_type
 
typedef super_type::const_reference const_reference
 
typedef super_type::const_iterator const_iterator
 
typedef super_type::const_reverse_iterator const_reverse_iterator
 
typedef super_type::element element
 
typedef super_type::size_type size_type
 
typedef super_type::difference_type difference_type
 
typedef super_type::index index
 
- Public Types inherited from openfpm::detail::multi_array::multi_array_impl_base_openfpm< T, NumDims, vector >
typedef types::index index
 
typedef types::size_type size_type
 
typedef types::element element
 
typedef types::value_type value_type
 
typedef types::reference reference
 
typedef types::const_reference const_reference
 
typedef array_iterator_openfpm< T, T *, boost::mpl::size_t< NumDims >, vector, reference, boost::random_access_traversal_tag > iterator
 
typedef array_iterator_openfpm< T, T const *, boost::mpl::size_t< NumDims >, vector, const_reference, boost::random_access_traversal_tag > const_iterator
 
typedef ::boost::reverse_iterator< iteratorreverse_iterator
 
typedef ::boost::reverse_iterator< const_iteratorconst_reverse_iterator
 

Public Member Functions

template<typename Ovector >
 const_sub_array_openfpm (const const_sub_array_openfpm< T, NumDims, Ovector > &rhs)
 
__device__ __host__ const_reference operator[] (index idx) const
 
template<typename IndexList >
const element & operator() (const IndexList &indices) const
 
template<int NDims>
__device__ __host__ const_array_view< NDims >::type operator[] (const boost::detail::multi_array::index_gen< NumDims, NDims > &indices) const
 
template<typename OPtr >
bool operator!= (const const_sub_array_openfpm< T, NumDims, OPtr > &rhs) const
 
template<typename OPtr >
bool operator> (const const_sub_array_openfpm< T, NumDims, OPtr > &rhs) const
 
template<typename OPtr >
bool operator<= (const const_sub_array_openfpm< T, NumDims, OPtr > &rhs) const
 
template<typename OPtr >
bool operator>= (const const_sub_array_openfpm< T, NumDims, OPtr > &rhs) const
 
TPtr origin () const
 
__host__ __device__ size_type size () const
 
size_type max_size () const
 
bool empty () const
 
__device__ __host__ size_type num_dimensions () const
 
__host__ __device__ const index * strides () const
 
size_type num_elements () const
 
__device__ __host__ const_sub_array_openfpm (TPtr base, const index *strides)
 
- Public Member Functions inherited from openfpm::detail::multi_array::multi_array_impl_base_openfpm< T, NumDims, vector >
 BOOST_STATIC_CONSTANT (std::size_t, dimensionality=NumDims)
 

Protected Attributes

TPtr base_
 
const index * strides_
 

Private Types

typedef openfpm::detail::multi_array::multi_array_impl_base_openfpm< T, NumDims, vectorsuper_type
 
typedef boost::mpl::accumulate< vector, typename boost::mpl::int_< 1 >, typename boost::mpl::multiplies< typename boost::mpl::_2, typename boost::mpl::_1 > >::type size_ct
 

Private Member Functions

const_sub_array_openfpmoperator= (const const_sub_array_openfpm &)
 

Friends

template<typename , std::size_t , typename >
class value_accessor_n_openfpm
 
template<typename , std::size_t , typename , typename >
class const_sub_array_openfpm
 

Additional Inherited Members

- Protected Member Functions inherited from openfpm::detail::multi_array::multi_array_impl_base_openfpm< T, NumDims, vector >
template<typename Stride_list , typename Extent_type >
void compute_strides (Stride_list &stride_list, Extent_type &extent, const general_storage_order< NumDims > &storage)
 
template<typename Reference , typename IndexList , typename TPtr >
Reference access_element (boost::type< Reference >, const IndexList &indices, TPtr base, const size_type *extents, const index *strides, const index *index_bases) const
 

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