BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
BufferHolder Class Reference

#include <BufferHolder.h>

Public Member Functions

 BufferHolder ()
 
virtual ~BufferHolder ()
 
void reset ()
 
uint32_t nBuf () const
 
uint32_t bufSize (int i) const
 
uint32_t * operator() (int ibuf) const
 
void addBuffer (uint32_t *buffer, uint32_t size)
 

Detailed Description

Definition at line 7 of file BufferHolder.h.

Constructor & Destructor Documentation

◆ BufferHolder()

BufferHolder::BufferHolder ( )
inline

Definition at line 10 of file BufferHolder.h.

10: m_nbuf(0) {}

◆ ~BufferHolder()

virtual BufferHolder::~BufferHolder ( )
inlinevirtual

Definition at line 11 of file BufferHolder.h.

11{};

Member Function Documentation

◆ addBuffer()

void BufferHolder::addBuffer ( uint32_t *  buffer,
uint32_t  size 
)

Definition at line 13 of file BufferHolder.cxx.

13 {
14 m_nbuf++;
15 m_buffer.push_back(buffer);
16 m_bufSize.push_back(size);
17}

Referenced by RAWEVENT::addMcParticle(), RAWEVENT::addReEmcDigi(), RAWEVENT::addReHltRaw(), RAWEVENT::addReMdcDigi(), RAWEVENT::addReMucDigi(), RAWEVENT::addReTofDigi(), and RAWEVENT::addReTrigGTD().

◆ bufSize()

uint32_t BufferHolder::bufSize ( int  i) const
inline

◆ nBuf()

◆ operator()()

uint32_t * BufferHolder::operator() ( int  ibuf) const

Definition at line 9 of file BufferHolder.cxx.

9 {
10 return m_buffer[ibuf];
11}

◆ reset()

void BufferHolder::reset ( )

Definition at line 3 of file BufferHolder.cxx.

3 {
4 m_nbuf = 0;
5 m_buffer.clear();
6 m_bufSize.clear();
7}

Referenced by RAWEVENT::reset().


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