39   BOOST_ASSERT(m_cleanupIndex.size() <= 
size());
 
   40   m_cleanupIndex.insert(entry);
 
   46   if (!m_cleanupIndex.get<byArrival>().empty()) {
 
   47     CleanupIndex::index<byArrival>::type::iterator it = m_cleanupIndex.get<byArrival>().
begin();
 
   49     m_cleanupIndex.get<byArrival>().
erase(it);
 
   59   CleanupIndex::index<byEntity>::type::iterator it = m_cleanupIndex.get<byEntity>().
find(entry);
 
   60   if (it != m_cleanupIndex.get<byEntity>().end())
 
   61     m_cleanupIndex.get<byEntity>().
erase(it);
 
Represents an in-memory storage entry.
 
void beforeErase(InMemoryStorageEntry *entry) override
Update the entry or other data structures before a entry is successfully erased, erase it from the cl...
 
bool evictItem() override
Removes one Data packet from in-memory storage based on FIFO.
 
InMemoryStorageFifo(size_t limit=16)
 
void afterInsert(InMemoryStorageEntry *entry) override
Update the entry after a entry is successfully inserted, add it to the cleanupIndex.
 
Represents in-memory storage.
 
void erase(const Name &prefix, const bool isPrefix=true)
Deletes in-memory storage entry by prefix by default.
 
shared_ptr< const Data > find(const Interest &interest)
Finds the best match Data for an Interest.
 
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.