Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ogdf::DLParser Class Reference

#include <ogdf/fileformats/DLParser.h>

Public Member Functions

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

Private Types

enum class  Format { FullMatrix , EdgeList , NodeList }
 

Private Member Functions

bool fineId (int vid)
 
void init ()
 
bool initGraph (Graph &G)
 
bool readAssignment (Graph &G, const std::string &lhs, const std::string &rhs)
 
bool readData (Graph &G, GraphAttributes *GA)
 
bool readEdgeList (Graph &G, GraphAttributes *GA)
 
bool readEmbeddedEdgeList (Graph &G, GraphAttributes *GA)
 
bool readEmbeddedMatrix (Graph &G, GraphAttributes *GA)
 
bool readEmbeddedNodeList (Graph &G, GraphAttributes *GA)
 
bool readGraph (Graph &G, GraphAttributes *GA)
 
bool readMatrix (Graph &G, GraphAttributes *GA)
 
bool readNodeList (Graph &G)
 
bool readStatements (Graph &G, GraphAttributes *GA)
 
bool readWithLabels (Graph &G, GraphAttributes *GA)
 
node requestLabel (GraphAttributes *GA, node &nextFree, const std::string &label)
 

Static Private Member Functions

static void toLower (std::string &str)
 
static void toUpper (std::string &str)
 

Private Attributes

bool m_embedded
 
enum ogdf::DLParser::Format m_format
 
bool m_initialized
 
std::istream & m_istream
 
std::vector< nodem_nodeId
 
std::map< std::string, nodem_nodeLabel
 
int m_nodes
 

Detailed Description

Definition at line 47 of file DLParser.h.

Member Enumeration Documentation

◆ Format

Enumerator
FullMatrix 
EdgeList 
NodeList 

Definition at line 53 of file DLParser.h.

Constructor & Destructor Documentation

◆ DLParser()

ogdf::DLParser::DLParser ( std::istream &  is)
explicit

Member Function Documentation

◆ fineId()

bool ogdf::DLParser::fineId ( int  vid)
inlineprivate

Definition at line 67 of file DLParser.h.

◆ init()

void ogdf::DLParser::init ( )
private

◆ initGraph()

bool ogdf::DLParser::initGraph ( Graph G)
private

◆ read() [1/2]

bool ogdf::DLParser::read ( Graph G)
inline

Definition at line 91 of file DLParser.h.

◆ read() [2/2]

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

Definition at line 93 of file DLParser.h.

◆ readAssignment()

bool ogdf::DLParser::readAssignment ( Graph G,
const std::string &  lhs,
const std::string &  rhs 
)
private

◆ readData()

bool ogdf::DLParser::readData ( Graph G,
GraphAttributes GA 
)
private

◆ readEdgeList()

bool ogdf::DLParser::readEdgeList ( Graph G,
GraphAttributes GA 
)
private

◆ readEmbeddedEdgeList()

bool ogdf::DLParser::readEmbeddedEdgeList ( Graph G,
GraphAttributes GA 
)
private

◆ readEmbeddedMatrix()

bool ogdf::DLParser::readEmbeddedMatrix ( Graph G,
GraphAttributes GA 
)
private

◆ readEmbeddedNodeList()

bool ogdf::DLParser::readEmbeddedNodeList ( Graph G,
GraphAttributes GA 
)
private

◆ readGraph()

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

◆ readMatrix()

bool ogdf::DLParser::readMatrix ( Graph G,
GraphAttributes GA 
)
private

◆ readNodeList()

bool ogdf::DLParser::readNodeList ( Graph G)
private

◆ readStatements()

bool ogdf::DLParser::readStatements ( Graph G,
GraphAttributes GA 
)
private

◆ readWithLabels()

bool ogdf::DLParser::readWithLabels ( Graph G,
GraphAttributes GA 
)
private

◆ requestLabel()

node ogdf::DLParser::requestLabel ( GraphAttributes GA,
node nextFree,
const std::string &  label 
)
inlineprivate

◆ toLower()

static void ogdf::DLParser::toLower ( std::string &  str)
inlinestaticprivate

Definition at line 63 of file DLParser.h.

◆ toUpper()

static void ogdf::DLParser::toUpper ( std::string &  str)
inlinestaticprivate

Definition at line 59 of file DLParser.h.

Member Data Documentation

◆ m_embedded

bool ogdf::DLParser::m_embedded
private

Definition at line 54 of file DLParser.h.

◆ m_format

enum ogdf::DLParser::Format ogdf::DLParser::m_format
private

◆ m_initialized

bool ogdf::DLParser::m_initialized
private

Definition at line 50 of file DLParser.h.

◆ m_istream

std::istream& ogdf::DLParser::m_istream
private

Definition at line 49 of file DLParser.h.

◆ m_nodeId

std::vector<node> ogdf::DLParser::m_nodeId
private

Definition at line 56 of file DLParser.h.

◆ m_nodeLabel

std::map<std::string, node> ogdf::DLParser::m_nodeLabel
private

Definition at line 57 of file DLParser.h.

◆ m_nodes

int ogdf::DLParser::m_nodes
private

Definition at line 52 of file DLParser.h.


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