Scratch space that can be shared between Operations. More...

#include <Scratch.h>

Inheritance diagram for dsp::Scratch:
OwnStream Reference::Able Reference::HeapTracked

Public Member Functions

 Scratch ()
 Default constructor.
 
 ~Scratch ()
 Destructor.
 
template<typename T >
T * space (size_t ndat)
 Return typed pointer to shared memory resource.
 
void * space (size_t nbytes)
 Return pointer to shared memory resource. More...
 
virtual void set_memory (Memory *)
 Set the memory manager.
 
- Public Member Functions inherited from OwnStream
 OwnStream (const OwnStream &)
 
const OwnStreamoperator= (const OwnStream &)
 
virtual void set_cout (std::ostream &) const
 
virtual void set_cerr (std::ostream &) const
 
- 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 Scratchget_default_scratch ()
 Default scratch space.
 
- 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 ()
 

Protected Attributes

Reference::To< Memorymemory
 The memory manager.
 
char * working_space
 
size_t working_size
 

Additional Inherited Members

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

Detailed Description

Scratch space that can be shared between Operations.

This simple class manages a block of memory that can be used as a temporary scratch spaceshared by multiple Operations

Member Function Documentation

◆ space()

void * dsp::Scratch::space ( size_t  nbytes)

Return pointer to shared memory resource.

Return pointer to a memory resource shared by operations.


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

Generated using doxygen 1.8.17