flyweight memory manager More...
#include <flyweight.hh>
Public Member Functions | |
std::shared_ptr< const ValueT > | get (const KeyT &key) |
void | insert (const KeyT &key, std::shared_ptr< const ValueT > &value) |
Protected Attributes | |
std::unordered_map< KeyT, std::weak_ptr< const ValueT >, Hash< KeyT > > | container_ |
flyweight memory manager
Definition at line 94 of file flyweight.hh.
Definition at line 96 of file flyweight.hh.
|
inline |
Definition at line 98 of file flyweight.hh.
|
inline |
Definition at line 106 of file flyweight.hh.
|
protected |
TODO: Write extra method for the removable of entries with non-lockable weak_ptrs
Definition at line 117 of file flyweight.hh.