BOSS 7.0.8
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 
)

◆ bufSize()

◆ 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: