ATLAS Offline Software
Classes | Namespaces | Functions
SGObjectWithVersion.h File Reference

associate a data object with its VersionedKey More...

#include "SGTools/SGVersionedKey.h"
#include "StoreGate/ReadHandle.h"
Include dependency graph for SGObjectWithVersion.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SG::ObjectWithVersion
 associate a data object with its VersionedKey The object is held by a ReadHandle to delay its retrieval in case the user is interested only in the versionedKey More...
 

Namespaces

 SG
 Forward declaration.
 

Functions

template<typename T >
bool operator< (const SG::ObjectWithVersion< T > &lhs, const SG::ObjectWithVersion< T > &rhs)
 sort according to highest key version More...
 

Detailed Description

associate a data object with its VersionedKey

Definition in file SGObjectWithVersion.h.

Function Documentation

◆ operator<()

template<typename T >
bool operator< ( const SG::ObjectWithVersion< T > &  lhs,
const SG::ObjectWithVersion< T > &  rhs 
)

sort according to highest key version

Definition at line 43 of file SGObjectWithVersion.h.

44  {
45  return (lhs.versionedKey < rhs.versionedKey);
46 }
SG::ObjectWithVersion::versionedKey
SG::VersionedKey versionedKey
Definition: SGObjectWithVersion.h:37