ATLAS Offline Software
Loading...
Searching...
No Matches
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
21#include <vector>
22
23
24namespace SG {
25
26
47template <class T, class ALLOC = AuxAllocator_t<T> >
49 : public std::vector<T, ALLOC>, public IAuxSetOption
50{
51public:
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
125private:
128};
129
130
131} // namespace SG
132
133
135
136
137#endif // not ATHCONTAINERS_PACKEDCONTAINER_H
Allow customizing how aux data types are treated.
Abstract interface for setting a option on a aux data container.
Describe how the contents of a PackedContainer are to be saved.
Hold information about an option setting request.
Abstract interface for setting a option on a aux data container.
bool setOption(const std::string &name, float val)
Set a packing option.
PackedContainer()
Constructor.
bool setOption(const std::string &name, int val)
Set a packing option.
bool setOption(const std::string &name, double val)
Set a packing option.
void setParms(const PackedParameters &parms)
Set the packing parameters.
const PackedParameters & parms() const
Return the packing parameters for this container.
virtual bool setOption(const AuxDataOption &option) override
Set a packing option.
PackedParameters m_parms
The packing parameters.
std::vector< T, ALLOC > vector_type
We act like this type.
Describe how the contents of a PackedContainer are to be saved.
Forward declaration.