ATLAS Offline Software
Loading...
Searching...
No Matches
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):
12extern "C" {
13# include <stdint.h>
14}
15#include <vector>
16
29
30public:
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
52protected:
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
virtual ~ElementLinkVectorBase()
Virtual destructor, to make vtable happy...
void setPersIndices(const std::vector< uint32_t > &indices)
Set the indices of the referenced objects in the containers.
const std::vector< uint32_t > & persKeys() const
Get the keys/identifiers of the referenced containers.
bool m_isDirectIO
A transient variable signaling when direct I/O is happening.
const std::vector< uint32_t > & persIndices() const
Get the indices of the referenced objects in the containers.
std::vector< uint32_t > m_persKeys
Keys/identifiers of the referenced containers.
void setPersKeys(const std::vector< uint32_t > &keys)
Set the keys/identifiers of the referenced containers.
std::vector< uint32_t > m_persIndices
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.