|
ATLAS Offline Software
|
Go to the documentation of this file.
28 std::cout <<
"proxies\n"; std::abort();
34 return m_stringPool.keyToString (
key);
42 std::cout <<
"registerKey\n"; std::abort();
47 const std::string&
key,
52 const void* raw_ptr =
obj.get();
54 raw_ptr = bucket->object();
99 static const std::string
nm =
"TestStore";
107 return proxy (lock, pTransient);
114 tmap_t::const_iterator
i =
m_tmap.find (pTransient);
135 m_missedProxies.emplace_back (
id,
key);
153 return m_stringPool.stringToKey (
str, clid);
160 return m_stringPool.keyToString (
key, clid);
165 sgkey_t& sgkey_out,
size_t& index_out)
169 if (
i ==
m_remap.end())
return false;
170 sgkey_out =
i->second.key;
171 index_out =
i->second.index;
182 return StatusCode::SUCCESS;
204 CLID clid,
const std::string&
key)
210 if (
dp->clID() == CLID_NULL)
211 dp->setID (clid,
key);
228 size_t index_in,
size_t index_out)
237 const std::string& newKey)
255 auto store = std::make_unique<TestStore>();
JetConstituentVector::iterator iterator
virtual void boundHandle(IResetable *handle) override
SG::DataProxy * record1(lock_t &, const void *p, DataObject *obj, CLID clid, const std::string &key)
sgkey_t sgkey() const
< Get the primary (hashed) SG key.
std::string find(const std::string &s)
return a remapped string
A non-templated base class for DataBucket, allows to access the transient object address as a void*.
std::lock_guard< mutex_t > lock_t
static IProxyDict * setStore(IProxyDict *store)
Set the current store.
virtual SG::DataProxy * proxy_exact(SG::sgkey_t sgkey) const override
virtual bool tryELRemap(sgkey_t sgkey_in, size_t index_in, sgkey_t &sgkey_out, size_t &index_out) override
virtual sgkey_t stringToKey(const std::string &str, CLID clid) override
void remap(sgkey_t sgkey_in, sgkey_t sgkey_out, size_t index_in=0, size_t index_out=0)
void setStore(IProxyDict *store)
Set the store of which we're a part.
virtual StatusCode addToStore(CLID, SG::DataProxy *proxy) override
virtual SG::DataProxy * proxy(const void *const pTransient) const override
a resetable object (e.g. a SG DataHandle)
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< IResetable * > m_boundHandles
virtual std::vector< const SG::DataProxy * > proxies() const override
virtual const std::string & name() const override
virtual void unboundHandle(IResetable *handle) override
uint32_t CLID
The Class ID type.
CLID clID() const
Retrieve clid.
Dummy event store, for regression tests.
void initTestStore ATLAS_NOT_THREAD_SAFE()
virtual const std::string * keyToString(sgkey_t) const override
virtual unsigned long addRef() override final
Add reference to object.
virtual void registerKey(sgkey_t, const std::string &, CLID) override
uint32_t sgkey_t
Type used for hashed StoreGate key+CLID pairs.
virtual const name_type & name() const override final
Retrieve data object key == string.
void setAlias(const std::string &key)
Add a new proxy alias.
void setTransientID(CLID id)
Add a new transient ID.
void setConst()
Mark this object as const.
std::unique_ptr< TestStore > getTestStore()
virtual SG::DataProxy * recordObject(SG::DataObjectSharedPtr< DataObject > obj, const std::string &key, bool allowMods, bool returnExisting) override
Smart pointer to manage DataObject reference counts.
void alias(SG::DataProxy *proxy, const std::string &newKey)