22 #ifndef NEIGHBORDATABASE_H_
23 #define NEIGHBORDATABASE_H_
52 : ibrcommon::
Exception(
"Bloom filter is not available for this node."),
eid(host) { };
167 data_set::const_iterator iter = _datasets.find(item);
169 if (iter == _datasets.end())
throw DatasetNotAvailableException();
172 return dynamic_cast<const T&
>(**iter);
173 }
catch (
const std::bad_cast&) {
174 throw DatasetNotAvailableException();
191 data_set::iterator it = _datasets.find(item);
193 if (it == _datasets.end())
return;
200 std::set<dtn::data::BundleID> _transit_bundles;
208 typedef std::set<NeighborDataset> data_set;
211 enum FILTER_REQUEST_STATE
214 FILTER_AVAILABLE = 1,
234 NeighborDatabase::NeighborEntry&
get(
const dtn::data::EID &eid,
bool noCached =
false)
throw (NeighborNotAvailableException);
257 typedef std::map<dtn::data::EID, NeighborDatabase::NeighborEntry* > neighbor_map;
258 neighbor_map _entries;