Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ogdf::gdf::Parser Class Reference

#include <ogdf/fileformats/GdfParser.h>

Public Member Functions

 Parser (std::istream &is)
 
bool read (Graph &G)
 
bool read (Graph &G, GraphAttributes &GA)
 

Private Member Functions

bool readAttributes (GraphAttributes &GA, edge e, const std::vector< std::string > &values)
 
bool readAttributes (GraphAttributes &GA, node v, const std::vector< std::string > &values)
 
bool readEdgeDef (const std::string &str)
 
bool readEdgeStmt (Graph &G, GraphAttributes *GA, const std::string &str, size_t line)
 
bool readGraph (Graph &G, GraphAttributes *GA)
 
bool readNodeDef (const std::string &str)
 
bool readNodeStmt (Graph &G, GraphAttributes *GA, const std::string &str, size_t line)
 

Private Attributes

std::vector< EdgeAttributem_edgeAttrs
 
std::istream & m_istream
 
std::vector< NodeAttributem_nodeAttrs
 
HashArray< std::string, nodem_nodeId
 

Detailed Description

Definition at line 49 of file GdfParser.h.

Constructor & Destructor Documentation

◆ Parser()

ogdf::gdf::Parser::Parser ( std::istream &  is)
explicit

Member Function Documentation

◆ read() [1/2]

bool ogdf::gdf::Parser::read ( Graph G)
inline

Definition at line 70 of file GdfParser.h.

◆ read() [2/2]

bool ogdf::gdf::Parser::read ( Graph G,
GraphAttributes GA 
)
inline

Definition at line 72 of file GdfParser.h.

◆ readAttributes() [1/2]

bool ogdf::gdf::Parser::readAttributes ( GraphAttributes GA,
edge  e,
const std::vector< std::string > &  values 
)
private

◆ readAttributes() [2/2]

bool ogdf::gdf::Parser::readAttributes ( GraphAttributes GA,
node  v,
const std::vector< std::string > &  values 
)
private

◆ readEdgeDef()

bool ogdf::gdf::Parser::readEdgeDef ( const std::string &  str)
private

◆ readEdgeStmt()

bool ogdf::gdf::Parser::readEdgeStmt ( Graph G,
GraphAttributes GA,
const std::string &  str,
size_t  line 
)
private

◆ readGraph()

bool ogdf::gdf::Parser::readGraph ( Graph G,
GraphAttributes GA 
)
private

◆ readNodeDef()

bool ogdf::gdf::Parser::readNodeDef ( const std::string &  str)
private

◆ readNodeStmt()

bool ogdf::gdf::Parser::readNodeStmt ( Graph G,
GraphAttributes GA,
const std::string &  str,
size_t  line 
)
private

Member Data Documentation

◆ m_edgeAttrs

std::vector<EdgeAttribute> ogdf::gdf::Parser::m_edgeAttrs
private

Definition at line 54 of file GdfParser.h.

◆ m_istream

std::istream& ogdf::gdf::Parser::m_istream
private

Definition at line 51 of file GdfParser.h.

◆ m_nodeAttrs

std::vector<NodeAttribute> ogdf::gdf::Parser::m_nodeAttrs
private

Definition at line 53 of file GdfParser.h.

◆ m_nodeId

HashArray<std::string, node> ogdf::gdf::Parser::m_nodeId
private

Definition at line 52 of file GdfParser.h.


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