OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
openfpm::array< T, N, ids_type > Class Template Reference

Detailed Description

template<class T, std::size_t N, typename ids_type = std::size_t>
class openfpm::array< T, N, ids_type >

Definition at line 37 of file 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< T, N, ids_type > &y)
__device__ __host__ const T * data () const
__device__ __host__ T * data ()
T * c_array ()
template<typename T2 >
array< T, N > & operator= (const array< 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]

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