ATLAS Offline Software
Loading...
Searching...
No Matches
ElementLinkVectorBase Class Referenceabstract

Base class holding the container independent part of ElementLinkVector. More...

#include <ElementLinkVectorBase.h>

Inherited by ElementLinkVector< asso_container_type >, ElementLinkVector< CONTAINER >, ElementLinkVector< typename NAV::container_type >, ElementLinkVector< Rec::TrackParticleContainer >, ElementLinkVector< CaloCellContainer >, ElementLinkVector< DataVector< Trk::Segment > >, ElementLinkVector< CaloClusterContainer >, ElementLinkVector< Analysis::TauDetailsContainer >, ElementLinkVector< AthExIParticles >, ElementLinkVector< DataVector< CaloCluster_v1 > >, ElementLinkVector< DataVector< xAOD::Jet_v1 > >, ElementLinkVector< DataVector< C_v1 > >, ElementLinkVector< DataVector< DMTest::B > >, ElementLinkVector< ExampleHitContainer >, ElementLinkVector< TrigInDetTrackCollection >, ElementLinkVector< DataVector< xAOD::TrackParticle_v1 > >, ElementLinkVector< VxContainer >, ElementLinkVector< egDetailContainer >, ElementLinkVector< asso_container_type >, ElementLinkVector< CONTAINER >, ElementLinkVector< typename NAV::container_type >, ElementLinkVector< Rec::TrackParticleContainer >, ElementLinkVector< CaloCellContainer >, ElementLinkVector< DataVector< Trk::Segment > >, ElementLinkVector< CaloClusterContainer >, ElementLinkVector< Analysis::TauDetailsContainer >, ElementLinkVector< AthExIParticles >, ElementLinkVector< DataVector< CaloCluster_v1 > >, ElementLinkVector< DataVector< xAOD::Jet_v1 > >, ElementLinkVector< DataVector< C_v1 > >, ElementLinkVector< DataVector< DMTest::B > >, ElementLinkVector< ExampleHitContainer >, ElementLinkVector< TrigInDetTrackCollection >, ElementLinkVector< DataVector< xAOD::TrackParticle_v1 > >, ElementLinkVector< VxContainer >, ElementLinkVector< egDetailContainer >, ElementLinkVector< DOBJ >, and ElementLinkVector< DOBJ >.

Collaboration diagram for ElementLinkVectorBase:

Public Member Functions

 ElementLinkVectorBase (const std::vector< uint32_t > &keys=std::vector< uint32_t >(), const std::vector< uint32_t > &indices=std::vector< uint32_t >())
 Default constructor.
virtual ~ElementLinkVectorBase ()
 Virtual destructor, to make vtable happy...
const std::vector< uint32_t > & persKeys () const
 Get the keys/identifiers of the referenced containers.
void setPersKeys (const std::vector< uint32_t > &keys)
 Set the keys/identifiers of the referenced containers.
const std::vector< uint32_t > & persIndices () const
 Get the indices of the referenced objects in the containers.
void setPersIndices (const std::vector< uint32_t > &indices)
 Set the indices of the referenced objects in the containers.
virtual bool toTransient ()=0
 Reset the object's internal cache.
 ElementLinkVectorBase (const std::vector< uint32_t > &keys=std::vector< uint32_t >(), const std::vector< uint32_t > &indices=std::vector< uint32_t >())
 Default constructor.
virtual ~ElementLinkVectorBase ()
 Virtual destructor, to make vtable happy...
const std::vector< uint32_t > & persKeys () const
 Get the keys/identifiers of the referenced containers.
void setPersKeys (const std::vector< uint32_t > &keys)
 Set the keys/identifiers of the referenced containers.
const std::vector< uint32_t > & persIndices () const
 Get the indices of the referenced objects in the containers.
void setPersIndices (const std::vector< uint32_t > &indices)
 Set the indices of the referenced objects in the containers.
virtual bool toTransient ()=0
 Reset the object's internal cache.

Protected Attributes

std::vector< uint32_t > m_persKeys
 Keys/identifiers of the referenced containers.
std::vector< uint32_t > m_persIndices
 Indices of the referenced objects in the containers.
bool m_isDirectIO
 A transient variable signaling when direct I/O is happening.

Detailed Description

Base class holding the container independent part of ElementLinkVector.

   This class holds the ROOT persistifiable part of the
   ElementLinkVector<T> class. In the simplest form imaginable.
Author
Attila Krasznahorkay Attil.nosp@m.a.Kr.nosp@m.aszna.nosp@m.hork.nosp@m.ay@ce.nosp@m.rn.c.nosp@m.h
Revision
589034
Date
2014-03-24 01:25:32 +0100 (Mon, 24 Mar 2014)
   This class holds the ROOT persistifiable part of the
   ElementLinkVector<T> class. In the simplest form imaginable.
Author
Attila Krasznahorkay Attil.nosp@m.a.Kr.nosp@m.aszna.nosp@m.hork.nosp@m.ay@ce.nosp@m.rn.c.nosp@m.h
Revision
567807
Date
2013-10-30 10:30:16 +0100 (Wed, 30 Oct 2013)

Definition at line 28 of file AthLinks/ElementLinkVectorBase.h.

Constructor & Destructor Documentation

◆ ElementLinkVectorBase() [1/2]

ElementLinkVectorBase::ElementLinkVectorBase ( const std::vector< uint32_t > & keys = std::vector< uint32_t >(),
const std::vector< uint32_t > & indices = std::vector< uint32_t >() )

Default constructor.

Definition at line 10 of file src/ElementLinkVectorBase.cxx.

13 : m_persKeys( keys ), m_persIndices( indices ), m_isDirectIO( false ) {
14
15}
bool m_isDirectIO
A transient variable signaling when direct I/O is happening.
std::vector< uint32_t > m_persKeys
Keys/identifiers of the referenced containers.
std::vector< uint32_t > m_persIndices
Indices of the referenced objects in the containers.

◆ ~ElementLinkVectorBase() [1/2]

virtual ElementLinkVectorBase::~ElementLinkVectorBase ( )
inlinevirtual

Virtual destructor, to make vtable happy...

Definition at line 37 of file AthLinks/ElementLinkVectorBase.h.

37{}

◆ ElementLinkVectorBase() [2/2]

ElementLinkVectorBase::ElementLinkVectorBase ( const std::vector< uint32_t > & keys = std::vector< uint32_t >(),
const std::vector< uint32_t > & indices = std::vector< uint32_t >() )

Default constructor.

◆ ~ElementLinkVectorBase() [2/2]

virtual ElementLinkVectorBase::~ElementLinkVectorBase ( )
inlinevirtual

Virtual destructor, to make vtable happy...

Definition at line 34 of file A/AthLinks/ElementLinkVectorBase.h.

34{}

Member Function Documentation

◆ persIndices() [1/2]

const std::vector< uint32_t > & ElementLinkVectorBase::persIndices ( ) const

Get the indices of the referenced objects in the containers.

Definition at line 29 of file src/ElementLinkVectorBase.cxx.

29 {
30
31 return m_persIndices;
32}

◆ persIndices() [2/2]

const std::vector< uint32_t > & ElementLinkVectorBase::persIndices ( ) const

Get the indices of the referenced objects in the containers.

◆ persKeys() [1/2]

const std::vector< uint32_t > & ElementLinkVectorBase::persKeys ( ) const

Get the keys/identifiers of the referenced containers.

Definition at line 17 of file src/ElementLinkVectorBase.cxx.

17 {
18
19 return m_persKeys;
20}

◆ persKeys() [2/2]

const std::vector< uint32_t > & ElementLinkVectorBase::persKeys ( ) const

Get the keys/identifiers of the referenced containers.

◆ setPersIndices() [1/2]

void ElementLinkVectorBase::setPersIndices ( const std::vector< uint32_t > & indices)

Set the indices of the referenced objects in the containers.

Definition at line 35 of file src/ElementLinkVectorBase.cxx.

36 {
37
39 return;
40}
std::pair< long int, long int > indices

◆ setPersIndices() [2/2]

void ElementLinkVectorBase::setPersIndices ( const std::vector< uint32_t > & indices)

Set the indices of the referenced objects in the containers.

◆ setPersKeys() [1/2]

void ElementLinkVectorBase::setPersKeys ( const std::vector< uint32_t > & keys)

Set the keys/identifiers of the referenced containers.

Definition at line 23 of file src/ElementLinkVectorBase.cxx.

◆ setPersKeys() [2/2]

void ElementLinkVectorBase::setPersKeys ( const std::vector< uint32_t > & keys)

Set the keys/identifiers of the referenced containers.

◆ toTransient() [1/2]

◆ toTransient() [2/2]

Member Data Documentation

◆ m_isDirectIO

bool ElementLinkVectorBase::m_isDirectIO
protected

A transient variable signaling when direct I/O is happening.

A transient variable signalling when direct I/O is happening.

This flag is used exclusively by the ElementLinkVector<>::toTransient() function to know when it should take the persistent data stored in this object into account. That function is called in normal P->T conversions as well, in which case using the data from this class would just reset the object to its default state.

Definition at line 66 of file AthLinks/ElementLinkVectorBase.h.

◆ m_persIndices

std::vector< uint32_t > ElementLinkVectorBase::m_persIndices
protected

Indices of the referenced objects in the containers.

Definition at line 56 of file AthLinks/ElementLinkVectorBase.h.

◆ m_persKeys

std::vector< uint32_t > ElementLinkVectorBase::m_persKeys
protected

Keys/identifiers of the referenced containers.

Definition at line 54 of file AthLinks/ElementLinkVectorBase.h.


The documentation for this class was generated from the following files: