ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
TrigAccel::OffloadBuffer Class Reference

#include <OffloadBuffer.h>

Collaboration diagram for TrigAccel::OffloadBuffer:

Public Member Functions

 OffloadBuffer (size_t size)
 
 OffloadBuffer (const DATA_EXPORT_BUFFER *pB)
 
virtual ~OffloadBuffer ()
 
 OffloadBuffer (const OffloadBuffer &)=delete
 
OffloadBufferoperator= (const OffloadBuffer &)=delete
 
unsigned char * get ()
 

Public Attributes

size_t m_bufferSize
 
unsigned char * m_rawBuffer
 

Detailed Description

Definition at line 13 of file OffloadBuffer.h.

Constructor & Destructor Documentation

◆ OffloadBuffer() [1/3]

TrigAccel::OffloadBuffer::OffloadBuffer ( size_t  size)
inline

Definition at line 15 of file OffloadBuffer.h.

15  : m_bufferSize(size) {
16  m_rawBuffer = new unsigned char[m_bufferSize];
17  }

◆ OffloadBuffer() [2/3]

TrigAccel::OffloadBuffer::OffloadBuffer ( const DATA_EXPORT_BUFFER pB)
inline

Definition at line 19 of file OffloadBuffer.h.

19  {
20  const size_t bufferOffset = 256;
21  m_bufferSize = pB->m_size - bufferOffset;
22  m_rawBuffer = new unsigned char[m_bufferSize];
23  memcpy(m_rawBuffer, pB->m_buffer + bufferOffset, m_bufferSize);
24  }

◆ ~OffloadBuffer()

virtual TrigAccel::OffloadBuffer::~OffloadBuffer ( )
inlinevirtual

Definition at line 26 of file OffloadBuffer.h.

26  {
27  delete[] m_rawBuffer;
28  }

◆ OffloadBuffer() [3/3]

TrigAccel::OffloadBuffer::OffloadBuffer ( const OffloadBuffer )
delete

Member Function Documentation

◆ get()

unsigned char* TrigAccel::OffloadBuffer::get ( )
inline

Definition at line 34 of file OffloadBuffer.h.

34  {
35  return m_rawBuffer;
36  }

◆ operator=()

OffloadBuffer& TrigAccel::OffloadBuffer::operator= ( const OffloadBuffer )
delete

Member Data Documentation

◆ m_bufferSize

size_t TrigAccel::OffloadBuffer::m_bufferSize

Definition at line 38 of file OffloadBuffer.h.

◆ m_rawBuffer

unsigned char* TrigAccel::OffloadBuffer::m_rawBuffer

Definition at line 39 of file OffloadBuffer.h.


The documentation for this class was generated from the following file:
TrigAccel::OffloadBuffer::m_bufferSize
size_t m_bufferSize
Definition: OffloadBuffer.h:38
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
TrigAccel::OffloadBuffer::m_rawBuffer
unsigned char * m_rawBuffer
Definition: OffloadBuffer.h:39