Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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

#include <ogdf/fileformats/TlpParser.h>

Public Member Functions

 Parser (std::istream &is)
 
bool read (Graph &G)
 
bool read (Graph &G, ClusterGraph &C)
 
bool read (Graph &G, ClusterGraph &C, ClusterGraphAttributes &CA)
 
bool read (Graph &G, GraphAttributes &GA)
 

Private Types

using Iterator = std::vector< Token >::const_iterator
 

Private Member Functions

bool applyNodes (Graph &G, ClusterGraph *C, cluster c, const std::string &str)
 
bool readCluster (Graph &G, ClusterGraph *C, cluster c)
 
bool readClusterStatement (Graph &G, ClusterGraph *C, cluster c)
 
bool readEdge (Graph &G)
 
bool readGraph (Graph &G, GraphAttributes *GA, ClusterGraph *C)
 
bool readNodes (Graph &G, ClusterGraph *C, cluster c)
 
bool readProperty (Graph &G, GraphAttributes *GA)
 
bool readPropertyStatement (GraphAttributes *GA, const Attribute &attr, NodeArray< bool > &nodeDone, std::string &nodeDefault, EdgeArray< bool > &edgeDone, std::string &edgeDefault)
 
bool readStatement (Graph &G, GraphAttributes *GA, ClusterGraph *C)
 
void tokenError (const char *str, bool got=true)
 
void tokenError (const std::string &str, bool got=true)
 

Private Attributes

Iterator m_begin
 
Iterator m_end
 
std::map< int, edgem_idEdge
 
std::map< int, nodem_idNode
 
std::istream & m_istream
 

Detailed Description

Definition at line 51 of file TlpParser.h.

Member Typedef Documentation

◆ Iterator

using ogdf::tlp::Parser::Iterator = std::vector<Token>::const_iterator
private

Definition at line 53 of file TlpParser.h.

Constructor & Destructor Documentation

◆ Parser()

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

Member Function Documentation

◆ applyNodes()

bool ogdf::tlp::Parser::applyNodes ( Graph G,
ClusterGraph C,
cluster  c,
const std::string &  str 
)
inlineprivate

◆ read() [1/4]

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

Definition at line 79 of file TlpParser.h.

◆ read() [2/4]

bool ogdf::tlp::Parser::read ( Graph G,
ClusterGraph C 
)
inline

Definition at line 83 of file TlpParser.h.

◆ read() [3/4]

bool ogdf::tlp::Parser::read ( Graph G,
ClusterGraph C,
ClusterGraphAttributes CA 
)
inline

Definition at line 85 of file TlpParser.h.

◆ read() [4/4]

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

Definition at line 81 of file TlpParser.h.

◆ readCluster()

bool ogdf::tlp::Parser::readCluster ( Graph G,
ClusterGraph C,
cluster  c 
)
private

◆ readClusterStatement()

bool ogdf::tlp::Parser::readClusterStatement ( Graph G,
ClusterGraph C,
cluster  c 
)
private

◆ readEdge()

bool ogdf::tlp::Parser::readEdge ( Graph G)
private

◆ readGraph()

bool ogdf::tlp::Parser::readGraph ( Graph G,
GraphAttributes GA,
ClusterGraph C 
)
private

◆ readNodes()

bool ogdf::tlp::Parser::readNodes ( Graph G,
ClusterGraph C,
cluster  c 
)
private

◆ readProperty()

bool ogdf::tlp::Parser::readProperty ( Graph G,
GraphAttributes GA 
)
private

◆ readPropertyStatement()

bool ogdf::tlp::Parser::readPropertyStatement ( GraphAttributes GA,
const Attribute attr,
NodeArray< bool > &  nodeDone,
std::string &  nodeDefault,
EdgeArray< bool > &  edgeDone,
std::string &  edgeDefault 
)
private

◆ readStatement()

bool ogdf::tlp::Parser::readStatement ( Graph G,
GraphAttributes GA,
ClusterGraph C 
)
private

◆ tokenError() [1/2]

void ogdf::tlp::Parser::tokenError ( const char str,
bool  got = true 
)
inlineprivate

◆ tokenError() [2/2]

void ogdf::tlp::Parser::tokenError ( const std::string &  str,
bool  got = true 
)
inlineprivate

Member Data Documentation

◆ m_begin

Iterator ogdf::tlp::Parser::m_begin
private

Definition at line 58 of file TlpParser.h.

◆ m_end

Iterator ogdf::tlp::Parser::m_end
private

Definition at line 58 of file TlpParser.h.

◆ m_idEdge

std::map<int, edge> ogdf::tlp::Parser::m_idEdge
private

Definition at line 55 of file TlpParser.h.

◆ m_idNode

std::map<int, node> ogdf::tlp::Parser::m_idNode
private

Definition at line 54 of file TlpParser.h.

◆ m_istream

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

Definition at line 57 of file TlpParser.h.


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