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

Detailed Description

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

Definition at line 56 of file multi_array_ref_base_openfpm.hpp.

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

Data Structures

struct  array_view_openfpm
struct  const_array_view_openfpm

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
typedef super_type::extent_range extent_range
typedef T * TPtr
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
- 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 OPtr >
 const_multi_array_view_openfpm (const const_multi_array_view_openfpm< T, NumDims, OPtr > &other)
template<class BaseList >
boost::disable_if< typename boost::is_integral< BaseList >::type, void >::type reindex (const BaseList &values)
void reindex (index value)
size_type num_dimensions () const
size_type size () const
size_type max_size () const
bool empty () const
__device__ __host__ const index * strides () const
__device__ __host__ const T * origin () const
size_type num_elements () const
__device__ __host__ const index * index_bases () const
template<typename IndexList >
const element & operator() (IndexList indices) const
__device__ __host__ const_reference operator[] (index idx) const
template<int NDims>
__device__ __host__ const_array_view_openfpm< NDims >::type operator[] (const boost::detail::multi_array::index_gen< NumDims, NDims > &indices) const
const_iterator begin () const
const_reverse_iterator rend () const
template<typename OPtr >
bool operator!= (const const_multi_array_view_openfpm< T, NumDims, OPtr > &rhs) const
template<typename OPtr >
bool operator> (const const_multi_array_view_openfpm< T, NumDims, OPtr > &rhs) const
template<typename OPtr >
bool operator<= (const const_multi_array_view_openfpm< T, NumDims, OPtr > &rhs) const
template<typename OPtr >
bool operator>= (const const_multi_array_view_openfpm< T, NumDims, OPtr > &rhs) const
- 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 Types

typedef boost::array< index, NumDims > index_list

Protected Member Functions

template<typename ExtentType , typename Index >
 const_multi_array_view_openfpm (TPtr base, const ExtentType extent, const boost::array< Index, NumDims > &strides)
- 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

Protected Attributes

TPtr base_
index origin_offset_
size_type num_elements_
size_type extent
index_list stride_list_
index_list index_base_list_

Private Types

typedef openfpm::detail::multi_array::multi_array_impl_base_openfpm< T, NumDims, vectorsuper_type

Private Member Functions

const_multi_array_view_openfpmoperator= (const const_multi_array_view_openfpm &other)


template<typename , std::size_t , typename >
class multi_array_impl_base_openfpm
template<typename , std::size_t , typename >
class const_multi_array_view_openfpm

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