maliput_object
MockObjectBook< Coordinate > Class Template Reference

#include <include/maliput_object/test_utilities/mock.h>

Inheritance diagram for MockObjectBook< Coordinate >:
[legend]

Public Member Functions

 MockObjectBook ()=default
 
 MOCK_METHOD ((std::unordered_map< typename api::Object< Coordinate >::Id, api::Object< Coordinate > * >), do_objects,(),(const, override))
 
 MOCK_METHOD ((api::Object< Coordinate > *), DoFindById,(const typename api::Object< Coordinate >::Id &),(const, override))
 
 MOCK_METHOD ((std::vector< api::Object< Coordinate > * >), DoFindByPredicate,(std::function< bool(const api::Object< Coordinate > *)>),(const, override))
 
 MOCK_METHOD ((std::vector< api::Object< Coordinate > * >), DoFindOverlappingIn,(const maliput::math::BoundingRegion< Coordinate > &, const maliput::math::OverlappingType &),(const, override))
 
- 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

◆ MockObjectBook()

MockObjectBook ( )
default

Member Function Documentation

◆ MOCK_METHOD() [1/4]

MOCK_METHOD ( (api::Object< Coordinate > *)  ,
DoFindById  ,
(const typename api::Object< Coordinate >::Id &)  ,
(const, override)   
)

◆ MOCK_METHOD() [2/4]

MOCK_METHOD ( (std::unordered_map< typename api::Object< Coordinate >::Id, api::Object< Coordinate > * >)  ,
do_objects  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [3/4]

MOCK_METHOD ( (std::vector< api::Object< Coordinate > * >)  ,
DoFindByPredicate  ,
(std::function< bool(const api::Object< Coordinate > *)>)  ,
(const, override)   
)

◆ MOCK_METHOD() [4/4]

MOCK_METHOD ( (std::vector< api::Object< Coordinate > * >)  ,
DoFindOverlappingIn  ,
(const maliput::math::BoundingRegion< Coordinate > &, const maliput::math::OverlappingType &)  ,
(const, override)   
)

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