ATLAS Offline Software
Loading...
Searching...
No Matches
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):
9extern "C" {
10# include <stdint.h>
11}
12#include <vector>
13
26
27public:
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
49protected:
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
Base class holding the container independent part of ElementLinkVector.
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.