#include <path_history.hpp>
Classes | |
| struct | Parameters |
Public Member Functions | |
| PathHistory (const Parameters ¶ms) | |
| void | addSample (const PathPoint &) |
| void | clear () |
| const PathPoint & | getReferencePoint () const |
| const std::list< PathPoint > & | getConcisePoints () const |
| boost::iterator_range< std::list< PathPoint >::const_iterator > | getConcisePointsMinLength (units::Length distance) const |
| boost::iterator_range< std::list< PathPoint >::const_iterator > | getConcisePointsMinLength (units::Length distance, std::size_t max_points) const |
| As above but capped at max_points. | |
| boost::iterator_range< std::list< PathPoint >::const_iterator > | getConcisePointsMaxLength (units::Length distance) const |
| boost::iterator_range< std::list< PathPoint >::const_iterator > | getConcisePointsMaxLength (units::Length distance, std::size_t max_points) const |
| As above but capped at max_points. | |
Private Member Functions | |
| void | updateConcisePoints () |
| void | truncateConcisePoints () |
| const PathPoint & | starting () const |
| const PathPoint & | previous () const |
| const PathPoint & | next () const |
Private Attributes | |
| Parameters | m_params |
| boost::circular_buffer< PathPoint > | m_samples |
| std::list< PathPoint > | m_concise |
Implementation of Path History Reference Design (Method One)
Definition at line 24 of file path_history.hpp.
| vanetza::facilities::PathHistory::PathHistory | ( | ) |
Definition at line 14 of file path_history.cpp.
|
explicit |
Definition at line 18 of file path_history.cpp.
| void vanetza::facilities::PathHistory::addSample | ( | const PathPoint & | point | ) |
Consider one further path point for inclusion into path history
| a | path point, expected to be newer than any previously given point |
Definition at line 41 of file path_history.cpp.
| void vanetza::facilities::PathHistory::clear | ( | ) |
Drop all samples and concise points, e.g. on pseudonym (AT) change
Definition at line 52 of file path_history.cpp.
|
inline |
Get concise list of path points
Definition at line 61 of file path_history.hpp.
| boost::iterator_range< std::list< PathPoint >::const_iterator > vanetza::facilities::PathHistory::getConcisePointsMaxLength | ( | units::Length | distance | ) | const |
Newest concise points covering at most a distance (crossing point excluded)
| distance | maximum distance to cover |
Definition at line 136 of file path_history.cpp.
| boost::iterator_range< std::list< PathPoint >::const_iterator > vanetza::facilities::PathHistory::getConcisePointsMaxLength | ( | units::Length | distance, |
| std::size_t | max_points ) const |
As above but capped at max_points.
Definition at line 142 of file path_history.cpp.
| boost::iterator_range< std::list< PathPoint >::const_iterator > vanetza::facilities::PathHistory::getConcisePointsMinLength | ( | units::Length | distance | ) | const |
Newest concise points covering at least a distance (crossing point included)
| distance | minimum distance to cover |
Definition at line 110 of file path_history.cpp.
| boost::iterator_range< std::list< PathPoint >::const_iterator > vanetza::facilities::PathHistory::getConcisePointsMinLength | ( | units::Length | distance, |
| std::size_t | max_points ) const |
As above but capped at max_points.
Definition at line 116 of file path_history.cpp.
| const PathPoint & vanetza::facilities::PathHistory::getReferencePoint | ( | ) | const |
Get current reference point, i.e. last provided path point
Definition at line 58 of file path_history.cpp.
|
private |
Definition at line 35 of file path_history.cpp.
|
private |
Definition at line 29 of file path_history.cpp.
|
private |
Definition at line 23 of file path_history.cpp.
|
private |
Definition at line 93 of file path_history.cpp.
|
private |
Definition at line 69 of file path_history.cpp.
|
private |
Definition at line 96 of file path_history.hpp.
|
private |
Definition at line 94 of file path_history.hpp.
|
private |
Definition at line 95 of file path_history.hpp.