Mercurial > hg > orthanc
diff Core/Cache/MemoryCache.h @ 285:4031f73fe0e4
access to the raw dicom tags
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 12 Dec 2012 17:53:14 +0100 |
parents | 06aa7b7b6723 |
children | bdd72233b105 |
line wrap: on
line diff
--- a/Core/Cache/MemoryCache.h Wed Dec 12 15:40:18 2012 +0100 +++ b/Core/Cache/MemoryCache.h Wed Dec 12 17:53:14 2012 +0100 @@ -57,40 +57,11 @@ Page& Load(const std::string& id); public: - class Accessor - { - friend class MemoryCache; - - private: - Page& element_; - - Accessor(Page& element) : - element_(element) - { - } - - public: - const std::string GetId() const - { - return element_.id_; - } - - IDynamicObject& GetContent() - { - return *element_.content_; - } - - const IDynamicObject& GetContent() const - { - return *element_.content_; - } - }; - MemoryCache(ICachePageProvider& provider, size_t cacheSize); ~MemoryCache(); - Accessor* Access(const std::string& id); + IDynamicObject& Access(const std::string& id); }; }