19 #ifndef POOLTESTS_LRUFILEMANAGER_H
20 #define POOLTESTS_LRUFILEMANAGER_H
61 #endif // POOLTESTS_LRUFILEMANAGER_H
void notifyOpenedFile(FileId id) override
unsigned getAvailable() const
FileMetadata * FileId
Opaque FileId, its concrete type should only be assumed to be copyable and hashable.
LRUFileManager(unsigned limit=500)
std::list< FileId > m_sorted_ids
Sorted from less to more recent.
void notifyIntentToOpen(bool write) override
unsigned getLimit() const
std::map< FileId, std::list< FileId >::iterator > m_current_pos
void notifyClosedFile(FileId id) override
virtual ~LRUFileManager()
void notifyUsed(FileId id) override