Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

ogdf::tlp::Lexer Class Reference

#include <ogdf/fileformats/TlpLexer.h>

Public Member Functions

 Lexer (std::istream &is)
 
 ~Lexer ()
 
bool tokenize ()
 
const std::vector< Token > & tokens () const
 

Private Member Functions

void cleanValues ()
 
size_t column () const
 
bool fetchBuffer ()
 
size_t line () const
 
bool tokenizeIdentifier ()
 
bool tokenizeLine ()
 
bool tokenizeString ()
 

Static Private Member Functions

static bool isIdentifier (char c)
 

Private Attributes

std::string::const_iterator m_begin
 
std::string m_buffer
 
std::string::const_iterator m_end
 
std::istream & m_istream
 
size_t m_line
 
std::vector< Tokenm_tokens
 

Detailed Description

Definition at line 87 of file TlpLexer.h.

Constructor & Destructor Documentation

◆ Lexer()

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

◆ ~Lexer()

ogdf::tlp::Lexer::~Lexer ( )

Member Function Documentation

◆ cleanValues()

void ogdf::tlp::Lexer::cleanValues ( )
private

◆ column()

size_t ogdf::tlp::Lexer::column ( ) const
inlineprivate

Definition at line 107 of file TlpLexer.h.

◆ fetchBuffer()

bool ogdf::tlp::Lexer::fetchBuffer ( )
private

◆ isIdentifier()

static bool ogdf::tlp::Lexer::isIdentifier ( char  c)
staticprivate

◆ line()

size_t ogdf::tlp::Lexer::line ( ) const
inlineprivate

Definition at line 103 of file TlpLexer.h.

◆ tokenize()

bool ogdf::tlp::Lexer::tokenize ( )

◆ tokenizeIdentifier()

bool ogdf::tlp::Lexer::tokenizeIdentifier ( )
private

◆ tokenizeLine()

bool ogdf::tlp::Lexer::tokenizeLine ( )
private

◆ tokenizeString()

bool ogdf::tlp::Lexer::tokenizeString ( )
private

◆ tokens()

const std::vector<Token>& ogdf::tlp::Lexer::tokens ( ) const
inline

Definition at line 118 of file TlpLexer.h.

Member Data Documentation

◆ m_begin

std::string::const_iterator ogdf::tlp::Lexer::m_begin
private

Definition at line 91 of file TlpLexer.h.

◆ m_buffer

std::string ogdf::tlp::Lexer::m_buffer
private

Definition at line 90 of file TlpLexer.h.

◆ m_end

std::string::const_iterator ogdf::tlp::Lexer::m_end
private

Definition at line 91 of file TlpLexer.h.

◆ m_istream

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

Definition at line 89 of file TlpLexer.h.

◆ m_line

size_t ogdf::tlp::Lexer::m_line
private

Definition at line 92 of file TlpLexer.h.

◆ m_tokens

std::vector<Token> ogdf::tlp::Lexer::m_tokens
private

Definition at line 94 of file TlpLexer.h.


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