g2o
Loading...
Searching...
No Matches
FlexLexer Class Referenceabstract

#include <FlexLexer.h>

Inheritance diagram for FlexLexer:

Public Member Functions

virtual ~FlexLexer ()
const char * YYText () const
int YYLeng () const
virtual void yy_switch_to_buffer (yy_buffer_state *new_buffer)=0
virtual yy_buffer_state * yy_create_buffer (std::istream *s, int size)=0
virtual yy_buffer_state * yy_create_buffer (std::istream &s, int size)=0
virtual void yy_delete_buffer (yy_buffer_state *b)=0
virtual void yyrestart (std::istream *s)=0
virtual void yyrestart (std::istream &s)=0
virtual int yylex ()=0
int yylex (std::istream &new_in, std::ostream &new_out)
int yylex (std::istream *new_in, std::ostream *new_out=0)
virtual void switch_streams (std::istream *new_in, std::ostream *new_out)=0
virtual void switch_streams (std::istream &new_in, std::ostream &new_out)=0
int lineno () const
int debug () const
void set_debug (int flag)

Protected Attributes

char * yytext
int yyleng
int yylineno
int yy_flex_debug

Detailed Description

Definition at line 58 of file FlexLexer.h.

Constructor & Destructor Documentation

◆ ~FlexLexer()

virtual FlexLexer::~FlexLexer ( )
inlinevirtual

Definition at line 60 of file FlexLexer.h.

60{}

Member Function Documentation

◆ debug()

int FlexLexer::debug ( ) const
inline

Definition at line 92 of file FlexLexer.h.

92{ return yy_flex_debug; }
int yy_flex_debug
Definition FlexLexer.h:99

References yy_flex_debug.

◆ lineno()

int FlexLexer::lineno ( ) const
inline

Definition at line 90 of file FlexLexer.h.

90{ return yylineno; }
int yylineno
Definition FlexLexer.h:98

References yylineno.

◆ set_debug()

void FlexLexer::set_debug ( int flag)
inline

Definition at line 93 of file FlexLexer.h.

93{ yy_flex_debug = flag; }

References yy_flex_debug.

◆ switch_streams() [1/2]

virtual void FlexLexer::switch_streams ( std::istream & new_in,
std::ostream & new_out )
pure virtual

Implemented in yyFlexLexer.

◆ switch_streams() [2/2]

virtual void FlexLexer::switch_streams ( std::istream * new_in,
std::ostream * new_out )
pure virtual

Implemented in yyFlexLexer.

Referenced by yylex(), and yylex().

◆ yy_create_buffer() [1/2]

virtual yy_buffer_state * FlexLexer::yy_create_buffer ( std::istream & s,
int size )
pure virtual

Implemented in yyFlexLexer.

◆ yy_create_buffer() [2/2]

virtual yy_buffer_state * FlexLexer::yy_create_buffer ( std::istream * s,
int size )
pure virtual

Implemented in yyFlexLexer.

◆ yy_delete_buffer()

virtual void FlexLexer::yy_delete_buffer ( yy_buffer_state * b)
pure virtual

Implemented in yyFlexLexer.

◆ yy_switch_to_buffer()

virtual void FlexLexer::yy_switch_to_buffer ( yy_buffer_state * new_buffer)
pure virtual

Implemented in yyFlexLexer.

◆ YYLeng()

int FlexLexer::YYLeng ( ) const
inline

Definition at line 63 of file FlexLexer.h.

63{ return yyleng; }
int yyleng
Definition FlexLexer.h:97

References yyleng.

◆ yylex() [1/3]

virtual int FlexLexer::yylex ( )
pure virtual

Implemented in yyFlexLexer.

Referenced by yylex(), and yylex().

◆ yylex() [2/3]

int FlexLexer::yylex ( std::istream & new_in,
std::ostream & new_out )
inline

Definition at line 75 of file FlexLexer.h.

75 {
76 switch_streams(new_in, new_out);
77 return yylex();
78 }
virtual int yylex()=0
virtual void switch_streams(std::istream *new_in, std::ostream *new_out)=0

References switch_streams(), and yylex().

◆ yylex() [3/3]

int FlexLexer::yylex ( std::istream * new_in,
std::ostream * new_out = 0 )
inline

Definition at line 80 of file FlexLexer.h.

80 {
81 switch_streams(new_in, new_out);
82 return yylex();
83 }

References switch_streams(), and yylex().

◆ yyrestart() [1/2]

virtual void FlexLexer::yyrestart ( std::istream & s)
pure virtual

Implemented in yyFlexLexer.

◆ yyrestart() [2/2]

virtual void FlexLexer::yyrestart ( std::istream * s)
pure virtual

Implemented in yyFlexLexer.

◆ YYText()

const char * FlexLexer::YYText ( ) const
inline

Definition at line 62 of file FlexLexer.h.

62{ return yytext; }
char * yytext
Definition FlexLexer.h:96

References yytext.

Member Data Documentation

◆ yy_flex_debug

int FlexLexer::yy_flex_debug
protected

Definition at line 99 of file FlexLexer.h.

Referenced by yyFlexLexer::ctor_common(), debug(), and set_debug().

◆ yyleng

int FlexLexer::yyleng
protected

Definition at line 97 of file FlexLexer.h.

Referenced by YYLeng().

◆ yylineno

int FlexLexer::yylineno
protected

Definition at line 98 of file FlexLexer.h.

Referenced by yyFlexLexer::ctor_common(), and lineno().

◆ yytext

char* FlexLexer::yytext
protected

Definition at line 96 of file FlexLexer.h.

Referenced by YYText().


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