ATLAS Offline Software
Loading...
Searching...
No Matches
IAuxStore.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 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
4*/
27
28
29#ifndef ATHCONTAINERSINTERFACES_IAUXSTORE_H
30#define ATHCONTAINERSINTERFACES_IAUXSTORE_H
31
32
34#include <cstddef>
35
36
37namespace SG {
38
39
40class AuxDataOption;
41
42
47 : public IConstAuxStore
48{
49public:
52
53
72 virtual void* getData (auxid_t auxid, size_t size, size_t capacity) = 0;
73
74
81 virtual const SG::auxid_set_t& getWritableAuxIDs() const = 0;
82
83
99 virtual bool resize (size_t sz) = 0;
100
101
110 virtual void reserve (size_t sz) = 0;
111
112
135 virtual void shift (size_t pos, ptrdiff_t offs) = 0;
136
137
157 virtual bool insertMove (size_t pos,
158 IAuxStore& other,
159 const SG::auxid_set_t& ignore = SG::auxid_set_t())
160 = 0;
161
162
173 virtual bool setOption (auxid_t /*auxid*/, const AuxDataOption& /*option*/)
174 { return false; }
175
176
188 { return nullptr; }
189
199 static constexpr bool supportsThinning = true;
200};
201
202
203} // namespace SG
204
205
206
207#ifndef XAOD_STANDALONE
211CLASS_DEF( SG::IAuxStore , 178378299 , 1 )
212#endif
213
214
215#endif // not ATHCONTAINERSINTERFACES_IAUXSTORE_H
Provide an interface for finding inheritance information at run time.
#define SG_BASE(D, B)
Declare that class D derives from class B.
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Interface for const operations on an auxiliary store.
static Double_t sz
Hold information about an option setting request.
Interface for non-const operations on an auxiliary store.
Definition IAuxStore.h:48
virtual bool insertMove(size_t pos, IAuxStore &other, const SG::auxid_set_t &ignore=SG::auxid_set_t())=0
Move all elements from other to this store.
virtual bool setOption(auxid_t, const AuxDataOption &)
Set an option for a given auxiliary variable.
Definition IAuxStore.h:173
virtual bool resize(size_t sz)=0
Change the size of all aux data vectors.
virtual void reserve(size_t sz)=0
Change the capacity of all aux data vectors.
virtual IAuxTypeVector * linkedVector(SG::auxid_t)
Definition IAuxStore.h:187
static constexpr bool supportsThinning
Mark that this type supports thinning operations.
Definition IAuxStore.h:199
virtual const SG::auxid_set_t & getWritableAuxIDs() const =0
Return a set of identifiers for writable data items in this store.
virtual void shift(size_t pos, ptrdiff_t offs)=0
Shift the elements of the container.
virtual void * getData(auxid_t auxid, size_t size, size_t capacity)=0
Return the data vector for one aux data item.
Abstract interface for manipulating vectors of arbitrary types.
Interface for const operations on an auxiliary store.
virtual const IAuxTypeVector * linkedVector(SG::auxid_t) const
Return interface for a linked variable.
virtual const void * getData(SG::auxid_t auxid) const =0
Return the data vector for one aux data item.
virtual size_t size() const =0
Return the number of elements in the store.
A set of aux data identifiers.
Definition AuxTypes.h:47
Forward declaration.
size_t auxid_t
Identifier for a particular aux data item.
Definition AuxTypes.h:27