A set of elements ordered by its position on the road. More...
#include <RoadElementSet.h>
Classes | |
struct | LessComp |
Public Types | |
using | key_type = double |
using | mapped_type = T |
Public Member Functions | |
auto | begin () const |
bool | empty () const |
auto | end () const |
const std::vector< mapped_type > & | GetAll () const |
Return all values from the set. More... | |
auto | GetReverseSubset (const key_type k) const |
Return a reversed list of elements that have key value GetDistance() <= s. More... | |
auto | GetReverseSubsetInRange (const key_type min_k, const key_type max_k) const |
auto | GetSubsetInRange (const key_type min_k, const key_type max_k) const |
Return a list of elements that have a key value in the range [min_k, max_k]. More... | |
RoadElementSet ()=default | |
template<typename InputTypeT > | |
RoadElementSet (std::vector< InputTypeT > &&range) | |
Explicit move constructor. More... | |
size_t | size () const |
Static Private Member Functions | |
static key_type | GetDistance (const key_type key) |
template<typename ValueT > | |
static key_type | GetDistance (const ValueT &value) |
template<typename ValueT > | |
static key_type | GetDistance (const ValueT *value) |
template<typename ValueT > | |
static key_type | GetDistance (const std::unique_ptr< ValueT > &value) |
Private Attributes | |
std::vector< mapped_type > | _vec |
Additional Inherited Members | |
Private Member Functions inherited from carla::MovableNonCopyable | |
MovableNonCopyable ()=default | |
MovableNonCopyable (const MovableNonCopyable &)=delete | |
MovableNonCopyable (MovableNonCopyable &&)=default | |
MovableNonCopyable & | operator= (const MovableNonCopyable &)=delete |
MovableNonCopyable & | operator= (MovableNonCopyable &&)=default |
A set of elements ordered by its position on the road.
Definition at line 23 of file RoadElementSet.h.
using carla::road::RoadElementSet< T >::key_type = double |
Definition at line 28 of file RoadElementSet.h.
using carla::road::RoadElementSet< T >::mapped_type = T |
Definition at line 26 of file RoadElementSet.h.
|
default |
|
inline |
Explicit move constructor.
Definition at line 34 of file RoadElementSet.h.
|
inline |
Definition at line 77 of file RoadElementSet.h.
|
inline |
Definition at line 69 of file RoadElementSet.h.
|
inline |
Definition at line 81 of file RoadElementSet.h.
|
inline |
Return all values from the set.
Definition at line 44 of file RoadElementSet.h.
|
inlinestaticprivate |
Definition at line 87 of file RoadElementSet.h.
Referenced by carla::road::RoadElementSet< T >::LessComp::operator()().
|
inlinestaticprivate |
Definition at line 92 of file RoadElementSet.h.
|
inlinestaticprivate |
Definition at line 97 of file RoadElementSet.h.
|
inlinestaticprivate |
Definition at line 102 of file RoadElementSet.h.
|
inline |
Return a reversed list of elements that have key value GetDistance() <= s.
Definition at line 50 of file RoadElementSet.h.
|
inline |
Definition at line 63 of file RoadElementSet.h.
|
inline |
Return a list of elements that have a key value in the range [min_k, max_k].
Definition at line 57 of file RoadElementSet.h.
|
inline |
Definition at line 73 of file RoadElementSet.h.
|
private |
Definition at line 116 of file RoadElementSet.h.
Referenced by carla::road::RoadElementSet< std::unique_ptr< carla::road::element::RoadInfo > >::begin(), carla::road::RoadElementSet< std::unique_ptr< carla::road::element::RoadInfo > >::empty(), carla::road::RoadElementSet< std::unique_ptr< carla::road::element::RoadInfo > >::end(), carla::road::RoadElementSet< std::unique_ptr< carla::road::element::RoadInfo > >::GetAll(), carla::road::RoadElementSet< std::unique_ptr< carla::road::element::RoadInfo > >::GetReverseSubset(), carla::road::RoadElementSet< std::unique_ptr< carla::road::element::RoadInfo > >::GetReverseSubsetInRange(), carla::road::RoadElementSet< std::unique_ptr< carla::road::element::RoadInfo > >::GetSubsetInRange(), carla::road::RoadElementSet< std::unique_ptr< carla::road::element::RoadInfo > >::RoadElementSet(), and carla::road::RoadElementSet< std::unique_ptr< carla::road::element::RoadInfo > >::size().