ATLAS Offline Software
A/AthLinks/ElementLinkVectorBase.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 /*
3  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
4  */
5 #ifndef ATHLINKS_ELEMENTLINKVECTORBASE_H
6 #define ATHLINKS_ELEMENTLINKVECTORBASE_H
7 
8 // System include(s):
9 extern "C" {
10 # include <stdint.h>
11 }
12 #include <vector>
13 
26 
27 public:
29  ElementLinkVectorBase( const std::vector< uint32_t >& keys =
30  std::vector< uint32_t >(),
31  const std::vector< uint32_t >& indices =
32  std::vector< uint32_t >() );
35 
37  const std::vector< uint32_t >& persKeys() const;
39  void setPersKeys( const std::vector< uint32_t >& keys );
40 
42  const std::vector< uint32_t >& persIndices() const;
44  void setPersIndices( const std::vector< uint32_t >& indices );
45 
47  virtual bool toTransient() = 0;
48 
49 protected:
51  std::vector< uint32_t > m_persKeys;
53  std::vector< uint32_t > m_persIndices;
54 
63  bool m_isDirectIO;
64 
65 }; // class ElementLinkVectorBase
66 
67 #endif // ATHLINKS_ELEMENTLINKVECTORBASE_H
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
Base class holding the container independent part of ElementLinkVector.
Definition: AthLinks/ElementLinkVectorBase.h:28
ElementLinkVectorBase::toTransient
virtual bool toTransient()=0
Reset the object's internal cache.
ElementLinkVectorBase::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::setPersKeys
void setPersKeys(const std::vector< uint32_t > &keys)
Set the keys/identifiers of the referenced containers.
ElementLinkVectorBase::m_persKeys
std::vector< uint32_t > m_persKeys
Keys/identifiers of the referenced containers.
Definition: AthLinks/ElementLinkVectorBase.h:54
ElementLinkVectorBase::~ElementLinkVectorBase
virtual ~ElementLinkVectorBase()
Virtual destructor, to make vtable happy...
Definition: A/AthLinks/ElementLinkVectorBase.h:34
ElementLinkVectorBase::persKeys
const std::vector< uint32_t > & persKeys() const
Get the keys/identifiers of the referenced containers.
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
ElementLinkVectorBase::setPersIndices
void setPersIndices(const std::vector< uint32_t > &indices)
Set the indices of the referenced objects in the containers.
ElementLinkVectorBase::persIndices
const std::vector< uint32_t > & persIndices() const
Get the indices of the referenced objects in the containers.