OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
openfpm::detail::multi_array::sub_array_openfpm< T, NumDims, vector > Class Template Reference

Detailed Description

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

Definition at line 156 of file multi_array_ref_subarray_openfpm.hpp.

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

Data Structures

struct  array_view
 
struct  const_array_view
 

Public Types

typedef super_type::element element
 
typedef super_type::reference reference
 
typedef super_type::index index
 
typedef super_type::size_type size_type
 
typedef super_type::iterator iterator
 
typedef super_type::reverse_iterator reverse_iterator
 
typedef super_type::const_reference const_reference
 
typedef super_type::const_iterator const_iterator
 
typedef super_type::const_reverse_iterator const_reverse_iterator
 
typedef int yes_is_multi_array
 
- Public Types inherited from openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, T * >
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 ConstMultiArray >
__device__ __host__ sub_array_openfpmoperator= (const ConstMultiArray &other)
 
__device__ __host__ sub_array_openfpmoperator= (const sub_array_openfpm &other)
 
__device__ __host__ T * origin_mutable () const
 
__device__ __host__ T * origin ()
 
__device__ __host__ const T * origin () const
 
__device__ __host__ reference operator[] (index idx)
 
__device__ __host__ iterator begin ()
 
__device__ __host__ iterator end ()
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
template<class IndexList >
const element & operator() (const IndexList &indices) const
 
const_reference __device__ __host__ operator[] (index idx) const
 
const_iterator begin () const
 
const_iterator end () const
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
__device__ __host__ sub_array_openfpm (T *base, const index *strides)
 
- Public Member Functions inherited from openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, T * >
 const_sub_array_openfpm (const const_sub_array_openfpm< T, NumDims, Ovector > &rhs)
 
__device__ __host__ const_sub_array_openfpm (T * base, const index *strides)
 
__device__ __host__ const_reference operator[] (index idx) const
 
__device__ __host__ const_array_view< NDims >::type operator[] (const boost::detail::multi_array::index_gen< NumDims, NDims > &indices) const
 
const element & operator() (const IndexList &indices) const
 
bool operator!= (const const_sub_array_openfpm< T, NumDims, OPtr > &rhs) const
 
bool operator> (const const_sub_array_openfpm< T, NumDims, OPtr > &rhs) const
 
bool operator<= (const const_sub_array_openfpm< T, NumDims, OPtr > &rhs) const
 
bool operator>= (const const_sub_array_openfpm< T, NumDims, OPtr > &rhs) const
 
T * 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
 
- 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)
 

Private Types

typedef const_sub_array_openfpm< T, NumDims, vector, T * > super_type
 

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
 
- Protected Attributes inherited from openfpm::detail::multi_array::const_sub_array_openfpm< T, NumDims, vector, T * >
T * base_
 
const index * strides_
 

Member Typedef Documentation

◆ const_iterator

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

Definition at line 167 of file multi_array_ref_subarray_openfpm.hpp.

◆ const_reference

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

Definition at line 166 of file multi_array_ref_subarray_openfpm.hpp.

◆ const_reverse_iterator

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

Definition at line 168 of file multi_array_ref_subarray_openfpm.hpp.

◆ element

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

Definition at line 160 of file multi_array_ref_subarray_openfpm.hpp.

◆ index

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

Definition at line 162 of file multi_array_ref_subarray_openfpm.hpp.

◆ iterator

template<typename T , std::size_t NumDims, typename vector >
typedef super_type::iterator openfpm::detail::multi_array::sub_array_openfpm< T, NumDims, vector >::iterator

Definition at line 164 of file multi_array_ref_subarray_openfpm.hpp.

◆ reference

template<typename T , std::size_t NumDims, typename vector >
typedef super_type::reference openfpm::detail::multi_array::sub_array_openfpm< T, NumDims, vector >::reference

Definition at line 161 of file multi_array_ref_subarray_openfpm.hpp.

◆ reverse_iterator

template<typename T , std::size_t NumDims, typename vector >
typedef super_type::reverse_iterator openfpm::detail::multi_array::sub_array_openfpm< T, NumDims, vector >::reverse_iterator

Definition at line 165 of file multi_array_ref_subarray_openfpm.hpp.

◆ size_type

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

Definition at line 163 of file multi_array_ref_subarray_openfpm.hpp.

◆ super_type

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

Definition at line 158 of file multi_array_ref_subarray_openfpm.hpp.

◆ yes_is_multi_array

template<typename T , std::size_t NumDims, typename vector >
typedef int openfpm::detail::multi_array::sub_array_openfpm< T, NumDims, vector >::yes_is_multi_array

Definition at line 169 of file multi_array_ref_subarray_openfpm.hpp.

Constructor & Destructor Documentation

◆ sub_array_openfpm()

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

Definition at line 288 of file multi_array_ref_subarray_openfpm.hpp.

Member Function Documentation

◆ begin() [1/2]

template<typename T , std::size_t NumDims, typename vector >
__device__ __host__ iterator openfpm::detail::multi_array::sub_array_openfpm< T, NumDims, vector >::begin ( )
inline

Definition at line 228 of file multi_array_ref_subarray_openfpm.hpp.

◆ begin() [2/2]

template<typename T , std::size_t NumDims, typename vector >
const_iterator openfpm::detail::multi_array::sub_array_openfpm< T, NumDims, vector >::begin ( ) const
inline

Definition at line 266 of file multi_array_ref_subarray_openfpm.hpp.

◆ end() [1/2]

template<typename T , std::size_t NumDims, typename vector >
__device__ __host__ iterator openfpm::detail::multi_array::sub_array_openfpm< T, NumDims, vector >::end ( )
inline

Definition at line 234 of file multi_array_ref_subarray_openfpm.hpp.

◆ end() [2/2]

template<typename T , std::size_t NumDims, typename vector >
const_iterator openfpm::detail::multi_array::sub_array_openfpm< T, NumDims, vector >::end ( ) const
inline

Definition at line 270 of file multi_array_ref_subarray_openfpm.hpp.

◆ operator()()

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

Definition at line 256 of file multi_array_ref_subarray_openfpm.hpp.

◆ operator=() [1/2]

template<typename T , std::size_t NumDims, typename vector >
template<typename ConstMultiArray >
__device__ __host__ sub_array_openfpm & openfpm::detail::multi_array::sub_array_openfpm< T, NumDims, vector >::operator= ( const ConstMultiArray &  other)
inline

Definition at line 184 of file multi_array_ref_subarray_openfpm.hpp.

◆ operator=() [2/2]

template<typename T , std::size_t NumDims, typename vector >
__device__ __host__ sub_array_openfpm & openfpm::detail::multi_array::sub_array_openfpm< T, NumDims, vector >::operator= ( const sub_array_openfpm< T, NumDims, vector > &  other)
inline

Definition at line 200 of file multi_array_ref_subarray_openfpm.hpp.

◆ operator[]() [1/2]

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

Definition at line 221 of file multi_array_ref_subarray_openfpm.hpp.

◆ operator[]() [2/2]

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

Definition at line 262 of file multi_array_ref_subarray_openfpm.hpp.

◆ origin() [1/2]

template<typename T , std::size_t NumDims, typename vector >
__device__ __host__ T * openfpm::detail::multi_array::sub_array_openfpm< T, NumDims, vector >::origin ( )
inline

Definition at line 218 of file multi_array_ref_subarray_openfpm.hpp.

◆ origin() [2/2]

template<typename T , std::size_t NumDims, typename vector >
__device__ __host__ const T * openfpm::detail::multi_array::sub_array_openfpm< T, NumDims, vector >::origin ( ) const
inline

Definition at line 219 of file multi_array_ref_subarray_openfpm.hpp.

◆ origin_mutable()

template<typename T , std::size_t NumDims, typename vector >
__device__ __host__ T * openfpm::detail::multi_array::sub_array_openfpm< T, NumDims, vector >::origin_mutable ( ) const
inline

Definition at line 217 of file multi_array_ref_subarray_openfpm.hpp.

◆ rbegin() [1/2]

template<typename T , std::size_t NumDims, typename vector >
reverse_iterator openfpm::detail::multi_array::sub_array_openfpm< T, NumDims, vector >::rbegin ( )
inline

Definition at line 241 of file multi_array_ref_subarray_openfpm.hpp.

◆ rbegin() [2/2]

template<typename T , std::size_t NumDims, typename vector >
const_reverse_iterator openfpm::detail::multi_array::sub_array_openfpm< T, NumDims, vector >::rbegin ( ) const
inline

Definition at line 274 of file multi_array_ref_subarray_openfpm.hpp.

◆ rend() [1/2]

template<typename T , std::size_t NumDims, typename vector >
reverse_iterator openfpm::detail::multi_array::sub_array_openfpm< T, NumDims, vector >::rend ( )
inline

Definition at line 246 of file multi_array_ref_subarray_openfpm.hpp.

◆ rend() [2/2]

template<typename T , std::size_t NumDims, typename vector >
const_reverse_iterator openfpm::detail::multi_array::sub_array_openfpm< T, NumDims, vector >::rend ( ) const
inline

Definition at line 278 of file multi_array_ref_subarray_openfpm.hpp.

Friends And Related Symbol Documentation

◆ value_accessor_n_openfpm

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

Definition at line 284 of file multi_array_ref_subarray_openfpm.hpp.


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