xAOD::ByteStreamAuxContainer_v1 Class Reference

#include <ByteStreamAuxContainer_v1.h>

Inheritance diagram for xAOD::ByteStreamAuxContainer_v1:
SG::IAuxStore SG::IConstAuxStore xAOD::JetTrigAuxContainer_v1 xAOD::TrigCompositeAuxContainer_v1

List of all members.

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_v1operator= (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_tgetAuxIDs () 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_tgetWritableAuxIDs () 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.

Detailed Description

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.

Author:
Attila Krasznahorkay <Attila.Krasznahorkay@cern.ch>
Revision
645967
Date
2015-02-11 13:29:36 +0100 (Wed, 11 Feb 2015)

Member Function Documentation

template<typename T >
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.

Parameters:
name The name of the variable. Same as the C++ variable's name.
vec A reference to the auxiliary variable inside the object

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1