class SgVariableSymb : public SgSymbol

a variable

Inheritance:

SgVariableSymb < SgSymbol


Public Methods

int isAttributeSet(int attribute)
int numberOfDefs()
int numberOfUses()
number of uses.
void setAttribute(int attribute)
SgVariableSymb(char *identifier, SgStatement &scope)
SgVariableSymb(char *identifier, SgStatement *scope)
SgVariableSymb(char *identifier)
SgVariableSymb(char *identifier, SgType *t, SgStatement *scope)
SgVariableSymb(char *identifier, SgType &t, SgStatement &scope)
SgVariableSymb(char *identifier, SgType &t)
SgExpression* useExpr(int i)
expression where i-th use occurs
SgStatement* useStmt(int i)
statement where i-th use occurs
SgVarRefExp* varRef(void)
This function allocates and returns a new variable reference expression to this symbol.
~SgVariableSymb()

Inherited from SgSymbol:

Public Methods

void addAttribute(int type)
void addAttribute(void *a, int size)
void addAttribute(SgAttribute *att)
void addAttribute(int type, void *a, int size)
int attributes()
int attributeType(int i)
void* attributeValue(int i, int type)
void* attributeValue(int i)
SgStatement* body()
SgSymbol& copy()
SgSymbol& copyAcrossFiles(SgStatement &where)
SgSymbol& copyLevel1()
SgStatement* declaredInStmt()
SgStatement* declareInStmt(SgStatement *hedr_stmt)
void declareTheSymbol(SgStatement &st)
void declareTheSymbolWithParamList(SgStatement &st, SgExpression &parlist)
void* deleteAttribute(int i, int type)
void* deleteAttribute(int i)
SgAttribute* getAttribute(int i, int type)
SgAttribute* getAttribute(int i)
int id()
char* identifier()
int isAssumedShapeSymbol()
int isAssumedSizeSymbol()
int isDeferedShapeSymbol()
SgExpression* makeDeclExpr()
SgExpression* makeDeclExprWithParamList(SgExpression &parlist)
SgVarDeclStmt* makeVarDeclStmt()
SgVarDeclStmt* makeVarDeclStmtWithParamList(SgExpression &parlist)
int numberOfAttributes(int type)
int numberOfAttributes()
void removeAttribute(int attribute)
SgStatement* scope()
void setNextInScope(SgStatement *s)
void setType(SgType &t)
SgType* type()
int variant()

Documentation

a variable. variant = VARIABLE_NAME
SgVariableSymb(char *identifier, SgType &t, SgStatement &scope)

SgVariableSymb(char *identifier, SgType *t, SgStatement *scope)

SgVariableSymb(char *identifier, SgType &t)

SgVariableSymb(char *identifier, SgStatement &scope)

SgVariableSymb(char *identifier, SgStatement *scope)

SgVariableSymb(char *identifier)

~SgVariableSymb()

SgVarRefExp* varRef(void)
This function allocates and returns a new variable reference expression to this symbol.

int isAttributeSet(int attribute)

void setAttribute(int attribute)

int numberOfUses()
number of uses.

SgStatement* useStmt(int i)
statement where i-th use occurs

SgExpression* useExpr(int i)
expression where i-th use occurs

int numberOfDefs()


This class has no child classes.

alphabetic index hierarchy of classes


Email contact: zgs@npac.syr.edu

generated by doc++