22 #ifndef NDN_IMS_IN_MEMORY_STORAGE_FIFO_HPP 23 #define NDN_IMS_IN_MEMORY_STORAGE_FIFO_HPP 27 #include <boost/multi_index_container.hpp> 28 #include <boost/multi_index/hashed_index.hpp> 29 #include <boost/multi_index/sequenced_index.hpp> 67 typedef boost::multi_index_container<
69 boost::multi_index::indexed_by<
72 boost::multi_index::hashed_unique<
73 boost::multi_index::tag<byEntity>,
74 boost::multi_index::identity<InMemoryStorageEntry*>
78 boost::multi_index::sequenced<
79 boost::multi_index::tag<byArrival>
85 CleanupIndex m_cleanupIndex;
90 #endif // NDN_IMS_IN_MEMORY_STORAGE_FIFO_HPP Copyright (c) 2013-2017 Regents of the University of California.
void beforeErase(InMemoryStorageEntry *entry) override
Update the entry or other data structures before a entry is successfully erased, erase it from the cl...
Provides in-memory storage employing First-In-First-Out (FIFO) replacement policy.
Represents in-memory storage.
bool evictItem() override
Removes one Data packet from in-memory storage based on FIFO.
Represents an in-memory storage entry.
InMemoryStorageFifo(size_t limit=10)
#define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PROTECTED
void afterInsert(InMemoryStorageEntry *entry) override
Update the entry after a entry is successfully inserted, add it to the cleanupIndex.