A helper structure containing information for recursive graph reading. More...
#include <ogdf/fileformats/DotParser.h>
Public Member Functions | |
SubgraphData (cluster root, std::vector< Ast::AttrList * > &nodeDefaultsVector, std::vector< Ast::AttrList * > &edgeDefaultsVector, std::set< node > &nodeSet) | |
Initializes structure with given data. More... | |
SubgraphData | withCluster (cluster newRootCluster) const |
Returns almost the same structure, but with root cluster. More... | |
SubgraphData | withDefaults (std::vector< Ast::AttrList * > &newNodeDefaults, std::vector< Ast::AttrList * > &newEdgeDefaults) const |
Returns almost the same structure, but with new defaults. More... | |
SubgraphData | withNodes (std::set< node > &newNodes) const |
Returns almost the same structure, but with new node list. More... | |
Public Attributes | |
std::vector< Ast::AttrList * > & | edgeDefaults |
std::vector< Ast::AttrList * > & | nodeDefaults |
std::set< node > & | nodes |
cluster | rootCluster |
A helper structure containing information for recursive graph reading.
Definition at line 360 of file DotParser.h.
ogdf::dot::SubgraphData::SubgraphData | ( | cluster | root, |
std::vector< Ast::AttrList * > & | nodeDefaultsVector, | ||
std::vector< Ast::AttrList * > & | edgeDefaultsVector, | ||
std::set< node > & | nodeSet | ||
) |
Initializes structure with given data.
root | Root cluster of current subgraph. |
nodeDefaultsVector | Node default attributes. |
edgeDefaultsVector | Edge default attributes. |
nodeSet | Nodes in current subgraph. |
SubgraphData ogdf::dot::SubgraphData::withCluster | ( | cluster | newRootCluster | ) | const |
Returns almost the same structure, but with root cluster.
SubgraphData ogdf::dot::SubgraphData::withDefaults | ( | std::vector< Ast::AttrList * > & | newNodeDefaults, |
std::vector< Ast::AttrList * > & | newEdgeDefaults | ||
) | const |
Returns almost the same structure, but with new defaults.
SubgraphData ogdf::dot::SubgraphData::withNodes | ( | std::set< node > & | newNodes | ) | const |
Returns almost the same structure, but with new node list.
std::vector<Ast::AttrList*>& ogdf::dot::SubgraphData::edgeDefaults |
Definition at line 363 of file DotParser.h.
std::vector<Ast::AttrList*>& ogdf::dot::SubgraphData::nodeDefaults |
Definition at line 362 of file DotParser.h.
std::set<node>& ogdf::dot::SubgraphData::nodes |
Definition at line 364 of file DotParser.h.
cluster ogdf::dot::SubgraphData::rootCluster |
Definition at line 361 of file DotParser.h.