|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #ifndef XAODCORE_TOOLS_AUXPERSINFO_H
9 #define XAODCORE_TOOLS_AUXPERSINFO_H
42 virtual std::unique_ptr<SG::IAuxTypeVector>
clone()
const override {
43 return std::make_unique<AuxPersInfo<T> >(*this);
46 virtual void*
toPtr()
override {
49 virtual const void*
toPtr()
const override {
55 virtual size_t size()
const override {
60 throw std::runtime_error(
"Calling resize with != 1 on a "
67 throw std::runtime_error(
"Calling reserve with != 1 on a "
71 virtual bool shift(
size_t , ptrdiff_t )
override {
72 throw std::runtime_error(
"Calling shift on a non-vector" );
76 void* ,
size_t ,
size_t ,
79 throw std::runtime_error(
"Calling insertMove on a non-vector" );
82 virtual const std::type_info*
objType()
const override {
99 #endif // XAODCORE_TOOLS_AUXPERSINFO_H
virtual void * toPtr() override
Return a pointer to the start of the vector's data.
info_type m_info
Reference to the info being handled.
AuxPersInfo(SG::auxid_t auxid, info_type info, SG::IAuxStore *)
Constructor.
virtual void * toVector() override
Return a pointer to the STL vector itself.
Class managing concrete persistent variables.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
bool const RAWDATA *ch2 const
virtual size_t size() const override
Return the size of the vector.
Abstract interface for manipulating vectors of arbitrary types.
virtual SG::AuxDataSpanBase getDataSpanImpl() const override final
Return a span object describing the current vector.
size_t auxid_t
Identifier for a particular aux data item.
virtual const std::type_info * objType() const override
Return the type of the complete object to be saved.
IAuxTypeVector(auxid_t auxid, bool isLinked)
Constructor.
Minimal span-like object describing the range of an auxiliary variable.
auxid_t auxid() const
Return the auxid of the variable this vector represents.
T & info_type
Convenience type definition.
virtual bool insertMove(size_t, void *, size_t, size_t, SG::IAuxStore &) override
Insert elements into the vector via move semantics.
virtual bool shift(size_t, ptrdiff_t) override
Shift the elements of the vector.
Interface for non-const operations on an auxiliary store.
virtual bool resize(size_t sz) override
Change the size of the vector.
Abstract interface for manipulating vectors of arbitrary types.
virtual void reserve(size_t sz) override
Change the capacity of the vector.
#define ATLAS_THREAD_SAFE
virtual const void * toPtr() const override
Return a pointer to the start of the vector's data.
Define macros for attributes used to control the static checker.
virtual std::unique_ptr< SG::IAuxTypeVector > clone() const override
Make a copy of this vector.