40   BOOST_ASSERT(m_cleanupIndex.size() <= 
size());
    42   m_cleanupIndex.insert(ptr);
    48   if (!m_cleanupIndex.get<byUsedTime>().empty()) {
    49     CleanupIndex::index<byUsedTime>::type::iterator it = m_cleanupIndex.get<byUsedTime>().
begin();
    51     m_cleanupIndex.get<byUsedTime>().
erase(it);
    61   CleanupIndex::index<byEntity>::type::iterator it = m_cleanupIndex.get<byEntity>().
find(entry);
    62   if (it != m_cleanupIndex.get<byEntity>().end())
    63     m_cleanupIndex.get<byEntity>().erase(it);
 
void erase(const Name &prefix, const bool isPrefix=true)
Deletes in-memory storage entry by prefix by default. 
void afterInsert(InMemoryStorageEntry *entry) override
Update the entry after a entry is successfully inserted, add it to the cleanupIndex. 
Represents in-memory storage. 
bool evictItem() override
Removes one Data packet from in-memory storage based on LRU, i.e. 
void afterAccess(InMemoryStorageEntry *entry) override
Update the entry when the entry is returned by the find() function, update the last used time accordi...
void beforeErase(InMemoryStorageEntry *entry) override
Update the entry or other data structures before a entry is successfully erased, erase it from the cl...
InMemoryStorageLru(size_t limit=16)
shared_ptr< const Data > find(const Interest &interest)
Finds the best match Data for an Interest. 
Represents an in-memory storage entry. 
InMemoryStorage::const_iterator begin() const
Returns begin iterator of the in-memory storage ordering by name with digest. 
void eraseImpl(const Name &name)
deletes in-memory storage entries by the Name with implicit digest.