Go to the documentation of this file.
11 #ifndef DOTPARSER_DRIVER_HH
12 #define DOTPARSER_DRIVER_HH
15 #include "generated/dot.tab.hh"
43 std::logic_error
makeError(
const yy::location& l,
const std::string& m)
const;
74 friend yy::parser::symbol_type
yylex(
75 DotParserDriver& d, DOTScannerWrapper& scanner, yy::parser::symbol_type& context);
void appendGraphAttributes(ConfigStore attrs)
ConfigGraph::EdgeID addEdge(std::string src_vname, std::string target_vname, ConfigStore custom_attrs={})
const std::string & getFileName() const &
std::logic_error makeError(const yy::location &l, const std::string &m) const
friend yy::parser::symbol_type yylex(DotParserDriver &d, DOTScannerWrapper &scanner, yy::parser::symbol_type &context)
ConfigStore default_node_attributes
ConfigStore default_edge_attributes
DotParserDriver(std::istream &input, std::string file_name_)
ConfigStore & add_all(ConfigStore &into, const ConfigStore &from)
Add (or set) all keys from from in into.
void appendDefaultNodeAttributes(ConfigStore new_attrs)
ConfigGraph::VertexID addOrCreateNode(std::string name, ConfigStore custom_attrs={})
void setGraphAttributes(ConfigStore &&attrs)
std::pair< VertexID, bool > insert(std::string name, ConfigStore vertex_attrs={})
EdgeID link(VertexID source, VertexID target, ConfigStore edge_attrs={})
ConfigStore & set_all(ConfigStore &into, const ConfigStore &from)
void setGraphName(std::string name)
void appendDefaultEdgeAttributes(ConfigStore new_attrs)
ConfigGraph getGraph() &&
void setGraphName(const std::string &s)