Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ByteStream.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef BYTESTREAMDATA_BYTESTREAM_H
6 #define BYTESTREAMDATA_BYTESTREAM_H
7 
16 
17 class ByteStream {
18 public:
20  ByteStream() : m_nWord(0), m_start(0) {}
21 
23  ByteStream(int nWord) : m_nWord(nWord) {
25  }
26 
27  ByteStream(const ByteStream&) = delete;
28  ByteStream& operator=(const ByteStream&) = delete;
29 
31  virtual ~ByteStream() {
32  if (m_start != 0) {
33  delete [] m_start; m_start = 0;
34  }
35  }
36 
39 
40 private:
42  int m_nWord;
45 };
46 
47 #include "AthenaKernel/CLASS_DEF.h"
48 CLASS_DEF(ByteStream, 7001, 1)
49 #endif
OFFLINE_FRAGMENTS_NAMESPACE::DataType
uint32_t DataType
Definition: RawEvent.h:24
ByteStream::ByteStream
ByteStream(int nWord)
constructor with nWord
Definition: ByteStream.h:23
ByteStream::ByteStream
ByteStream(const ByteStream &)=delete
ByteStream::m_nWord
int m_nWord
number of words
Definition: ByteStream.h:42
RawEvent.h
ByteStream::~ByteStream
virtual ~ByteStream()
destructor
Definition: ByteStream.h:31
ByteStream::m_start
OFFLINE_FRAGMENTS_NAMESPACE::DataType * m_start
representation
Definition: ByteStream.h:44
ByteStream::ByteStream
ByteStream()
default constructor
Definition: ByteStream.h:20
ByteStream::operator=
ByteStream & operator=(const ByteStream &)=delete
ByteStream::getBuffer
OFFLINE_FRAGMENTS_NAMESPACE::DataType * getBuffer()
get internal buffer
Definition: ByteStream.h:38
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
ByteStream
Transient data object, holding BS content of the event.
Definition: ByteStream.h:17
CLASS_DEF.h
macros to associate a CLID to a type