2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5 * @file StoreGate/VarHandleBase.icc
6 * @author scott snyder <snyder@bnl.gov>
8 * @brief Property holding a SG store/key/clid from which a WriteHandle is made.
16 * @brief Retrieve an object from StoreGate.
17 * @param quiet If true, suppress failure messages.
19 * Inline method: first check cached pointer, then call the _impl method.
22 void* VarHandleBase::typeless_dataPointer(bool quiet/*=defaultQuiet*/)
24 if (m_ptr) { return m_ptr; }
25 return typeless_dataPointer_impl(quiet);
30 * @brief Retrieve an object from StoreGate as a const pointer.
32 * Same as typeless_dataPointer with the return value converted to const.
35 const void* VarHandleBase::typeless_cptr()
37 return typeless_dataPointer();
42 * @brief Return the class ID for the referenced object.
45 CLID VarHandleBase::clid() const
52 * @brief Return handle to the referenced store.
55 const ServiceHandle<IProxyDict>& VarHandleBase::storeHandle() const
57 return m_key->storeHandle();
62 * @brief Return the mode (read/write/update) for this handle.
65 Gaudi::DataHandle::Mode VarHandleBase::mode() const
72 * @brief Return the key string of the underlying @c DataObjID.
74 * Compared to @c key(), this will be prefixed with the store name.
77 const std::string& VarHandleBase::objKey() const
79 return m_key->objKey();
84 * @brief Return the key as a @c DataObjID.
87 const DataObjID& VarHandleBase::fullKey() const
89 return m_key->fullKey();