OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
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]
 

Member Typedef Documentation

◆ const_iterator

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

Definition at line 46 of file array_openfpm.hpp.

◆ const_reference

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

Definition at line 48 of file 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> openfpm::array< T, N, ids_type >::const_reverse_iterator

Definition at line 64 of file array_openfpm.hpp.

◆ difference_type

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

Definition at line 50 of file array_openfpm.hpp.

◆ iterator

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

Definition at line 45 of file array_openfpm.hpp.

◆ reference

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

Definition at line 47 of file array_openfpm.hpp.

◆ reverse_iterator

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

Definition at line 63 of file array_openfpm.hpp.

◆ size_type

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

Definition at line 49 of file array_openfpm.hpp.

◆ value_type

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

Definition at line 44 of file 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 124 of file array_openfpm.hpp.

Member Function Documentation

◆ assign()

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

Definition at line 149 of file array_openfpm.hpp.

◆ at() [1/2]

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

Definition at line 96 of file array_openfpm.hpp.

◆ at() [2/2]

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

Definition at line 97 of file array_openfpm.hpp.

◆ back() [1/2]

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

Definition at line 110 of file array_openfpm.hpp.

◆ back() [2/2]

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

Definition at line 115 of file array_openfpm.hpp.

◆ begin() [1/2]

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

Definition at line 53 of file array_openfpm.hpp.

◆ begin() [2/2]

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

Definition at line 54 of file array_openfpm.hpp.

◆ c_array()

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

Definition at line 138 of file array_openfpm.hpp.

◆ cbegin()

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

Definition at line 55 of file array_openfpm.hpp.

◆ cend()

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

Definition at line 59 of file array_openfpm.hpp.

◆ crbegin()

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

Definition at line 78 of file array_openfpm.hpp.

◆ crend()

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

Definition at line 82 of file array_openfpm.hpp.

◆ data() [1/2]

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

Definition at line 135 of file array_openfpm.hpp.

◆ data() [2/2]

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

Definition at line 134 of file array_openfpm.hpp.

◆ empty()

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

Definition at line 122 of file array_openfpm.hpp.

◆ end() [1/2]

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

Definition at line 57 of file array_openfpm.hpp.

◆ end() [2/2]

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

Definition at line 58 of file array_openfpm.hpp.

◆ fill()

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

Definition at line 150 of file array_openfpm.hpp.

◆ front() [1/2]

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

Definition at line 100 of file array_openfpm.hpp.

◆ front() [2/2]

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

Definition at line 105 of file array_openfpm.hpp.

◆ max_size()

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

Definition at line 123 of file array_openfpm.hpp.

◆ operator=()

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

Definition at line 142 of file array_openfpm.hpp.

◆ operator[]() [1/2]

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

Definition at line 85 of file array_openfpm.hpp.

◆ operator[]() [2/2]

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

Definition at line 90 of file array_openfpm.hpp.

◆ rangecheck()

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

Definition at line 156 of file array_openfpm.hpp.

◆ rbegin() [1/2]

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

Definition at line 76 of file array_openfpm.hpp.

◆ rbegin() [2/2]

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

Definition at line 77 of file array_openfpm.hpp.

◆ rend() [1/2]

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

Definition at line 80 of file array_openfpm.hpp.

◆ rend() [2/2]

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

Definition at line 81 of file array_openfpm.hpp.

◆ size()

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

Definition at line 121 of file array_openfpm.hpp.

◆ swap()

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

Definition at line 127 of file array_openfpm.hpp.

Field Documentation

◆ elems

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

Definition at line 40 of file array_openfpm.hpp.


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