ATLAS Offline Software
|
! Handles allocation of a type T
, using indexer
as the integer type to indicate sizes.
More...
#include <Helpers.h>
Static Public Member Functions | |
template<class Context > | |
static T * | allocate (const indexer size) |
! More... | |
template<class Context > | |
static void | deallocate (T *&arr) |
! More... | |
template<class DestContext , class SourceContext > | |
static void | copy (T *dest, const T *const source, const indexer sz) |
! More... | |
template<class DestContext , class SourceContext > | |
static void | move (T *&dest, T *&source, const indexer sz) |
! More... | |
! Handles allocation of a type T
, using indexer
as the integer type to indicate sizes.
Definition at line 476 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inlinestatic |
!
Allocates size
elements from memory context Context
Definition at line 620 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inlinestatic |
!
Copies sz
bytes from source
in SourceContext
to dest
in DestContext
Definition at line 652 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inlinestatic |
!
Deallocates arr
from memory context Context
Definition at line 634 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inlinestatic |
!
Moves sz
bytes from source
in SourceContext
to dest
in DestContext
(performing the necessary data transfers and deallocations when the contexts are different). source
is set to null and dest
may be nulled if sz
is 0 or source
is null too.
Definition at line 670 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.