29 : _list(expire_listener)
39 return (_bundle_lengths.find(
id) != _bundle_lengths.end());
44 _list.expire(timestamp);
54 if (_removal_set.find(bundle) != _removal_set.end())
continue;
56 if (bundle.
isIn(filter))
67 std::set<dtn::data::EID> ret;
74 if (_removal_set.find(bundle) != _removal_set.end())
continue;
85 _bundle_lengths[meta] = space;
91 _priority_index.insert(meta);
97 size_map::iterator it = _bundle_lengths.find(meta);
100 if (it == _bundle_lengths.end())
return 0;
106 _bundle_lengths.erase(it);
109 _removal_set.erase(meta);
115 _priority_index.erase(meta);
123 if (contains(meta)) {
124 _removal_set.insert(meta);
130 return (_removal_set.find(meta) != _removal_set.end());
135 if ( _priority_index.empty() )
145 return _priority_index.size() - _removal_set.size();
150 _priority_index.clear();
152 _bundle_lengths.clear();
153 _removal_set.clear();