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

#include <SymbolTable.h>

Public Member Functions

 TSymbolTable ()
 
 ~TSymbolTable ()
 
void adoptLevels (TSymbolTable &symTable)
 
bool isEmpty ()
 
bool atBuiltInLevel ()
 
bool atGlobalLevel ()
 
void setNoBuiltInRedeclarations ()
 
void setSeparateNameSpaces ()
 
void push ()
 
void pushThis (TSymbol &thisSymbol)
 
void pop (TPrecisionQualifier *p)
 
bool insert (TSymbol &symbol)
 
bool amend (TSymbol &symbol, int firstNewMember)
 
void makeInternalVariable (TSymbol &symbol)
 
TSymbolcopyUpDeferredInsert (TSymbol *shared)
 
TSymbolcopyUp (TSymbol *shared)
 
TSymbolfind (const TString &name, bool *builtIn=0, bool *currentScope=0, int *thisDepthP=0)
 
TSymbolfind (const TString &name, int &thisDepth)
 
bool isFunctionNameVariable (const TString &name) const
 
void findFunctionNameList (const TString &name, TVector< const TFunction *> &list, bool &builtIn)
 
void relateToOperator (const char *name, TOperator op)
 
void setFunctionExtensions (const char *name, int num, const char *const extensions[])
 
void setVariableExtensions (const char *name, int num, const char *const extensions[])
 
int getMaxSymbolId ()
 
void dump (TInfoSink &infoSink) const
 
void copyTable (const TSymbolTable &copyOf)
 
void setPreviousDefaultPrecisions (TPrecisionQualifier *p)
 
void readOnly ()
 

Protected Member Functions

bool isSharedLevel (int level)
 
bool isBuiltInLevel (int level)
 
bool isGlobalLevel (int level)
 
 TSymbolTable (TSymbolTable &)
 
TSymbolTableoperator= (TSymbolTableLevel &)
 
int currentLevel () const
 

Protected Attributes

std::vector< TSymbolTableLevel * > table
 
int uniqueId
 
bool noBuiltInRedeclarations
 
bool separateNameSpaces
 
unsigned int adoptedLevels
 

Static Protected Attributes

static const int globalLevel = 3
 

Constructor & Destructor Documentation

◆ TSymbolTable() [1/2]

glslang::TSymbolTable::TSymbolTable ( )
inline

◆ ~TSymbolTable()

glslang::TSymbolTable::~TSymbolTable ( )
inline
Here is the call graph for this function:

◆ TSymbolTable() [2/2]

glslang::TSymbolTable::TSymbolTable ( TSymbolTable )
protected

Member Function Documentation

◆ adoptLevels()

void glslang::TSymbolTable::adoptLevels ( TSymbolTable symTable)
inline

◆ amend()

bool glslang::TSymbolTable::amend ( TSymbol symbol,
int  firstNewMember 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ atBuiltInLevel()

bool glslang::TSymbolTable::atBuiltInLevel ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ atGlobalLevel()

bool glslang::TSymbolTable::atGlobalLevel ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyTable()

void glslang::TSymbolTable::copyTable ( const TSymbolTable copyOf)

◆ copyUp()

TSymbol* glslang::TSymbolTable::copyUp ( TSymbol shared)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyUpDeferredInsert()

TSymbol* glslang::TSymbolTable::copyUpDeferredInsert ( TSymbol shared)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ currentLevel()

int glslang::TSymbolTable::currentLevel ( ) const
inlineprotected
Here is the caller graph for this function:

◆ dump()

void glslang::TSymbolTable::dump ( TInfoSink infoSink) const
Here is the call graph for this function:

◆ find() [1/2]

TSymbol* glslang::TSymbolTable::find ( const TString name,
bool builtIn = 0,
bool currentScope = 0,
int *  thisDepthP = 0 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ find() [2/2]

TSymbol* glslang::TSymbolTable::find ( const TString name,
int &  thisDepth 
)
inline
Here is the call graph for this function:

◆ findFunctionNameList()

void glslang::TSymbolTable::findFunctionNameList ( const TString name,
TVector< const TFunction *> &  list,
bool builtIn 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMaxSymbolId()

int glslang::TSymbolTable::getMaxSymbolId ( )
inline

◆ insert()

bool glslang::TSymbolTable::insert ( TSymbol symbol)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isBuiltInLevel()

bool glslang::TSymbolTable::isBuiltInLevel ( int  level)
inlineprotected
Here is the caller graph for this function:

◆ isEmpty()

bool glslang::TSymbolTable::isEmpty ( )
inline

◆ isFunctionNameVariable()

bool glslang::TSymbolTable::isFunctionNameVariable ( const TString name) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isGlobalLevel()

bool glslang::TSymbolTable::isGlobalLevel ( int  level)
inlineprotected
Here is the caller graph for this function:

◆ isSharedLevel()

bool glslang::TSymbolTable::isSharedLevel ( int  level)
inlineprotected

◆ makeInternalVariable()

void glslang::TSymbolTable::makeInternalVariable ( TSymbol symbol)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

TSymbolTable& glslang::TSymbolTable::operator= ( TSymbolTableLevel )
protected

◆ pop()

void glslang::TSymbolTable::pop ( TPrecisionQualifier p)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ push()

void glslang::TSymbolTable::push ( )
inline
Here is the caller graph for this function:

◆ pushThis()

void glslang::TSymbolTable::pushThis ( TSymbol thisSymbol)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ readOnly()

void glslang::TSymbolTable::readOnly ( )
inline

◆ relateToOperator()

void glslang::TSymbolTable::relateToOperator ( const char *  name,
TOperator  op 
)
inline
Here is the caller graph for this function:

◆ setFunctionExtensions()

void glslang::TSymbolTable::setFunctionExtensions ( const char *  name,
int  num,
const char *const  extensions[] 
)
inline
Here is the caller graph for this function:

◆ setNoBuiltInRedeclarations()

void glslang::TSymbolTable::setNoBuiltInRedeclarations ( )
inline

◆ setPreviousDefaultPrecisions()

void glslang::TSymbolTable::setPreviousDefaultPrecisions ( TPrecisionQualifier p)
inline
Here is the call graph for this function:

◆ setSeparateNameSpaces()

void glslang::TSymbolTable::setSeparateNameSpaces ( )
inline

◆ setVariableExtensions()

void glslang::TSymbolTable::setVariableExtensions ( const char *  name,
int  num,
const char *const  extensions[] 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ adoptedLevels

unsigned int glslang::TSymbolTable::adoptedLevels
protected

◆ globalLevel

const int glslang::TSymbolTable::globalLevel = 3
staticprotected

◆ noBuiltInRedeclarations

bool glslang::TSymbolTable::noBuiltInRedeclarations
protected

◆ separateNameSpaces

bool glslang::TSymbolTable::separateNameSpaces
protected

◆ table

std::vector<TSymbolTableLevel*> glslang::TSymbolTable::table
protected

◆ uniqueId

int glslang::TSymbolTable::uniqueId
protected

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