DataFormats
FEDRawData
interface
FEDRawData.h
Go to the documentation of this file.
1
#ifndef FEDRawData_FEDRawData_h
2
#define FEDRawData_FEDRawData_h
3
16
#include <vector>
17
#include <cstddef>
18
19
class
FEDRawData
{
20
public
:
21
typedef
std::vector<unsigned char>
Data
;
22
typedef
Data::iterator
iterator
;
23
25
FEDRawData
();
26
30
FEDRawData
(
size_t
newsize);
31
33
FEDRawData
(
const
FEDRawData
&);
34
36
~FEDRawData
();
37
39
const
unsigned
char
*
data
()
const
;
40
42
unsigned
char
*
data
();
43
45
size_t
size
()
const
{
return
data_
.size(); }
46
49
void
resize
(
size_t
newsize);
50
51
private
:
52
Data
data_
;
53
};
54
55
#endif
FEDRawData::data_
Data data_
Definition:
FEDRawData.h:52
FEDRawData::Data
std::vector< unsigned char > Data
Definition:
FEDRawData.h:21
FEDRawData::data
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
Definition:
FEDRawData.cc:24
FEDRawData
Definition:
FEDRawData.h:19
FEDRawData::iterator
Data::iterator iterator
Definition:
FEDRawData.h:22
FEDRawData::~FEDRawData
~FEDRawData()
Dtor.
Definition:
FEDRawData.cc:23
FEDRawData::size
size_t size() const
Lenght of the data buffer in bytes.
Definition:
FEDRawData.h:45
FEDRawData::resize
void resize(size_t newsize)
Definition:
FEDRawData.cc:28
FEDRawData::FEDRawData
FEDRawData()
Default ctor.
Definition:
FEDRawData.cc:14
Generated for CMSSW Reference Manual by
1.8.16