26 #ifndef NFD_DAEMON_TABLE_CS_POLICY_LRU_HPP
27 #define NFD_DAEMON_TABLE_CS_POLICY_LRU_HPP
31 #include <boost/multi_index_container.hpp>
32 #include <boost/multi_index/sequenced_index.hpp>
33 #include <boost/multi_index/ordered_index.hpp>
38 using Queue = boost::multi_index_container<
40 boost::multi_index::indexed_by<
41 boost::multi_index::sequenced<>,
42 boost::multi_index::ordered_unique<boost::multi_index::identity<Policy::EntryRef>>
74 insertToQueue(
EntryRef i,
bool isNewEntry);
Represents a CS replacement policy.
Table::const_iterator EntryRef
A reference to a CS entry.
Least-Recently-Used (LRU) replacement policy.
static constexpr std::string_view POLICY_NAME
boost::multi_index_container< Policy::EntryRef, boost::multi_index::indexed_by< boost::multi_index::sequenced<>, boost::multi_index::ordered_unique< boost::multi_index::identity< Policy::EntryRef > > > > Queue