OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
boost::array_openfpm< T, N, ids_type > Class Template Reference

Detailed Description

template<class T, std::size_t N, typename ids_type = std::size_t>
class boost::array_openfpm< T, N, ids_type >

Definition at line 60 of file boost_array_openfpm.hpp.

Public Types

enum  { static_size = N }
 
typedef T value_type
 
typedef T * iterator
 
typedef const T * const_iterator
 
typedef T & reference
 
typedef const T & const_reference
 
typedef ids_type size_type
 
typedef std::ptrdiff_t difference_type
 
typedef std::reverse_iterator< iterator > reverse_iterator
 
typedef std::reverse_iterator< const_iterator > const_reverse_iterator
 

Public Member Functions

iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
iterator end ()
 
const_iterator end () const
 
const_iterator cend () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator crbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
const_reverse_iterator crend () const
 
__device__ __host__ reference operator[] (size_type i)
 
__device__ __host__ const_reference operator[] (size_type i) const
 
reference at (size_type i)
 
const_reference at (size_type i) const
 
reference front ()
 
BOOST_CONSTEXPR const_reference front () const
 
reference back ()
 
BOOST_CONSTEXPR const_reference back () const
 
void swap (array_openfpm< T, N > &y)
 
__device__ __host__ const T * data () const
 
__device__ __host__ T * data ()
 
T * c_array ()
 
template<typename T2 >
array_openfpm< T, N > & operator= (const array_openfpm< T2, N > &rhs)
 
void assign (const T &value)
 
void fill (const T &value)
 

Static Public Member Functions

static BOOST_CONSTEXPR size_type size ()
 
static BOOST_CONSTEXPR bool empty ()
 
static BOOST_CONSTEXPR size_type max_size ()
 
static BOOST_CONSTEXPR bool rangecheck (size_type i)
 

Data Fields

elems [N]
 

Member Typedef Documentation

◆ const_iterator

template<class T , std::size_t N, typename ids_type = std::size_t>
typedef const T* boost::array_openfpm< T, N, ids_type >::const_iterator

Definition at line 68 of file boost_array_openfpm.hpp.

◆ const_reference

template<class T , std::size_t N, typename ids_type = std::size_t>
typedef const T& boost::array_openfpm< T, N, ids_type >::const_reference

Definition at line 70 of file boost_array_openfpm.hpp.

◆ const_reverse_iterator

template<class T , std::size_t N, typename ids_type = std::size_t>
typedef std::reverse_iterator<const_iterator> boost::array_openfpm< T, N, ids_type >::const_reverse_iterator

Definition at line 86 of file boost_array_openfpm.hpp.

◆ difference_type

template<class T , std::size_t N, typename ids_type = std::size_t>
typedef std::ptrdiff_t boost::array_openfpm< T, N, ids_type >::difference_type

Definition at line 72 of file boost_array_openfpm.hpp.

◆ iterator

template<class T , std::size_t N, typename ids_type = std::size_t>
typedef T* boost::array_openfpm< T, N, ids_type >::iterator

Definition at line 67 of file boost_array_openfpm.hpp.

◆ reference

template<class T , std::size_t N, typename ids_type = std::size_t>
typedef T& boost::array_openfpm< T, N, ids_type >::reference

Definition at line 69 of file boost_array_openfpm.hpp.

◆ reverse_iterator

template<class T , std::size_t N, typename ids_type = std::size_t>
typedef std::reverse_iterator<iterator> boost::array_openfpm< T, N, ids_type >::reverse_iterator

Definition at line 85 of file boost_array_openfpm.hpp.

◆ size_type

template<class T , std::size_t N, typename ids_type = std::size_t>
typedef ids_type boost::array_openfpm< T, N, ids_type >::size_type

Definition at line 71 of file boost_array_openfpm.hpp.

◆ value_type

template<class T , std::size_t N, typename ids_type = std::size_t>
typedef T boost::array_openfpm< T, N, ids_type >::value_type

Definition at line 66 of file boost_array_openfpm.hpp.

Member Enumeration Documentation

◆ anonymous enum

template<class T , std::size_t N, typename ids_type = std::size_t>
anonymous enum

Definition at line 154 of file boost_array_openfpm.hpp.

Member Function Documentation

◆ assign()

template<class T , std::size_t N, typename ids_type = std::size_t>
void boost::array_openfpm< T, N, ids_type >::assign ( const T &  value)
inline

Definition at line 177 of file boost_array_openfpm.hpp.

◆ at() [1/2]

template<class T , std::size_t N, typename ids_type = std::size_t>
reference boost::array_openfpm< T, N, ids_type >::at ( size_type  i)
inline

Definition at line 126 of file boost_array_openfpm.hpp.

◆ at() [2/2]

template<class T , std::size_t N, typename ids_type = std::size_t>
const_reference boost::array_openfpm< T, N, ids_type >::at ( size_type  i) const
inline

Definition at line 127 of file boost_array_openfpm.hpp.

◆ back() [1/2]

template<class T , std::size_t N, typename ids_type = std::size_t>
reference boost::array_openfpm< T, N, ids_type >::back ( )
inline

Definition at line 140 of file boost_array_openfpm.hpp.

◆ back() [2/2]

template<class T , std::size_t N, typename ids_type = std::size_t>
BOOST_CONSTEXPR const_reference boost::array_openfpm< T, N, ids_type >::back ( ) const
inline

Definition at line 145 of file boost_array_openfpm.hpp.

◆ begin() [1/2]

template<class T , std::size_t N, typename ids_type = std::size_t>
iterator boost::array_openfpm< T, N, ids_type >::begin ( )
inline

Definition at line 75 of file boost_array_openfpm.hpp.

◆ begin() [2/2]

template<class T , std::size_t N, typename ids_type = std::size_t>
const_iterator boost::array_openfpm< T, N, ids_type >::begin ( ) const
inline

Definition at line 76 of file boost_array_openfpm.hpp.

◆ c_array()

template<class T , std::size_t N, typename ids_type = std::size_t>
T * boost::array_openfpm< T, N, ids_type >::c_array ( )
inline

Definition at line 167 of file boost_array_openfpm.hpp.

◆ cbegin()

template<class T , std::size_t N, typename ids_type = std::size_t>
const_iterator boost::array_openfpm< T, N, ids_type >::cbegin ( ) const
inline

Definition at line 77 of file boost_array_openfpm.hpp.

◆ cend()

template<class T , std::size_t N, typename ids_type = std::size_t>
const_iterator boost::array_openfpm< T, N, ids_type >::cend ( ) const
inline

Definition at line 81 of file boost_array_openfpm.hpp.

◆ crbegin()

template<class T , std::size_t N, typename ids_type = std::size_t>
const_reverse_iterator boost::array_openfpm< T, N, ids_type >::crbegin ( ) const
inline

Definition at line 102 of file boost_array_openfpm.hpp.

◆ crend()

template<class T , std::size_t N, typename ids_type = std::size_t>
const_reverse_iterator boost::array_openfpm< T, N, ids_type >::crend ( ) const
inline

Definition at line 110 of file boost_array_openfpm.hpp.

◆ data() [1/2]

template<class T , std::size_t N, typename ids_type = std::size_t>
__device__ __host__ T * boost::array_openfpm< T, N, ids_type >::data ( )
inline

Definition at line 164 of file boost_array_openfpm.hpp.

◆ data() [2/2]

template<class T , std::size_t N, typename ids_type = std::size_t>
__device__ __host__ const T * boost::array_openfpm< T, N, ids_type >::data ( ) const
inline

Definition at line 163 of file boost_array_openfpm.hpp.

◆ empty()

template<class T , std::size_t N, typename ids_type = std::size_t>
static BOOST_CONSTEXPR bool boost::array_openfpm< T, N, ids_type >::empty ( )
inlinestatic

Definition at line 152 of file boost_array_openfpm.hpp.

◆ end() [1/2]

template<class T , std::size_t N, typename ids_type = std::size_t>
iterator boost::array_openfpm< T, N, ids_type >::end ( )
inline

Definition at line 79 of file boost_array_openfpm.hpp.

◆ end() [2/2]

template<class T , std::size_t N, typename ids_type = std::size_t>
const_iterator boost::array_openfpm< T, N, ids_type >::end ( ) const
inline

Definition at line 80 of file boost_array_openfpm.hpp.

◆ fill()

template<class T , std::size_t N, typename ids_type = std::size_t>
void boost::array_openfpm< T, N, ids_type >::fill ( const T &  value)
inline

Definition at line 178 of file boost_array_openfpm.hpp.

◆ front() [1/2]

template<class T , std::size_t N, typename ids_type = std::size_t>
reference boost::array_openfpm< T, N, ids_type >::front ( )
inline

Definition at line 130 of file boost_array_openfpm.hpp.

◆ front() [2/2]

template<class T , std::size_t N, typename ids_type = std::size_t>
BOOST_CONSTEXPR const_reference boost::array_openfpm< T, N, ids_type >::front ( ) const
inline

Definition at line 135 of file boost_array_openfpm.hpp.

◆ max_size()

template<class T , std::size_t N, typename ids_type = std::size_t>
static BOOST_CONSTEXPR size_type boost::array_openfpm< T, N, ids_type >::max_size ( )
inlinestatic

Definition at line 153 of file boost_array_openfpm.hpp.

◆ operator=()

template<class T , std::size_t N, typename ids_type = std::size_t>
template<typename T2 >
array_openfpm< T, N > & boost::array_openfpm< T, N, ids_type >::operator= ( const array_openfpm< T2, N > &  rhs)
inline

Definition at line 171 of file boost_array_openfpm.hpp.

◆ operator[]() [1/2]

template<class T , std::size_t N, typename ids_type = std::size_t>
__device__ __host__ reference boost::array_openfpm< T, N, ids_type >::operator[] ( size_type  i)
inline

Definition at line 115 of file boost_array_openfpm.hpp.

◆ operator[]() [2/2]

template<class T , std::size_t N, typename ids_type = std::size_t>
__device__ __host__ const_reference boost::array_openfpm< T, N, ids_type >::operator[] ( size_type  i) const
inline

Definition at line 120 of file boost_array_openfpm.hpp.

◆ rangecheck()

template<class T , std::size_t N, typename ids_type = std::size_t>
static BOOST_CONSTEXPR bool boost::array_openfpm< T, N, ids_type >::rangecheck ( size_type  i)
inlinestatic

Definition at line 184 of file boost_array_openfpm.hpp.

◆ rbegin() [1/2]

template<class T , std::size_t N, typename ids_type = std::size_t>
reverse_iterator boost::array_openfpm< T, N, ids_type >::rbegin ( )
inline

Definition at line 98 of file boost_array_openfpm.hpp.

◆ rbegin() [2/2]

template<class T , std::size_t N, typename ids_type = std::size_t>
const_reverse_iterator boost::array_openfpm< T, N, ids_type >::rbegin ( ) const
inline

Definition at line 99 of file boost_array_openfpm.hpp.

◆ rend() [1/2]

template<class T , std::size_t N, typename ids_type = std::size_t>
reverse_iterator boost::array_openfpm< T, N, ids_type >::rend ( )
inline

Definition at line 106 of file boost_array_openfpm.hpp.

◆ rend() [2/2]

template<class T , std::size_t N, typename ids_type = std::size_t>
const_reverse_iterator boost::array_openfpm< T, N, ids_type >::rend ( ) const
inline

Definition at line 107 of file boost_array_openfpm.hpp.

◆ size()

template<class T , std::size_t N, typename ids_type = std::size_t>
static BOOST_CONSTEXPR size_type boost::array_openfpm< T, N, ids_type >::size ( )
inlinestatic

Definition at line 151 of file boost_array_openfpm.hpp.

◆ swap()

template<class T , std::size_t N, typename ids_type = std::size_t>
void boost::array_openfpm< T, N, ids_type >::swap ( array_openfpm< T, N > &  y)
inline

Definition at line 157 of file boost_array_openfpm.hpp.

Field Documentation

◆ elems

template<class T , std::size_t N, typename ids_type = std::size_t>
T boost::array_openfpm< T, N, ids_type >::elems[N]

Definition at line 62 of file boost_array_openfpm.hpp.


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