2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
7 * @file StoreGate/VarHandleBase.icc
8 * @author scott snyder <snyder@bnl.gov>
10 * @brief Property holding a SG store/key/clid from which a WriteHandle is made.
18 * @brief Retrieve an object from StoreGate.
19 * @param quiet If true, suppress failure messages.
21 * Inline method: first check cached pointer, then call the _impl method.
24 void* VarHandleBase::typeless_dataPointer(bool quiet/*=defaultQuiet*/)
26 if (m_ptr) { return m_ptr; }
27 return typeless_dataPointer_impl(quiet);
32 * @brief Retrieve an object from StoreGate as a const pointer.
34 * Same as typeless_dataPointer with the return value converted to const.
37 const void* VarHandleBase::typeless_cptr()
39 return typeless_dataPointer();
44 * @brief Return the class ID for the referenced object.
47 CLID VarHandleBase::clid() const
54 * @brief Return handle to the referenced store.
57 const ServiceHandle<IProxyDict>& VarHandleBase::storeHandle() const
59 return m_key->storeHandle();
64 * @brief Return the mode (read/write/update) for this handle.
67 Gaudi::DataHandle::Mode VarHandleBase::mode() const
74 * @brief Return the key string of the underlying @c DataObjID.
76 * Compared to @c key(), this will be prefixed with the store name.
79 const std::string& VarHandleBase::objKey() const
81 return m_key->objKey();
86 * @brief Return the key as a @c DataObjID.
89 const DataObjID& VarHandleBase::fullKey() const
91 return m_key->fullKey();