#include <location_table.hpp>
Public Types | |
| using | table_type = SoftStateMap<MacAddress, LocationTableEntry, LocationTableEntryCreator> |
| using | entry_visitor = std::function<void(const MacAddress&, const LocationTableEntry&)> |
| using | entry_predicate = std::function<bool(const MacAddress&, const LocationTableEntry&)> |
| using | entry_range |
| using | neighbour_range = entry_range |
Public Member Functions | |
| LocationTable (const MIB &, Runtime &) | |
| bool | has_entry (const Address &) const |
| LocationTableEntry & | update (const LongPositionVector &) |
| LocationTableEntry & | get_or_create_entry (const Address &) |
| LocationTableEntry & | get_or_create_entry (const MacAddress &) |
| const LocationTableEntry * | get_entry (const Address &) const |
| const LocationTableEntry * | get_entry (const MacAddress &) const |
| const LongPositionVector * | get_position (const Address &) const |
| const LongPositionVector * | get_position (const MacAddress &) const |
| bool | has_neighbours () const |
| neighbour_range | neighbours () const |
| entry_range | filter (const entry_predicate &) const |
| void | visit (const entry_visitor &) const |
| void | drop_expired () |
Private Attributes | |
| table_type | m_table |
GeoNetworking LocationTable See section 7.1 of EN 302 636-4-1 for details.
Definition at line 111 of file location_table.hpp.
| using vanetza::geonet::LocationTable::entry_predicate = std::function<bool(const MacAddress&, const LocationTableEntry&)> |
Definition at line 116 of file location_table.hpp.
| using vanetza::geonet::LocationTable::entry_range |
Definition at line 117 of file location_table.hpp.
| using vanetza::geonet::LocationTable::entry_visitor = std::function<void(const MacAddress&, const LocationTableEntry&)> |
Definition at line 115 of file location_table.hpp.
| using vanetza::geonet::LocationTable::neighbour_range = entry_range |
Definition at line 122 of file location_table.hpp.
| using vanetza::geonet::LocationTable::table_type = SoftStateMap<MacAddress, LocationTableEntry, LocationTableEntryCreator> |
Definition at line 114 of file location_table.hpp.
Definition at line 95 of file location_table.cpp.
|
inline |
Definition at line 137 of file location_table.hpp.
| auto vanetza::geonet::LocationTable::filter | ( | const entry_predicate & | predicate | ) | const |
Definition at line 127 of file location_table.cpp.
| const LocationTableEntry * vanetza::geonet::LocationTable::get_entry | ( | const Address & | addr | ) | const |
Definition at line 168 of file location_table.cpp.
| const LocationTableEntry * vanetza::geonet::LocationTable::get_entry | ( | const MacAddress & | mac | ) | const |
Definition at line 173 of file location_table.cpp.
| LocationTableEntry & vanetza::geonet::LocationTable::get_or_create_entry | ( | const Address & | addr | ) |
Definition at line 158 of file location_table.cpp.
| LocationTableEntry & vanetza::geonet::LocationTable::get_or_create_entry | ( | const MacAddress & | mac | ) |
Definition at line 163 of file location_table.cpp.
| const LongPositionVector * vanetza::geonet::LocationTable::get_position | ( | const Address & | addr | ) | const |
Definition at line 178 of file location_table.cpp.
| const LongPositionVector * vanetza::geonet::LocationTable::get_position | ( | const MacAddress & | mac | ) | const |
Definition at line 183 of file location_table.cpp.
| bool vanetza::geonet::LocationTable::has_entry | ( | const Address & | addr | ) | const |
Definition at line 101 of file location_table.cpp.
| bool vanetza::geonet::LocationTable::has_neighbours | ( | ) | const |
Definition at line 106 of file location_table.cpp.
| auto vanetza::geonet::LocationTable::neighbours | ( | ) | const |
Definition at line 118 of file location_table.cpp.
| LocationTableEntry & vanetza::geonet::LocationTable::update | ( | const LongPositionVector & | lpv | ) |
Definition at line 144 of file location_table.cpp.
| void vanetza::geonet::LocationTable::visit | ( | const entry_visitor & | visitor | ) | const |
Definition at line 137 of file location_table.cpp.
|
private |
Definition at line 140 of file location_table.hpp.