stdgpu/iterator.h Source File#
stdgpu Latest
Efficient STL-like Data Structures on the GPU
|
iterator.h
Go to the documentation of this file.
29#include <thrust/detail/reference.h> // Only forward declaration included by thrust/detail/pointer.h
STDGPU_HOST_DEVICE back_insert_iterator(Container &c)
Constructor.
An output iterator which inserts elements into a container using push_back.
Definition: iterator.h:415
STDGPU_HOST_DEVICE front_insert_iterator(Container &c)
Constructor.
An output iterator which inserts elements into a container using push_front.
Definition: iterator.h:456
STDGPU_HOST_DEVICE insert_iterator(Container &c)
Constructor.
An output iterator which inserts elements into a container using insert.
Definition: iterator.h:500
STDGPU_HOST_DEVICE insert_iterator< Container > inserter(Container &c)
Constructs an insert_iterator.
thrust::pointer< T, thrust::device_system_tag > device_ptr
A host pointer class allowing to call thrust algorithms without explicitly using the respective execu...
Definition: iterator.h:43
host_ptr< const T > host_cend(const T *host_array)
Creates a constant pointer to the end of the given host array.
host_ptr< T > host_begin(T *host_array)
Creates a pointer to the begin of the given host array.
device_ptr< const T > device_cbegin(const T *device_array)
Creates a constant pointer to the begin of the given device array.
device_ptr< const T > device_cend(const T *device_array)
Creates a constant pointer to the end of the given device array.
host_ptr< const T > host_cbegin(const T *host_array)
Creates a constant pointer to the begin of the given host array.
STDGPU_HOST_DEVICE back_insert_iterator< Container > back_inserter(Container &c)
Constructs a back_insert_iterator.
device_ptr< T > device_begin(T *device_array)
Creates a pointer to the begin of the given device array.
STDGPU_HOST_DEVICE device_ptr< T > make_device(T *device_array)
Constructs a device_ptr object.
device_ptr< T > device_end(T *device_array)
Creates a pointer to the end of the given device array.
STDGPU_HOST_DEVICE host_ptr< T > make_host(T *host_array)
Constructs a host_ptr object.
index64_t size(T *array)
Finds the size (number of elements) of the given dynamically allocated array.
host_ptr< T > host_end(T *host_array)
Creates a pointer to the end of the given host array.
STDGPU_HOST_DEVICE front_insert_iterator< Container > front_inserter(Container &c)
Constructs a front_insert_iterator.
thrust::pointer< T, thrust::host_system_tag > host_ptr
A host pointer class allowing to call thrust algorithms without explicitly using the respective execu...
Definition: iterator.h:51
#define STDGPU_HOST_DEVICE
Platform-independent host device function annotation.
Definition: platform.h:77
Generated by 1.9.6