ngscopeclient v0.2
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
ScratchBuffer< ID, T > Class Template Reference

RAII helper for allocations. More...

#include <ScratchBufferManager.h>

Inheritance diagram for ScratchBuffer< ID, T >:
Inheritance graph
[legend]
Collaboration diagram for ScratchBuffer< ID, T >:
Collaboration graph
[legend]

Public Member Functions

 ScratchBuffer (ScratchBuffer< ID, T > &&rhs)
 
 ScratchBuffer (ID id)
 
autooperator= (ScratchBuffer< ID, T > &&rhs)
 
AcceleratorBuffer< T > & operator* ()
 Get the underlying temporary.
 
AcceleratorBuffer< T > * operator-> ()
 Get the underlying temporary.
 

Protected Attributes

std::shared_ptr< AcceleratorBuffer< T > > m_ptr
 The underlying buffer pointer.
 
ID m_pool
 The pool we were allocated from.
 

Detailed Description

template<class ID, class T>
class ScratchBuffer< ID, T >

RAII helper for allocations.


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