#include <ByteStreamAuxContainer_v1.h>
Classes | |
struct | TSAuxidSet |
Thread-local versions of the auxid set. | |
Public Types | |
typedef SG::auxid_t | auxid_t |
The aux ID type definition from IConstAuxStore. | |
typedef SG::auxid_set_t | auxid_set_t |
The aux ID set type definition from IConstAuxStore. | |
Public Member Functions | |
ByteStreamAuxContainer_v1 () | |
Default constructor. | |
ByteStreamAuxContainer_v1 (const ByteStreamAuxContainer_v1 &parent) | |
Copy constructor. | |
~ByteStreamAuxContainer_v1 () | |
Destructor. | |
ByteStreamAuxContainer_v1 & | operator= (const ByteStreamAuxContainer_v1 &rhs) |
Assignment operator. | |
void | reset () |
Function resetting the internal (cached) state of the object. | |
Functions implementing the SG::IConstAuxStore interface | |
virtual const void * | getData (auxid_t auxid) const |
Get a pointer to a given array. | |
virtual const auxid_set_t & | getAuxIDs () const |
Get the types(names) of variables handled by this container. | |
virtual void * | getDecoration (auxid_t auxid, size_t size, size_t capacity) |
Get a pointer to a given array, as a decoration. | |
virtual void | lock () |
Lock the container. | |
virtual void | clearDecorations () |
Clear all decorations. | |
virtual size_t | size () const |
Get the size of the container. | |
Functions implementing the SG::IAuxStore interface | |
virtual void * | getData (auxid_t auxid, size_t size, size_t capacity) |
Get a pointer to a given array, creating the array if necessary. | |
virtual const auxid_set_t & | getWritableAuxIDs () const |
Return a set of writable data identifiers. | |
virtual void | resize (size_t size) |
Resize the arrays to a given size. | |
virtual void | reserve (size_t size) |
Reserve a given size for the arrays. | |
virtual void | shift (size_t pos, ptrdiff_t offs) |
Shift the contents of the stored arrays. | |
Functions managing the instance name of the container | |
const char * | name () const |
Get the name of the container instance. | |
void | setName (const char *name) |
Set the name of the container instance. | |
Protected Member Functions | |
template<typename T > | |
void | regAuxVar (const std::string &name, std::vector< T > &vec) |
Register one of the user defined persistent variables internally. |
Base class for dynamic auxiliary stores saved into ByteStream
The point of this class is to behave similarly to xAOD::AuxContainerBase. The trigger developers can develop their specific auxiliary store classes on top of this class. The base class can manage the storage of simple variable types, while the classes inheriting from it need to manage any specific variables that they want to store.
void xAOD::ByteStreamAuxContainer_v1::regAuxVar | ( | const std::string & | name, | |
std::vector< T > & | vec | |||
) | [inline, protected] |
Register one of the user defined persistent variables internally.
The user is expected to use this function inside the constructor of the derived class.
name | The name of the variable. Same as the C++ variable's name. | |
vec | A reference to the auxiliary variable inside the object |