Pure virtual base class of objects that manage memory allocation and destruction. More...

#include <Memory.h>

Inheritance diagram for dsp::Memory:
Reference::Able Reference::HeapTracked CUDA::DeviceMemory CUDA::TextureMemory dsp::MemoryHost CUDA::PinnedMemory

Public Member Functions

virtual void * do_allocate (size_t nbytes)=0
 
virtual void do_free (void *)=0
 
virtual void do_zero (void *ptr, size_t nbytes)=0
 
virtual void do_copy (void *to, const void *from, size_t bytes)=0
 
virtual bool on_host () const =0
 
- Public Member Functions inherited from Reference::Able
 Able (const Able &)
 
Ableoperator= (const Able &)
 
unsigned get_reference_count () const
 
- Public Member Functions inherited from Reference::HeapTracked
 HeapTracked (const HeapTracked &)
 
HeapTrackedoperator= (const HeapTracked &)
 
bool __is_on_heap () const
 

Static Public Member Functions

static void * allocate (size_t nbytes)
 
static void free (void *)
 
static void set_manager (Memory *)
 
static Memoryget_manager ()
 
- Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
 
- Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
 
static void operator delete (void *location, void *ptr)
 
static void operator delete (void *location)
 
static size_t get_heap_queue_size ()
 

Static Protected Attributes

static Memorymanager = 0
 

Additional Inherited Members

- Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 
void __dereference (bool auto_delete=true) const
 

Detailed Description

Pure virtual base class of objects that manage memory allocation and destruction.


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

Generated using doxygen 1.8.17