2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5 * @file StoreGate/VarHandleKey.icc
6 * @author scott snyder <snyder@bnl.gov>
8 * @brief A property holding a SG store/key/clid from which a VarHandle is made.
16 * @brief Return handle to the referenced store.
19const ServiceHandle<IProxyDict>& VarHandleKey::storeHandle() const
26 * @brief Return the VarHandle that owns this key, if any.
28 * This should only be non-null for keys that are created automatically
29 * by a VarHandle when it is _not_ created from a VarHandleKey.
30 * This should always be null for keys that are created explicitly.
33VarHandleBase* VarHandleKey::owningHandle()
35 return m_owningHandle;
40 * @brief Set the owning handle. Only callable from VarHandleBase.
43void VarHandleKey::setOwningHandle (VarHandleBase* handle)
45 m_owningHandle = handle;
50 * @brief Does this key reference the primary event store?
53bool VarHandleKey::isEventStore() const
55 return m_isEventStore;
60 * @brief Called by the owning algorithm during the START transition.
62 * AthAlgorithm and friends will call this during START. This allows
63 * for extra initialization that we can't do during initialize(), such
64 * as retrieving a conditions container from the store.
66 * The default implementation is a no-op.
69StatusCode VarHandleKey::start()
71 return StatusCode::SUCCESS;
75 * @brief Return the hashed StoreGate key.
77 * May be 0 if not yet initialized.
80SG::sgkey_t VarHandleKey::hashedKey() const
87 * @brief Return the StoreGate ID for the referenced object.
89inline const std::string& VarHandleKey::key() const
96 * @brief Test if the key is blank.
98inline bool VarHandleKey::empty() const
100 return m_sgKey.empty();