ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthContainers
AthContainers
PackedContainer.h
Go to the documentation of this file.
1
// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3
/*
4
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5
*/
12
13
14
#ifndef ATHCONTAINERS_PACKEDCONTAINER_H
15
#define ATHCONTAINERS_PACKEDCONTAINER_H
16
17
18
#include "
AthContainersInterfaces/IAuxSetOption.h
"
19
#include "
AthContainers/PackedParameters.h
"
20
#include "
AthContainers/tools/AuxDataTraits.h
"
21
#include <vector>
22
23
24
namespace
SG
{
25
26
47
template
<
class
T,
class
ALLOC = AuxAllocator_t<T> >
48
class
PackedContainer
49
:
public
std::vector<T, ALLOC>,
public
IAuxSetOption
50
{
51
public
:
53
typedef
std::vector<T, ALLOC>
vector_type
;
54
55
62
PackedContainer
();
63
64
73
virtual
bool
setOption
(
const
AuxDataOption
& option)
override
;
74
75
85
bool
setOption
(
const
std::string& name,
int
val);
86
87
97
bool
setOption
(
const
std::string& name,
float
val);
98
99
109
bool
setOption
(
const
std::string& name,
double
val);
110
111
115
const
PackedParameters
&
parms
()
const
;
116
117
122
void
setParms
(
const
PackedParameters
&
parms
);
123
124
125
private
:
127
PackedParameters
m_parms
;
128
};
129
130
131
}
// namespace SG
132
133
134
#include "
AthContainers/PackedContainer.icc
"
135
136
137
#endif
// not ATHCONTAINERS_PACKEDCONTAINER_H
AuxDataTraits.h
Allow customizing how aux data types are treated.
IAuxSetOption.h
Abstract interface for setting a option on a aux data container.
PackedContainer.icc
PackedParameters.h
Describe how the contents of a PackedContainer are to be saved.
SG::AuxDataOption
Hold information about an option setting request.
Definition
AuxDataOption.h:37
SG::IAuxSetOption
Abstract interface for setting a option on a aux data container.
Definition
IAuxSetOption.h:36
SG::PackedContainer::setOption
bool setOption(const std::string &name, float val)
Set a packing option.
SG::PackedContainer::PackedContainer
PackedContainer()
Constructor.
SG::PackedContainer::setOption
bool setOption(const std::string &name, int val)
Set a packing option.
SG::PackedContainer::setOption
bool setOption(const std::string &name, double val)
Set a packing option.
SG::PackedContainer::setParms
void setParms(const PackedParameters &parms)
Set the packing parameters.
SG::PackedContainer::parms
const PackedParameters & parms() const
Return the packing parameters for this container.
SG::PackedContainer::setOption
virtual bool setOption(const AuxDataOption &option) override
Set a packing option.
SG::PackedContainer::m_parms
PackedParameters m_parms
The packing parameters.
Definition
PackedContainer.h:127
SG::PackedContainer::vector_type
std::vector< T, ALLOC > vector_type
We act like this type.
Definition
PackedContainer.h:53
SG::PackedParameters
Describe how the contents of a PackedContainer are to be saved.
Definition
PackedParameters.h:66
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
Generated on
for ATLAS Offline Software by
1.17.0