29 : _expire_listener(expire_listener), _list(this)
39 _expire_listener.eventBundleExpired(b);
42 _priority_index.erase(b);
43 _bundle_lengths.erase(b);
44 _removal_set.erase(b);
50 return (it != _list.end());
55 _list.expire(timestamp);
65 if (_removal_set.find(bundle) != _removal_set.end())
continue;
67 if (filter.contains(bundle.
toString()))
78 std::set<dtn::data::EID> ret;
85 if (_removal_set.find(bundle) != _removal_set.end())
continue;
96 _bundle_lengths[meta] = space;
102 _priority_index.insert(meta);
107 _bundle_lengths.erase(meta);
108 _removal_set.erase(meta);
112 _priority_index.erase(mcopy);
118 _removal_set.insert(meta);
124 return (_removal_set.find(meta) != _removal_set.end());
129 if ( _priority_index.empty() )
139 return _priority_index.size() - _removal_set.size();
144 _priority_index.clear();
146 _bundle_lengths.clear();
147 _removal_set.clear();
152 size_map::const_iterator it = _bundle_lengths.find(meta);
153 if (it == _bundle_lengths.end())