ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
ElementLinkVectorBase Class Referenceabstract

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

#include <ElementLinkVectorBase.h>

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

Protected Attributes

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

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 }

◆ ~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.

◆ persIndices() [2/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 }

◆ persKeys() [1/2]

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

Get the keys/identifiers of the referenced containers.

◆ persKeys() [2/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 }

◆ setPersIndices() [1/2]

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

Set the indices of the referenced objects in the containers.

◆ setPersIndices() [2/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 }

◆ setPersKeys() [1/2]

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

Set the keys/identifiers of the referenced containers.

◆ setPersKeys() [2/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.

23  {
24 
25  m_persKeys = keys;
26  return;
27 }

◆ toTransient() [1/2]

virtual bool ElementLinkVectorBase::toTransient ( )
pure virtual

Reset the object's internal cache.

◆ toTransient() [2/2]

virtual bool ElementLinkVectorBase::toTransient ( )
pure virtual

Reset the object's internal cache.

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:
ElementLinkVectorBase::m_persIndices
std::vector< uint32_t > m_persIndices
Indices of the referenced objects in the containers.
Definition: AthLinks/ElementLinkVectorBase.h:56
ElementLinkVectorBase::m_isDirectIO
bool m_isDirectIO
A transient variable signaling when direct I/O is happening.
Definition: AthLinks/ElementLinkVectorBase.h:66
Trk::indices
std::pair< long int, long int > indices
Definition: AlSymMatBase.h:24
ElementLinkVectorBase::m_persKeys
std::vector< uint32_t > m_persKeys
Keys/identifiers of the referenced containers.
Definition: AthLinks/ElementLinkVectorBase.h:54
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790