exprtk::lexer::generator Class Reference

#include <exprtk.hpp>

Public Types

typedef token token_t
 
typedef std::vector< token_ttoken_list_t
 
typedef token_list_t::iterator token_list_itr_t
 
typedef details::char_t char_t
 

Public Member Functions

 generator ()
 
void clear ()
 
bool process (const std::string &str)
 
bool empty () const
 
std::size_t size () const
 
void begin ()
 
void store ()
 
void restore ()
 
token_tnext_token ()
 
token_tpeek_next_token ()
 
token_toperator[] (const std::size_t &index)
 
token_t operator[] (const std::size_t &index) const
 
bool finished () const
 
void insert_front (token_t::token_type tk_type)
 
std::string substr (const std::size_t &begin, const std::size_t &end)
 
std::string remaining () const
 

Friends

class token_scanner
 
class token_modifier
 
class token_inserter
 
class token_joiner
 

Member Typedef Documentation

◆ char_t

◆ token_list_itr_t

typedef token_list_t::iterator exprtk::lexer::generator::token_list_itr_t

◆ token_list_t

◆ token_t

Constructor & Destructor Documentation

◆ generator()

exprtk::lexer::generator::generator ( )
inline

References clear().

Member Function Documentation

◆ begin()

void exprtk::lexer::generator::begin ( )
inline

◆ clear()

void exprtk::lexer::generator::clear ( )
inline

Referenced by generator().

◆ empty()

bool exprtk::lexer::generator::empty ( ) const
inline

◆ finished()

bool exprtk::lexer::generator::finished ( ) const
inline

Referenced by remaining().

◆ insert_front()

void exprtk::lexer::generator::insert_front ( token_t::token_type  tk_type)
inline

References exprtk::details::t().

◆ next_token()

token_t & exprtk::lexer::generator::next_token ( )
inline

◆ operator[]() [1/2]

token_t & exprtk::lexer::generator::operator[] ( const std::size_t &  index)
inline

References index.

◆ operator[]() [2/2]

token_t exprtk::lexer::generator::operator[] ( const std::size_t &  index) const
inline

References index.

◆ peek_next_token()

token_t & exprtk::lexer::generator::peek_next_token ( )
inline

◆ process()

bool exprtk::lexer::generator::process ( const std::string str)
inline

◆ remaining()

std::string exprtk::lexer::generator::remaining ( ) const
inline

References finished(), and string.

◆ restore()

void exprtk::lexer::generator::restore ( )
inline

◆ size()

std::size_t exprtk::lexer::generator::size ( ) const
inline

◆ store()

void exprtk::lexer::generator::store ( )
inline

◆ substr()

std::string exprtk::lexer::generator::substr ( const std::size_t &  begin,
const std::size_t &  end 
)
inline

References begin(), and string.

Friends And Related Function Documentation

◆ token_inserter

friend class token_inserter
friend

◆ token_joiner

friend class token_joiner
friend

◆ token_modifier

friend class token_modifier
friend

◆ token_scanner

friend class token_scanner
friend

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