22 #ifndef METASTORAGE_H_
23 #define METASTORAGE_H_
52 typedef std::set<dtn::data::MetaBundle, CMP_BUNDLE_PRIORITY>
priority_set;
60 typedef std::map<dtn::data::BundleID, dtn::data::Length> size_map;
61 size_map _bundle_lengths;
63 typedef std::set<dtn::data::BundleID> id_set;
79 bool empty() throw ();
80 size_t size() throw ();
82 bool contains(const dtn::data::BundleID &
id) const throw ();
89 if (it == _list.
end())
90 throw NoBundleFoundException();
99 void store(const dtn::data::MetaBundle &meta, const dtn::data::
Length &space) throw ();
105 dtn::data::
Length remove(const dtn::data::MetaBundle &meta) throw ();
111 void markRemoved(const dtn::data::MetaBundle &meta) throw ();
116 bool isRemoved(const dtn::data::MetaBundle &meta) const throw ();
121 void clear() throw ();