ATLAS Offline Software
Loading...
Searching...
No Matches
SGObjectWithVersion.h
Go to the documentation of this file.
1/* -*- C++ -*- */
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
9#ifndef STOREGATE_SGOBJECTWITHVERSION_H
10#define STOREGATE_SGOBJECTWITHVERSION_H 1
11
14namespace SG {
19 template <typename T>
40}
42template <typename T>
44 const SG::ObjectWithVersion<T>& rhs) {
45 return (lhs.versionedKey < rhs.versionedKey);
46}
47
48#endif
bool operator<(const SG::ObjectWithVersion< T > &lhs, const SG::ObjectWithVersion< T > &rhs)
sort according to highest key version
defines a StoreGateSvc key with a version number
Handle class for reading from StoreGate.
associate a data object with its VersionedKey The object is held by a ReadHandle to delay its retriev...
ObjectWithVersion(const VersionedKey &vk, SG::DataProxy *proxy)
ObjectWithVersion(const VersionedKey &vk, const SG::ReadHandle< T > &dh)
SG::ReadHandle< T > dataObject
ObjectWithVersion & operator=(const ObjectWithVersion &rhs)
SG::VersionedKey versionedKey
ObjectWithVersion(const ObjectWithVersion &rhs)
a StoreGateSvc key with a version number.
Forward declaration.