ATLAS Offline Software
AthLinks/ElementLinkVectorBase.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: ElementLinkVectorBase.h 589034 2014-03-24 00:25:32Z ssnyder $
8 #ifndef ATHLINKS_ELEMENTLINKVECTORBASE_H
9 #define ATHLINKS_ELEMENTLINKVECTORBASE_H
10 
11 // System include(s):
12 extern "C" {
13 # include <stdint.h>
14 }
15 #include <vector>
16 
29 
30 public:
32  ElementLinkVectorBase( const std::vector< uint32_t >& keys =
33  std::vector< uint32_t >(),
34  const std::vector< uint32_t >& indices =
35  std::vector< uint32_t >() );
38 
40  const std::vector< uint32_t >& persKeys() const;
42  void setPersKeys( const std::vector< uint32_t >& keys );
43 
45  const std::vector< uint32_t >& persIndices() const;
47  void setPersIndices( const std::vector< uint32_t >& indices );
48 
50  virtual bool toTransient() = 0;
51 
52 protected:
54  std::vector< uint32_t > m_persKeys;
56  std::vector< uint32_t > m_persIndices;
57 
67 
68 }; // class ElementLinkVectorBase
69 
70 #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::persIndices
const std::vector< uint32_t > & persIndices() const
Get the indices of the referenced objects in the containers.
Definition: src/ElementLinkVectorBase.cxx:29
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.
Definition: src/ElementLinkVectorBase.cxx:11
ElementLinkVectorBase::setPersKeys
void setPersKeys(const std::vector< uint32_t > &keys)
Set the keys/identifiers of the referenced containers.
Definition: src/ElementLinkVectorBase.cxx:23
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: AthLinks/ElementLinkVectorBase.h:37
ElementLinkVectorBase::persKeys
const std::vector< uint32_t > & persKeys() const
Get the keys/identifiers of the referenced containers.
Definition: src/ElementLinkVectorBase.cxx:17
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.
Definition: src/ElementLinkVectorBase.cxx:36