ATLAS Offline Software
Loading...
Searching...
No Matches
StorableConversions.h File Reference

convert to and from a SG storable More...

#include "AthenaKernel/DataBucket.h"
#include "AthenaKernel/DataBucketTraitFwd.h"
#include "AthenaKernel/ClassID_traits.h"
#include "GaudiKernel/DataObject.h"
#include <memory>
#include <type_traits>
#include <typeinfo>
Include dependency graph for StorableConversions.h:

Go to the source code of this file.

Classes

struct  SG::DataBucketTrait< T, U >
 Metafunction to find the proper DataBucket class for T. More...

Namespaces

namespace  SG
 Forward declaration.

Functions

template<typename T>
DataObject * SG::asStorable (T *pObject)
template<typename T>
bool SG::fromStorable (DataObject *pDObj, T *&pTrans, bool quiet=false, IRegisterTransient *irt=0, bool isConst=true)
template<typename T>
T * SG::Storable_cast (DataObject *pDObj, bool quiet=true, IRegisterTransient *irt=0, bool isConst=true)
void * SG::fromStorable (DataObject *pDObj, CLID clid, const std::type_info *tinfo=nullptr, bool quiet=false, IRegisterTransient *irt=0, bool isConst=true)
 Try to get the pointer back from a DataObject, converted to be of type clid.
void * SG::Storable_cast (DataObject *pDObj, CLID clid, const std::type_info *tinfo=nullptr, bool quiet=false, IRegisterTransient *irt=0, bool isConst=true)
 Try to get the pointer back from a DataObject, converted to be of type clid.
template<typename T>
DataObject * SG::asStorable (std::unique_ptr< T > pObject)

Detailed Description

convert to and from a SG storable

Author
ATLAS Collaboration

Definition in file StorableConversions.h.