ATLAS Offline Software
|
Describe a range over an auxiliary variable, for low-overhead access. More...
#include <cstddef>
#include <stdexcept>
Go to the source code of this file.
Classes | |
struct | SG::AuxDataSpanBase |
Minimal span-like object describing the range of an auxiliary variable. More... | |
class | SG::detail::AuxDataSpan< T > |
Auxiliary variable span wrapper. More... | |
class | SG::detail::AuxDataConstSpan< T > |
Auxiliary variable span wrapper (const). More... | |
Namespaces | |
SG | |
Forward declaration. | |
SG::detail | |
Describe a range over an auxiliary variable, for low-overhead access.
IAuxTypeVector
. This provides virtual functions to obtain the start and size of the vector. However, in some cases, we would like to be able to obtain this without the overhead of the virtual function calls. We do this using the minimal span-like object AuxDataSpanBase
. A IAuxTypeVector
holds an instance of this object and provides a non-virtual function to return a reference to it. Further, it is updated when the vector changes. Thus, clients can hold a reference to it and implicitly see any updates. Besides this minimal object, a couple more user-friendly wrappers are also defined. Definition in file AuxDataSpan.h.