maliput_sparse
Parser Class Referenceabstract

Detailed Description

Pure virtual parser API class to be inherited by a specific parser class.

class MyParser : public Parser {
public:
MyParser(const std::string& my_file) : Parser() { // Parse underlying file and fill up junctions and connections.}
private:
const std::unordered_map<Junction::Id, Junction>& DoGetJunctions() const override {
return junctions_;
}
const std::vector<Connection>& DoGetConnections() const override {
return connections_;
}

#include <include/maliput_sparse/parser/parser.h>

Public Member Functions

 Parser ()=default
 
virtual ~Parser ()=default
 
const std::unordered_map< Junction::Id, Junction > & GetJunctions () const
 Gets the segments parsed from the input description. More...
 
const std::vector< Connection > & GetConnections () const
 Gets connections between the map's lanes. More...
 

Constructor & Destructor Documentation

◆ Parser()

Parser ( )
default

◆ ~Parser()

virtual ~Parser ( )
virtualdefault

Member Function Documentation

◆ GetConnections()

const std::vector<Connection>& GetConnections ( ) const

Gets connections between the map's lanes.

◆ GetJunctions()

const std::unordered_map<Junction::Id, Junction>& GetJunctions ( ) const

Gets the segments parsed from the input description.


The documentation for this class was generated from the following file:
maliput_sparse::parser::Parser::Parser
Parser()=default