maliput_object
|
Implements api::ObjectBook for loading objects manually.
#include <include/maliput_object/base/manual_object_book.h>
Public Member Functions | |
ManualObjectBook ()=default | |
virtual | ~ManualObjectBook ()=default |
void | AddObject (std::unique_ptr< api::Object< Coordinate >> object) |
Adds an object to the book. More... | |
void | RemoveObject (const typename api::Object< Coordinate >::Id &object) |
Removes an object from the book. More... | |
Public Member Functions inherited from ObjectBook< Coordinate > | |
virtual | ~ObjectBook ()=default |
std::unordered_map< typename Object< Coordinate >::Id, Object< Coordinate > * > | objects () const |
Gets all the Objects in the book. More... | |
Object< Coordinate > * | FindById (const typename Object< Coordinate >::Id &object_id) const |
Finds Object by Id. More... | |
std::vector< Object< Coordinate > * > | FindByPredicate (std::function< bool(const Object< Coordinate > *)> predicate) const |
Finds the Objects that make predicate true. More... | |
std::vector< Object< Coordinate > * > | FindOverlappingIn (const maliput::math::BoundingRegion< Coordinate > ®ion, const maliput::math::OverlappingType &overlapping_type) const |
Finds the Objects that intersect with a region according to certain overlapping_type . More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ObjectBook< Coordinate > | |
ObjectBook ()=default | |
|
default |
|
virtualdefault |
void AddObject | ( | std::unique_ptr< api::Object< Coordinate >> | object | ) |
Adds an object to the book.
object | The object to be added. |
void RemoveObject | ( | const typename api::Object< Coordinate >::Id & | object | ) |
Removes an object from the book.
object | The object to be removed. |