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

Detailed Description

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

Definition at line 212 of file multi_array_view_openfpm.hpp.

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

Data Structures

struct  array_view_openfpm
 
struct  const_array_view_openfpm
 

Public Types

typedef super_type::value_type value_type
 
typedef super_type::reference reference
 
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 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
 
- Public Types inherited from openfpm::detail::multi_array::const_multi_array_view_openfpm< T, NumDims, 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
 
typedef super_type::extent_range extent_range
 
typedef T * TPtr
 
typedef boost::mpl::accumulate< T *, typenameboost::mpl::int_< 1 >, typenameboost::mpl::multiplies< typenameboost::mpl::_2, typenameboost::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 ConstMultiArray >
multi_array_view_openfpmoperator= (const ConstMultiArray &other)
 
multi_array_view_openfpmoperator= (const multi_array_view_openfpm &other)
 
element * origin ()
 
template<class IndexList >
element & operator() (const IndexList &indices)
 
reference operator[] (index idx)
 
iterator begin ()
 
iterator end ()
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
const element * origin () const
 
template<class IndexList >
const element & operator() (const IndexList &indices) const
 
const_reference operator[] (index idx) const
 
const_iterator begin () const
 
const_iterator end () const
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
- Public Member Functions inherited from openfpm::detail::multi_array::const_multi_array_view_openfpm< T, NumDims, T * >
 const_multi_array_view_openfpm (const const_multi_array_view_openfpm< T, NumDims, OPtr > &other)
 
boost::disable_if< typenameboost::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
 
const element & operator() (IndexList indices) const
 
__device__ __host__ const_reference operator[] (index idx) const
 
__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
 
bool operator!= (const const_multi_array_view_openfpm< T, NumDims, OPtr > &rhs) const
 
bool operator> (const const_multi_array_view_openfpm< T, NumDims, OPtr > &rhs) const
 
bool operator<= (const const_multi_array_view_openfpm< T, NumDims, OPtr > &rhs) const
 
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)
 

Private Types

typedef const_multi_array_view_openfpm< T, NumDims, T * > super_type
 

Private Member Functions

template<typename ExtentList , typename Index >
 multi_array_view_openfpm (T *base, const ExtentList &extents, const openfpm::array< Index, NumDims > &strides)
 

Friends

template<typename , std::size_t >
class multi_array_impl_base
 

Additional Inherited Members

- Protected Types inherited from openfpm::detail::multi_array::const_multi_array_view_openfpm< T, NumDims, T * >
typedef boost::array< index, NumDims > index_list
 
- Protected Member Functions inherited from openfpm::detail::multi_array::const_multi_array_view_openfpm< T, NumDims, T * >
 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 inherited from openfpm::detail::multi_array::const_multi_array_view_openfpm< T, NumDims, T * >
TPtr base_
 
index origin_offset_
 
size_type num_elements_
 
size_type extent
 
index_list stride_list_
 
index_list index_base_list_
 

Member Typedef Documentation

◆ const_iterator

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

Definition at line 222 of file multi_array_view_openfpm.hpp.

◆ const_reference

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

Definition at line 221 of file multi_array_view_openfpm.hpp.

◆ const_reverse_iterator

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

Definition at line 223 of file multi_array_view_openfpm.hpp.

◆ difference_type

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

Definition at line 226 of file multi_array_view_openfpm.hpp.

◆ element

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

Definition at line 224 of file multi_array_view_openfpm.hpp.

◆ extent_range

template<typename T , std::size_t NumDims>
typedef super_type::extent_range openfpm::detail::multi_array::multi_array_view_openfpm< T, NumDims >::extent_range

Definition at line 228 of file multi_array_view_openfpm.hpp.

◆ index

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

Definition at line 227 of file multi_array_view_openfpm.hpp.

◆ iterator

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

Definition at line 219 of file multi_array_view_openfpm.hpp.

◆ reference

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

Definition at line 218 of file multi_array_view_openfpm.hpp.

◆ reverse_iterator

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

Definition at line 220 of file multi_array_view_openfpm.hpp.

◆ size_type

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

Definition at line 225 of file multi_array_view_openfpm.hpp.

◆ super_type

template<typename T , std::size_t NumDims>
typedef const_multi_array_view_openfpm<T,NumDims,T*> openfpm::detail::multi_array::multi_array_view_openfpm< T, NumDims >::super_type
private

Definition at line 215 of file multi_array_view_openfpm.hpp.

◆ value_type

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

Definition at line 217 of file multi_array_view_openfpm.hpp.

Constructor & Destructor Documentation

◆ multi_array_view_openfpm()

template<typename T , std::size_t NumDims>
template<typename ExtentList , typename Index >
openfpm::detail::multi_array::multi_array_view_openfpm< T, NumDims >::multi_array_view_openfpm ( T *  base,
const ExtentList &  extents,
const openfpm::array< Index, NumDims > &  strides 
)
inlineexplicitprivate

Definition at line 380 of file multi_array_view_openfpm.hpp.

Member Function Documentation

◆ begin() [1/2]

template<typename T , std::size_t NumDims>
iterator openfpm::detail::multi_array::multi_array_view_openfpm< T, NumDims >::begin ( )
inline

Definition at line 309 of file multi_array_view_openfpm.hpp.

◆ begin() [2/2]

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

Definition at line 354 of file multi_array_view_openfpm.hpp.

◆ end() [1/2]

template<typename T , std::size_t NumDims>
iterator openfpm::detail::multi_array::multi_array_view_openfpm< T, NumDims >::end ( )
inline

Definition at line 315 of file multi_array_view_openfpm.hpp.

◆ end() [2/2]

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

Definition at line 358 of file multi_array_view_openfpm.hpp.

◆ operator()() [1/2]

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

Definition at line 275 of file multi_array_view_openfpm.hpp.

◆ operator()() [2/2]

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

Definition at line 335 of file multi_array_view_openfpm.hpp.

◆ operator=() [1/2]

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

Definition at line 244 of file multi_array_view_openfpm.hpp.

◆ operator=() [2/2]

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

Definition at line 259 of file multi_array_view_openfpm.hpp.

◆ operator[]() [1/2]

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

Definition at line 285 of file multi_array_view_openfpm.hpp.

◆ operator[]() [2/2]

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

Definition at line 341 of file multi_array_view_openfpm.hpp.

◆ origin() [1/2]

template<typename T , std::size_t NumDims>
element * openfpm::detail::multi_array::multi_array_view_openfpm< T, NumDims >::origin ( )
inline

Definition at line 272 of file multi_array_view_openfpm.hpp.

◆ origin() [2/2]

template<typename T , std::size_t NumDims>
const element * openfpm::detail::multi_array::multi_array_view_openfpm< T, NumDims >::origin ( ) const
inline

Definition at line 332 of file multi_array_view_openfpm.hpp.

◆ rbegin() [1/2]

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

Definition at line 321 of file multi_array_view_openfpm.hpp.

◆ rbegin() [2/2]

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

Definition at line 362 of file multi_array_view_openfpm.hpp.

◆ rend() [1/2]

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

Definition at line 325 of file multi_array_view_openfpm.hpp.

◆ rend() [2/2]

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

Definition at line 366 of file multi_array_view_openfpm.hpp.

Friends And Related Symbol Documentation

◆ multi_array_impl_base

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

Definition at line 372 of file multi_array_view_openfpm.hpp.


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