RetroArch
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
glslang::TInputScanner Class Reference

#include <Scan.h>

Collaboration diagram for glslang::TInputScanner:
[legend]

Public Member Functions

 TInputScanner (int n, const char *const s[], size_t L[], const char *const *names=nullptr, int b=0, int f=0, bool single=false)
 
virtual ~TInputScanner ()
 
int get ()
 
int peek ()
 
void unget ()
 
void setLine (int newLine)
 
void setFile (const char *filename)
 
void setFile (const char *filename, int i)
 
void setString (int newString)
 
void setColumn (int col)
 
void setEndOfInput ()
 
bool atEndOfInput () const
 
const TSourceLocgetSourceLoc () const
 
int getLastValidSourceIndex () const
 
void consumeWhiteSpace (bool &foundNonSpaceTab)
 
bool consumeComment ()
 
void consumeWhitespaceComment (bool &foundNonSpaceTab)
 
bool scanVersion (int &version, EProfile &profile, bool &notFirstToken)
 

Protected Member Functions

void advance ()
 

Protected Attributes

int numSources
 
const unsigned char *constsources
 
const size_t * lengths
 
int currentSource
 
size_t currentChar
 
TSourceLocloc
 
int stringBias
 
int finale
 
TSourceLoc logicalSourceLoc
 
bool singleLogical
 
bool endOfFileReached
 

Constructor & Destructor Documentation

◆ TInputScanner()

glslang::TInputScanner::TInputScanner ( int  n,
const char *const  s[],
size_t  L[],
const char *const names = nullptr,
int  b = 0,
int  f = 0,
bool  single = false 
)
inline
Here is the call graph for this function:

◆ ~TInputScanner()

virtual glslang::TInputScanner::~TInputScanner ( )
inlinevirtual

Member Function Documentation

◆ advance()

void glslang::TInputScanner::advance ( )
inlineprotected
Here is the caller graph for this function:

◆ atEndOfInput()

bool glslang::TInputScanner::atEndOfInput ( ) const
inline

◆ consumeComment()

bool glslang::TInputScanner::consumeComment ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ consumeWhiteSpace()

void glslang::TInputScanner::consumeWhiteSpace ( bool foundNonSpaceTab)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ consumeWhitespaceComment()

void glslang::TInputScanner::consumeWhitespaceComment ( bool foundNonSpaceTab)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get()

int glslang::TInputScanner::get ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLastValidSourceIndex()

int glslang::TInputScanner::getLastValidSourceIndex ( ) const
inline
Here is the caller graph for this function:

◆ getSourceLoc()

const TSourceLoc& glslang::TInputScanner::getSourceLoc ( ) const
inline
Here is the caller graph for this function:

◆ peek()

int glslang::TInputScanner::peek ( )
inline
Here is the caller graph for this function:

◆ scanVersion()

bool glslang::TInputScanner::scanVersion ( int &  version,
EProfile profile,
bool notFirstToken 
)
Here is the call graph for this function:

◆ setColumn()

void glslang::TInputScanner::setColumn ( int  col)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setEndOfInput()

void glslang::TInputScanner::setEndOfInput ( )
inline
Here is the caller graph for this function:

◆ setFile() [1/2]

void glslang::TInputScanner::setFile ( const char *  filename)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFile() [2/2]

void glslang::TInputScanner::setFile ( const char *  filename,
int  i 
)
inline
Here is the call graph for this function:

◆ setLine()

void glslang::TInputScanner::setLine ( int  newLine)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setString()

void glslang::TInputScanner::setString ( int  newString)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unget()

void glslang::TInputScanner::unget ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ currentChar

size_t glslang::TInputScanner::currentChar
protected

◆ currentSource

int glslang::TInputScanner::currentSource
protected

◆ endOfFileReached

bool glslang::TInputScanner::endOfFileReached
protected

◆ finale

int glslang::TInputScanner::finale
protected

◆ lengths

const size_t* glslang::TInputScanner::lengths
protected

◆ loc

TSourceLoc* glslang::TInputScanner::loc
protected

◆ logicalSourceLoc

TSourceLoc glslang::TInputScanner::logicalSourceLoc
protected

◆ numSources

int glslang::TInputScanner::numSources
protected

◆ singleLogical

bool glslang::TInputScanner::singleLogical
protected

◆ sources

const unsigned char* const* glslang::TInputScanner::sources
protected

◆ stringBias

int glslang::TInputScanner::stringBias
protected

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