BOSS
7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RawDataCnv/RawDataCnv-00-04-35/RawDataCnv/Util/BufferHolder.h
Go to the documentation of this file.
1
#ifndef RAWDATA_BUFFER_HOLDER_H
2
#define RAWDATA_BUFFER_HOLDER_H
3
4
#include <stdint.h>
5
#include <vector>
6
7
class
BufferHolder
8
{
9
public
:
10
BufferHolder
() : m_nbuf(0) {}
11
virtual
~BufferHolder
() {};
12
13
void
reset
();
14
15
uint32_t
nBuf
()
const
{
return
m_nbuf; }
16
uint32_t
bufSize
(
int
i)
const
{
return
m_bufSize[i]; }
17
uint32_t*
operator()
(
int
ibuf)
const
;
18
19
void
addBuffer
(uint32_t* buffer, uint32_t size);
20
21
private
:
22
std::vector<uint32_t*> m_buffer;
23
std::vector<uint32_t> m_bufSize;
24
uint32_t m_nbuf;
25
};
26
27
#endif
BufferHolder
Definition:
Event/RawDataCnv/RawDataCnv-00-04-35/RawDataCnv/Util/BufferHolder.h:8
BufferHolder::addBuffer
void addBuffer(uint32_t *buffer, uint32_t size)
Definition:
BufferHolder.cxx:13
BufferHolder::nBuf
uint32_t nBuf() const
Definition:
Event/RawDataCnv/RawDataCnv-00-04-35/RawDataCnv/Util/BufferHolder.h:15
BufferHolder::reset
void reset()
Definition:
BufferHolder.cxx:3
BufferHolder::operator()
uint32_t * operator()(int ibuf) const
Definition:
BufferHolder.cxx:9
BufferHolder::BufferHolder
BufferHolder()
Definition:
Event/RawDataCnv/RawDataCnv-00-04-35/RawDataCnv/Util/BufferHolder.h:10
BufferHolder::bufSize
uint32_t bufSize(int i) const
Definition:
Event/RawDataCnv/RawDataCnv-00-04-35/RawDataCnv/Util/BufferHolder.h:16
BufferHolder::~BufferHolder
virtual ~BufferHolder()
Definition:
Event/RawDataCnv/RawDataCnv-00-04-35/RawDataCnv/Util/BufferHolder.h:11
source
Event
RawDataCnv
RawDataCnv-00-04-35
RawDataCnv
Util
BufferHolder.h
Generated by
1.9.6