Project
Loading...
Searching...
No Matches
o2::framework::ObjectCache Struct Reference

#include <ObjectCache.h>

Classes

struct  Id
 

Public Attributes

std::unordered_map< std::string, IdmatcherToId
 
std::unordered_map< Id, void *, Id::hash_fnidToObject
 
std::unordered_map< std::string, IdmatcherToMetadataId
 
std::unordered_map< Id, std::map< std::string, std::string >, Id::hash_fnidToMetadata
 

Detailed Description

A cache for CCDB objects or objects in general which have more than one timeframe of lifetime.

Definition at line 23 of file ObjectCache.h.

Member Data Documentation

◆ idToMetadata

std::unordered_map<Id, std::map<std::string, std::string>, Id::hash_fn> o2::framework::ObjectCache::idToMetadata

Definition at line 55 of file ObjectCache.h.

◆ idToObject

std::unordered_map<Id, void*, Id::hash_fn> o2::framework::ObjectCache::idToObject

A map from a CacheId (which is the void* ptr of the previous map). to an actual (type erased) pointer to the deserialised object.

Definition at line 49 of file ObjectCache.h.

◆ matcherToId

std::unordered_map<std::string, Id> o2::framework::ObjectCache::matcherToId

A cache for deserialised objects. This keeps a mapping so that we can tell if a given path was already received and it's blob stored in .second.

Definition at line 46 of file ObjectCache.h.

◆ matcherToMetadataId

std::unordered_map<std::string, Id> o2::framework::ObjectCache::matcherToMetadataId

A cache to the deserialised metadata We keep it separate because we want to avoid that looking up the metadata also pollutes the object cache.

Definition at line 54 of file ObjectCache.h.


The documentation for this struct was generated from the following file: