22 #ifndef METASTORAGE_H_
23 #define METASTORAGE_H_
52 typedef std::set<dtn::data::MetaBundle, CMP_BUNDLE_PRIORITY>
priority_set;
62 typedef std::map<dtn::data::BundleID, dtn::data::Length> size_map;
63 size_map _bundle_lengths;
65 typedef std::set<dtn::data::BundleID> id_set;
81 bool empty() throw ();
82 size_t size() throw ();
84 bool has(const dtn::data::MetaBundle &m) const throw ();
91 if (it == _list.
end())
92 throw NoBundleFoundException();
101 void store(const dtn::data::MetaBundle &meta, const dtn::data::
Length &space) throw ();
103 void remove(const dtn::data::MetaBundle &meta) throw ();
109 void markRemoved(const dtn::data::MetaBundle &meta) throw ();
114 bool isRemoved(const dtn::data::MetaBundle &meta) const throw ();
119 void clear() throw ();