ATLAS Offline Software
Loading...
Searching...
No Matches
ByteStream.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef BYTESTREAMDATA_BYTESTREAM_H
6#define BYTESTREAMDATA_BYTESTREAM_H
14
16
18public:
20 ByteStream() : m_nWord(0), m_start(nullptr) {}
21
23 explicit 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 != nullptr) {
33 delete [] m_start;
34 m_start = nullptr;
35 }
36 }
37
40
41private:
46};
47
49CLASS_DEF(ByteStream, 7001, 1)
50#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Transient data object, holding BS content of the event.
Definition ByteStream.h:17
virtual ~ByteStream()
destructor
Definition ByteStream.h:31
ByteStream & operator=(const ByteStream &)=delete
ByteStream(int nWord)
constructor with nWord
Definition ByteStream.h:23
ByteStream(const ByteStream &)=delete
ByteStream()
default constructor
Definition ByteStream.h:20
OFFLINE_FRAGMENTS_NAMESPACE::DataType * getBuffer()
get internal buffer
Definition ByteStream.h:39
int m_nWord
number of words
Definition ByteStream.h:43
OFFLINE_FRAGMENTS_NAMESPACE::DataType * m_start
representation
Definition ByteStream.h:45