maliput_object
ManualObjectBook< Coordinate > Class Template Reference

Detailed Description

template<typename Coordinate>
class maliput::object::ManualObjectBook< Coordinate >

Implements api::ObjectBook for loading objects manually.

#include <include/maliput_object/base/manual_object_book.h>

Inheritance diagram for ManualObjectBook< Coordinate >:
[legend]

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 > &region, 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
 

Constructor & Destructor Documentation

◆ ManualObjectBook()

ManualObjectBook ( )
default

◆ ~ManualObjectBook()

virtual ~ManualObjectBook ( )
virtualdefault

Member Function Documentation

◆ AddObject()

void AddObject ( std::unique_ptr< api::Object< Coordinate >>  object)

Adds an object to the book.

Parameters
objectThe object to be added.

◆ RemoveObject()

void RemoveObject ( const typename api::Object< Coordinate >::Id &  object)

Removes an object from the book.

Parameters
objectThe object to be removed.

The documentation for this class was generated from the following files: