118 boost::select_second_const_range<
119 boost::filtered_range<
120 std::function<bool(
const typename table_type::value_type&)>,
121 const typename table_type::map_range>>;
122 using neighbour_range = entry_range;
124 LocationTable(
const MIB&,
Runtime&);
125 bool has_entry(
const Address&)
const;
133 bool has_neighbours()
const;
134 neighbour_range neighbours()
const;
135 entry_range filter(
const entry_predicate&)
const;
136 void visit(
const entry_visitor&)
const;
137 void drop_expired() { m_table.drop_expired(); }
void update_pdr(std::size_t packet_size, double beta=0.5)
bool update_position_vector(const LongPositionVector &pv)
bool has_position_vector() const
const LongPositionVector & get_position_vector() const
bool is_neighbour() const
bool set_position_vector(const LongPositionVector &pv)
void set_neighbour(bool flag)