ATLAS Offline Software
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 */
14 #ifndef ATHCONTAINERS_PACKEDCONTAINER_H
15 #define ATHCONTAINERS_PACKEDCONTAINER_H
16 
17 
21 #include <vector>
22 
23 
24 namespace SG {
25 
26 
47 template <class T, class ALLOC = AuxAllocator_t<T> >
49  : public std::vector<T, ALLOC>, public IAuxSetOption
50 {
51 public:
53  typedef std::vector<T, ALLOC> vector_type;
54 
55 
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 
123 
124 
125 private:
128 };
129 
130 
131 } // namespace SG
132 
133 
135 
136 
137 #endif // not ATHCONTAINERS_PACKEDCONTAINER_H
SG::PackedContainer::PackedContainer
PackedContainer()
Constructor.
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
SG::PackedContainer::setOption
virtual bool setOption(const AuxDataOption &option) override
Set a packing option.
PackedParameters.h
Describe how the contents of a PackedContainer are to be saved.
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::PackedContainer::setOption
bool setOption(const std::string &name, double val)
Set a packing option.
SG::PackedContainer::setOption
bool setOption(const std::string &name, int val)
Set a packing option.
SG::PackedContainer::setParms
void setParms(const PackedParameters &parms)
Set the packing parameters.
AuxDataTraits.h
Allow customizing how aux data types are treated.
SG::AuxDataOption
Hold information about an option setting request.
Definition: AuxDataOption.h:37
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
SG::IAuxSetOption
Abstract interface for setting a option on a aux data container.
Definition: IAuxSetOption.h:36
SG::PackedContainer::parms
const PackedParameters & parms() const
Return the packing parameters for this container.
IAuxSetOption.h
Abstract interface for setting a option on a aux data container.
SG::PackedContainer
Container to hold aux data to be stored in a packed form.
Definition: PackedContainer.h:50
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
PackedContainer.icc
SG::PackedContainer::setOption
bool setOption(const std::string &name, float val)
Set a packing option.
SG::PackedParameters
Describe how the contents of a PackedContainer are to be saved.
Definition: PackedParameters.h:66