MySQL 9.1.0
Source Code Documentation
SqlLexer::iterator Class Reference

#include <sql_lexer.h>

Classes

struct  Token
 

Public Types

using lexer_state = Lexer_yystype
 
using value_type = Token
 
using pointer = value_type *
 
using const_pointer = const value_type *
 

Public Member Functions

 iterator (THD *session)
 
 iterator (THD *session, Token token)
 
value_type operator* () const
 
pointer operator-> ()
 
const_pointer operator-> () const
 
iterator operator++ (int)
 
iteratoroperator++ ()
 

Private Member Functions

Token next_token ()
 
std::string_view get_token_text (TokenId token_id) const
 

Private Attributes

THDsession_
 
lexer_state st
 
Token token_
 

Friends

bool operator== (const iterator &a, const iterator &b)
 
bool operator!= (const iterator &a, const iterator &b)
 

Member Typedef Documentation

◆ const_pointer

◆ lexer_state

◆ pointer

◆ value_type

Constructor & Destructor Documentation

◆ iterator() [1/2]

SqlLexer::iterator::iterator ( THD session)

◆ iterator() [2/2]

SqlLexer::iterator::iterator ( THD session,
Token  token 
)
inline

Member Function Documentation

◆ get_token_text()

std::string_view SqlLexer::iterator::get_token_text ( TokenId  token_id) const
private

◆ next_token()

SqlLexer::iterator::Token SqlLexer::iterator::next_token ( )
private

◆ operator*()

value_type SqlLexer::iterator::operator* ( ) const
inline

◆ operator++() [1/2]

SqlLexer::iterator & SqlLexer::iterator::operator++ ( )

◆ operator++() [2/2]

SqlLexer::iterator SqlLexer::iterator::operator++ ( int  )

◆ operator->() [1/2]

pointer SqlLexer::iterator::operator-> ( )
inline

◆ operator->() [2/2]

const_pointer SqlLexer::iterator::operator-> ( ) const
inline

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const iterator a,
const iterator b 
)
friend

◆ operator==

bool operator== ( const iterator a,
const iterator b 
)
friend

Member Data Documentation

◆ session_

THD* SqlLexer::iterator::session_
private

◆ st

lexer_state SqlLexer::iterator::st
private

◆ token_

Token SqlLexer::iterator::token_
private

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