CLRX  1
An unofficial OpenCL extensions designed for Radeon GPUs
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Types | Public Member Functions | List of all members
CLRX::Array< T > Class Template Reference

an array class More...

#include <Containers.h>

Public Types

typedef T * iterator
 type of iterator
 
typedef const T * const_iterator
 type of constant iterator
 
typedef T element_type
 element type
 

Public Member Functions

 Array ()
 empty constructor
 
 Array (size_t N)
 construct array of N elements
 
template<typename It >
 Array (It b, It e)
 construct array of elements in begin and end
 
 Array (const Array &cp)
 copy constructor
 
 Array (Array &&cp) noexcept
 move constructor
 
 Array (std::initializer_list< T > list)
 constructor with initializer list
 
 ~Array ()
 destructor
 
Arrayoperator= (const Array &cp)
 copy assignment
 
Arrayoperator= (Array &&cp) noexcept
 move assignment
 
Arrayoperator= (std::initializer_list< T > list)
 assignment from initializer list
 
const T & operator[] (size_t i) const
 operator of indexing
 
T & operator[] (size_t i)
 operator of indexing
 
bool empty () const
 returns true if empty
 
size_t size () const
 returns number of elements
 
void allocate (size_t N)
 only allocating space without keeping previous content
 
void resize (size_t N)
 resize space with keeping old content
 
void clear ()
 clear array
 
template<typename It >
Arrayassign (It b, It e)
 assign from range of iterators
 
const T * data () const
 get data
 
T * data ()
 get data
 
const T * begin () const
 get iterator to first element
 
T * begin ()
 get iterator to first element
 
const T * end () const
 get iterator to after last element
 
T * end ()
 get iterator to after last element
 
const T & front () const
 get first element
 
T & front ()
 get first element
 
const T & back () const
 get last element
 
T & back ()
 get last element
 
void swap (Array &array)
 swap two arrays
 

Detailed Description

template<typename T>
class CLRX::Array< T >

an array class


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