OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
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 34 of file multi_array_ref_subarray_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, typenameboost::mpl::int_< 1 >, typenameboost::mpl::multiplies< typenameboost::mpl::_2, typenameboost::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
 

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
 

Member Typedef Documentation

◆ const_iterator

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

Definition at line 47 of file multi_array_ref_subarray_openfpm.hpp.

◆ const_reference

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

Definition at line 46 of file multi_array_ref_subarray_openfpm.hpp.

◆ const_reverse_iterator

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

Definition at line 48 of file multi_array_ref_subarray_openfpm.hpp.

◆ difference_type

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

Definition at line 51 of file multi_array_ref_subarray_openfpm.hpp.

◆ element

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

Definition at line 49 of file multi_array_ref_subarray_openfpm.hpp.

◆ index

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

Definition at line 52 of file multi_array_ref_subarray_openfpm.hpp.

◆ size_ct

template<typename T , std::size_t NumDims, typename vector , typename TPtr >
typedef boost::mpl::accumulate<vector,typenameboost::mpl::int_<1>,typenameboost::mpl::multiplies<typenameboost::mpl::_2,typenameboost::mpl::_1>>::type openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr >::size_ct
private

Definition at line 40 of file multi_array_ref_subarray_openfpm.hpp.

◆ size_type

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

Definition at line 50 of file multi_array_ref_subarray_openfpm.hpp.

◆ super_type

template<typename T , std::size_t NumDims, typename vector , typename TPtr >
typedef openfpm::detail::multi_array::multi_array_impl_base_openfpm<T,NumDims,vector> openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr >::super_type
private

Definition at line 36 of file multi_array_ref_subarray_openfpm.hpp.

◆ value_type

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

Definition at line 45 of file multi_array_ref_subarray_openfpm.hpp.

Constructor & Destructor Documentation

◆ const_sub_array_openfpm() [1/2]

template<typename T , std::size_t NumDims, typename vector , typename TPtr >
template<typename Ovector >
openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr >::const_sub_array_openfpm ( const const_sub_array_openfpm< T, NumDims, Ovector > &  rhs)
inline

Definition at line 68 of file multi_array_ref_subarray_openfpm.hpp.

◆ const_sub_array_openfpm() [2/2]

template<typename T , std::size_t NumDims, typename vector , typename TPtr >
__device__ __host__ openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr >::const_sub_array_openfpm ( TPtr  base,
const index *  strides 
)
inline

Definition at line 130 of file multi_array_ref_subarray_openfpm.hpp.

Member Function Documentation

◆ empty()

template<typename T , std::size_t NumDims, typename vector , typename TPtr >
bool openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr >::empty ( ) const
inline

Definition at line 121 of file multi_array_ref_subarray_openfpm.hpp.

◆ max_size()

template<typename T , std::size_t NumDims, typename vector , typename TPtr >
size_type openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr >::max_size ( ) const
inline

Definition at line 120 of file multi_array_ref_subarray_openfpm.hpp.

◆ num_dimensions()

template<typename T , std::size_t NumDims, typename vector , typename TPtr >
__device__ __host__ size_type openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr >::num_dimensions ( ) const
inline

Definition at line 122 of file multi_array_ref_subarray_openfpm.hpp.

◆ num_elements()

template<typename T , std::size_t NumDims, typename vector , typename TPtr >
size_type openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr >::num_elements ( ) const
inline

Definition at line 125 of file multi_array_ref_subarray_openfpm.hpp.

◆ operator!=()

template<typename T , std::size_t NumDims, typename vector , typename TPtr >
template<typename OPtr >
bool openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr >::operator!= ( const const_sub_array_openfpm< T, NumDims, OPtr > &  rhs) const
inline

Definition at line 99 of file multi_array_ref_subarray_openfpm.hpp.

◆ operator()()

template<typename T , std::size_t NumDims, typename vector , typename TPtr >
template<typename IndexList >
const element & openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr >::operator() ( const IndexList &  indices) const
inline

Definition at line 80 of file multi_array_ref_subarray_openfpm.hpp.

◆ operator<=()

template<typename T , std::size_t NumDims, typename vector , typename TPtr >
template<typename OPtr >
bool openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr >::operator<= ( const const_sub_array_openfpm< T, NumDims, OPtr > &  rhs) const
inline

Definition at line 109 of file multi_array_ref_subarray_openfpm.hpp.

◆ operator>()

template<typename T , std::size_t NumDims, typename vector , typename TPtr >
template<typename OPtr >
bool openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr >::operator> ( const const_sub_array_openfpm< T, NumDims, OPtr > &  rhs) const
inline

Definition at line 104 of file multi_array_ref_subarray_openfpm.hpp.

◆ operator>=()

template<typename T , std::size_t NumDims, typename vector , typename TPtr >
template<typename OPtr >
bool openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr >::operator>= ( const const_sub_array_openfpm< T, NumDims, OPtr > &  rhs) const
inline

Definition at line 114 of file multi_array_ref_subarray_openfpm.hpp.

◆ operator[]() [1/2]

template<typename T , std::size_t NumDims, typename vector , typename TPtr >
template<int NDims>
__device__ __host__ const_array_view< NDims >::type openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr >::operator[] ( const boost::detail::multi_array::index_gen< NumDims, NDims > &  indices) const
inline

Definition at line 90 of file multi_array_ref_subarray_openfpm.hpp.

◆ operator[]() [2/2]

template<typename T , std::size_t NumDims, typename vector , typename TPtr >
__device__ __host__ const_reference openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr >::operator[] ( index  idx) const
inline

Definition at line 74 of file multi_array_ref_subarray_openfpm.hpp.

◆ origin()

template<typename T , std::size_t NumDims, typename vector , typename TPtr >
TPtr openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr >::origin ( ) const
inline

Definition at line 118 of file multi_array_ref_subarray_openfpm.hpp.

◆ size()

template<typename T , std::size_t NumDims, typename vector , typename TPtr >
__host__ __device__ size_type openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr >::size ( ) const
inline

Definition at line 119 of file multi_array_ref_subarray_openfpm.hpp.

◆ strides()

template<typename T , std::size_t NumDims, typename vector , typename TPtr >
__host__ __device__ const index * openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr >::strides ( ) const
inline

Definition at line 123 of file multi_array_ref_subarray_openfpm.hpp.

Friends And Related Symbol Documentation

◆ const_sub_array_openfpm

template<typename T , std::size_t NumDims, typename vector , typename TPtr >
template<typename , std::size_t , typename , typename >
friend class const_sub_array_openfpm
friend

Definition at line 137 of file multi_array_ref_subarray_openfpm.hpp.

◆ value_accessor_n_openfpm

template<typename T , std::size_t NumDims, typename vector , typename TPtr >
template<typename , std::size_t , typename >
friend class value_accessor_n_openfpm
friend

Definition at line 136 of file multi_array_ref_subarray_openfpm.hpp.

Field Documentation

◆ base_

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

Definition at line 143 of file multi_array_ref_subarray_openfpm.hpp.

◆ strides_

template<typename T , std::size_t NumDims, typename vector , typename TPtr >
const index* openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, TPtr >::strides_
protected

Definition at line 144 of file multi_array_ref_subarray_openfpm.hpp.


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