196 const bool ¶mStrict,
198 std::string *idString,
267 const std::string &lhsString,
268 const std::string &rhsString);
285 const Type ¶mType,
311 std::string *idString,
323 const std::string
id;
327 const std::string &idString,
339 enum class Type { n, ne, e, se, s, sw, w, nw, c, wildcard };
343 const Type ¶mType);
352 std::string *idString,
410 explicit Parser(std::istream &in);
432 const std::string &
id);
452 std::vector<Ast::AttrList *> &nodeDefaultsVector,
453 std::vector<Ast::AttrList *> &edgeDefaultsVector,
454 std::set<node> &nodeSet);
463 std::vector<Ast::AttrList *> &newNodeDefaults,
464 std::vector<Ast::AttrList *> &newEdgeDefaults)
const;
467 std::set<node> &newNodes)
const;
Stmt * parseStmt(Iterator current, Iterator &rest)
EdgeElement * edge
The type of edges.
Declaration and implementation of HashArray class.
Declaration of class GraphAttributes which extends a Graph by additional attributes.
Derived class of GraphObserver providing additional functionality to handle clustered graphs...
Data type for general directed graphs (adjacency list representation).
std::vector< Ast::AttrList * > & nodeDefaults
DOT related enums and string conversion functions.
Tokens::const_iterator Iterator
Indexed arrays using hashing for element access.
AttrList * parseAttrList(Iterator current, Iterator &rest)
Graph * parseGraph(Iterator current, Iterator &rest)
DOT format abstract syntax tree class, based on official documentation.
Graph * root() const
Returns the root of the AST (nullptr if none).
std::vector< Ast::AttrList * > & edgeDefaults
Subgraph * parseSubgraph(Iterator current, Iterator &rest)
StmtList * parseStmtList(Iterator current, Iterator &rest)
Representation of clustered graphs.
AList * parseAList(Iterator current, Iterator &rest)
HashArray< std::string, node > m_nodeId
NodeStmt * parseNodeStmt(Iterator current, Iterator &rest)
Stores additional attributes of a graph (like layout information).
CompassPt * parseCompassPt(Iterator current, Iterator &rest)
Stores additional attributes of a clustered graph (like layout information).
Declares stuff related to DOT format lexical analysis.
Class for the representation of nodes.
Declares ClusterGraphAttributes, an extension of class GraphAttributes, to store clustergraph layout ...
Representation of clusters in a clustered graph.
Includes declaration of graph class.
bool build()
Builds the DOT format AST.
Port * parsePort(Iterator current, Iterator &rest)
bool read(Parser &P, ogdf::Graph &G, GraphAttributes *GA, ClusterGraph *C, ClusterGraphAttributes *CA)
NodeId * parseNodeId(Iterator current, Iterator &rest)
Ast(const Tokens &tokens)
Initializes AST building but does not trigger the process itself.
std::vector< Token > Tokens
The namespace for all OGDF objects.
A helper structure containing information for recursive graph reading.
EdgeStmt * parseEdgeStmt(Iterator current, Iterator &rest)
Graph(const bool ¶mStrict, const bool &dir, std::string *idString, StmtList *statementList)
AsgnStmt * parseAsgnStmt(Iterator current, Iterator &rest)
AttrStmt * parseAttrStmt(Iterator current, Iterator &rest)
EdgeRhs * parseEdgeRhs(Iterator current, Iterator &rest)