clingo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Classes | Public Types | Public Member Functions | List of all members
Gringo::LexerState< T > Class Template Reference

#include <lexerstate.hh>

Inheritance diagram for Gringo::LexerState< T >:
Inheritance graph
Collaboration diagram for Gringo::LexerState< T >:
Collaboration graph

Classes

struct  State
 

Public Types

using Data = T
 

Public Member Functions

 LexerState ()
 
void start ()
 
bool eof () const
 
bool push (std::string const &file, T &&data)
 
bool push (std::unique_ptr< std::istream > in, T &&data)
 
void pop ()
 
bool empty () const
 
std::string string (int start=0, int end=0)
 
void step (char s)
 
void step ()
 
int integer () const
 
int line () const
 
int column () const
 
T const & data () const
 
char *& cursor ()
 
char *& marker ()
 
char *& ctxmarker ()
 
char const * limit () const
 
void fill (size_t n)
 
void seek (int offset)
 

Member Typedef Documentation

template<class T>
using Gringo::LexerState< T >::Data = T

Constructor & Destructor Documentation

template<class T >
Gringo::LexerState< T >::LexerState ( )
default

Member Function Documentation

template<class T >
int Gringo::LexerState< T >::column ( ) const
template<class T >
char *& Gringo::LexerState< T >::ctxmarker ( )
template<class T >
char *& Gringo::LexerState< T >::cursor ( )
template<class T >
T const & Gringo::LexerState< T >::data ( ) const
template<class T >
bool Gringo::LexerState< T >::empty ( ) const
template<class T >
bool Gringo::LexerState< T >::eof ( ) const
template<class T >
void Gringo::LexerState< T >::fill ( size_t  n)

Here is the call graph for this function:

template<class T >
int Gringo::LexerState< T >::integer ( ) const
template<class T >
char const * Gringo::LexerState< T >::limit ( ) const
template<class T >
int Gringo::LexerState< T >::line ( ) const
template<class T >
char *& Gringo::LexerState< T >::marker ( )
template<class T >
void Gringo::LexerState< T >::pop ( )
template<class T>
bool Gringo::LexerState< T >::push ( std::string const &  file,
T &&  data 
)

Here is the call graph for this function:

template<class T>
bool Gringo::LexerState< T >::push ( std::unique_ptr< std::istream >  in,
T &&  data 
)

Here is the call graph for this function:

template<class T >
void Gringo::LexerState< T >::seek ( int  offset)
template<class T >
void Gringo::LexerState< T >::start ( )

Here is the call graph for this function:

template<class T >
void Gringo::LexerState< T >::step ( char  s)

Here is the call graph for this function:

template<class T >
void Gringo::LexerState< T >::step ( )

Here is the call graph for this function:

template<class T >
std::string Gringo::LexerState< T >::string ( int  start = 0,
int  end = 0 
)

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