|
Lift
Library of parallel computing primitives for GPUs and multi-core CPUs
|
#include <allocation.h>
Public Member Functions | |
| LIFT_HOST_DEVICE | allocation () |
| allocation (size_type count) | |
| LIFT_HOST_DEVICE | allocation (const allocation &other) |
| template<typename value_type > | |
| allocation (const pointer< system, value_type, index_type > &other) | |
| allocation (const std::initializer_list< value_type > &l) | |
| template<typename value_type > | |
| allocation & | operator= (const pointer< system, value_type, index_type > &other) |
| allocation & | operator= (const std::initializer_list< value_type > &l) |
| virtual void | resize (size_type count) |
| virtual void | free (void) |
| template<typename other_allocation > | |
| void | copy (const other_allocation &other) |
Public Member Functions inherited from lift::pointer< system, T, _index_type > | |
| LIFT_HOST_DEVICE pointer | range (const size_type offset, size_type len=size_type(-1)) const |
| LIFT_HOST_DEVICE pointer | operator+ (off_t offset) const |
| LIFT_HOST_DEVICE pointer | operator- (off_t offset) const |
| LIFT_HOST_DEVICE pointer | truncate (size_t new_size) |
| value_type | peek (index_type pos) |
| void | poke (index_type pos, const value_type value) |
Public Member Functions inherited from lift::tagged_pointer_base< system, T, _index_type > | |
| LIFT_HOST_DEVICE | tagged_pointer_base () |
| The default constructor initializes the pointer to null. More... | |
| LIFT_HOST_DEVICE | tagged_pointer_base (T *storage, size_type storage_size) |
| Construct a tagged pointer from a raw pointer. More... | |
| template<target_system other_system, typename other_value_type > | |
| LIFT_HOST_DEVICE | tagged_pointer_base (tagged_pointer_base< other_system, other_value_type, index_type > &other) |
| Copy constructor creates a copy of the pointer. More... | |
| template<typename other_pointer > | |
| LIFT_HOST_DEVICE | tagged_pointer_base (other_pointer &other) |
| template<target_system other_system, typename other_value_type > | |
| LIFT_HOST_DEVICE tagged_pointer_base & | operator= (tagged_pointer_base< other_system, other_value_type, index_type > &other) |
| Copy constructor creates a copy of the pointer. More... | |
| LIFT_HOST_DEVICE const_reference_type | at (size_type pos) const |
| LIFT_HOST_DEVICE reference_type | at (size_type pos) |
| LIFT_HOST_DEVICE const_reference_type | operator[] (size_type pos) const |
| LIFT_HOST_DEVICE reference_type | operator[] (size_type pos) |
| LIFT_HOST_DEVICE const_reference_type | front () const |
| LIFT_HOST_DEVICE reference_type | front () |
| LIFT_HOST_DEVICE const_reference_type | back () const |
| LIFT_HOST_DEVICE reference_type | back () |
| LIFT_HOST_DEVICE const_iterator_type | begin () const |
| LIFT_HOST_DEVICE iterator_type | begin () |
| LIFT_HOST_DEVICE const_iterator_type | end () const |
| LIFT_HOST_DEVICE iterator_type | end () |
| LIFT_HOST_DEVICE const_iterator_type | cbegin () const |
| LIFT_HOST_DEVICE const_iterator_type | cend () const |
| LIFT_HOST_DEVICE thrust_const_iterator_type | t_begin () const |
| Returns a Thrust-compatible iterator pointing at the base address of the pointer. More... | |
| LIFT_HOST_DEVICE thrust_iterator_type | t_begin () |
| Returns a Thrust-compatible iterator pointing at the base address of the pointer. More... | |
| LIFT_HOST_DEVICE thrust_const_iterator_type | t_end () const |
| Returns a Thrust-compatible iterator pointing at the end of the memory region covered by this pointer object. More... | |
| LIFT_HOST_DEVICE thrust_iterator_type | t_end () |
| Returns a Thrust-compatible iterator pointing at the end of the memory region covered by this pointer object. More... | |
| LIFT_HOST_DEVICE size_type | size () const |
| LIFT_HOST_DEVICE bool | empty () const |
| LIFT_HOST_DEVICE pointer_type | data () const |
Protected Member Functions | |
| void | device_memory_copy (void *dst, const void *src, size_t size) |
Additional Inherited Members | |
Protected Attributes inherited from lift::tagged_pointer_base< system, T, _index_type > | |
| pointer_type | storage |
| size_type | storage_size |
Definition at line 51 of file allocation.h.
| typedef allocator lift::allocation< system, T, _index_type, allocator >::allocator_type |
Definition at line 60 of file allocation.h.
| typedef pointer<system, T, _index_type> lift::allocation< system, T, _index_type, allocator >::base |
Definition at line 53 of file allocation.h.
| typedef tagged_pointer_base<host, T, _index_type> lift::pointer< system, T, _index_type >::base |
| typedef base::index_type lift::allocation< system, T, _index_type, allocator >::index_type |
Definition at line 58 of file allocation.h.
| typedef base::pointer_type lift::allocation< system, T, _index_type, allocator >::pointer_type |
Definition at line 55 of file allocation.h.
| typedef base::size_type lift::allocation< system, T, _index_type, allocator >::size_type |
Definition at line 57 of file allocation.h.
| typedef base::value_type lift::allocation< system, T, _index_type, allocator >::value_type |
Definition at line 56 of file allocation.h.
|
inline |
Definition at line 66 of file allocation.h.
|
inline |
Definition at line 70 of file allocation.h.
|
inline |
Definition at line 76 of file allocation.h.
|
inline |
Definition at line 85 of file allocation.h.
|
inline |
Definition at line 91 of file allocation.h.
|
inline |
Definition at line 162 of file allocation.h.
|
inlineprotected |
Definition at line 193 of file allocation.h.
|
inlinevirtual |
Reimplemented in lift::persistent_allocation< system, T, _index_type, allocator >, and lift::persistent_allocation< system, T, index_type, allocator >.
Definition at line 148 of file allocation.h.
|
inline |
Definition at line 106 of file allocation.h.
|
inline |
Definition at line 115 of file allocation.h.
|
inlinevirtual |
Reimplemented in lift::persistent_allocation< system, T, index_type, allocator >.
Definition at line 128 of file allocation.h.
1.8.6