class SgVarDeclStmt : public SgDeclarationStatement

Declaration Statement. variant == VAR_DECL

Inheritance:

SgVarDeclStmt < SgDeclarationStatement < SgStatement


Public Methods

SgExpression& attribute(int i)
void clearInitialValue(int i)
removes initial value of the i-th declaration
void deleteSymbol(int i)
void deleteTheSymbol(SgSymbol &symbol)
SgExpression* initialValue(int i)
the initial value ofthe i-th variable
int numberOfAttributes()
the number of F90 attributes; the attributes are: PARAMETER_OP | PUBLIC_OP | PRIVATE_OP | ALLOCATABLE_OP | EXTERNAL_OP | OPTIONAL_OP | POINTER_OP | SAVE_OP TARGET_OP
int numberOfSymbols()
the number of variables declared;
void setInitialValue(int i, SgExpression &initVal)
sets the initial value ofthe i-th variable an alternative way to initialize variables
SgVarDeclStmt(SgExpression &varRefValList, SgExpression &attributeList, SgType &type)
SgVarDeclStmt(SgExpression &varRefValList)
SgVarDeclStmt(SgExpression &varRefValList, SgType &type)
SgSymbol* symbol(int i)
SgType* type()
the type;
~SgVarDeclStmt()

Inherited from SgDeclarationStatement:

Public Methods

void addVar(SgExpression &exp)
void deleteTheVar(SgExpression &var)
void deleteVar(int i)
int numberOfVars()
SgExpression* var(int i)
SgExpression* varList()

Inherited from SgStatement:

Public Methods

void addAttribute(void *a, int size)
void addAttribute(int type, void *a, int size)
void addAttribute(int type)
void addAttribute(SgAttribute *att)
void addDeclSpec(int type)
int attributeType(int i)
void* attributeValue(int i)
void* attributeValue(int i, int type)
SgStatement* childList1(int i)
SgStatement* childList2(int i)
void clearDeclSpec()
char* comments()
SgStatement* controlParent()
SgStatement& copy(void)
SgStatement& copyBlock(void)
SgStatement* copyBlockPtr(void)
SgStatement& copyOne(void)
SgStatement* copyOnePtr(void)
SgStatement* copyPtr(void)
void deleteAllAttribute(int type)
void deleteAllAttribute()
void* deleteAttribute(int i)
void* deleteAttribute(int i, int type)
void deleteStmt()
SgExpression* expr(int i)
SgStatement* extractStmt()
SgStatement* extractStmtBody()
char* fileName()
SgStatement* firstExecutable()
SgStatement* firstStmtForDeclaration()
SgAttribute* getAttribute(int i)
SgAttribute* getAttribute(int i, int type)
SgStatement* getScopeForDeclare()
int hasAnnotations()
int hasLabel()
int hasSymbol()
int id()
void insertStmtAfter(SgStatement &s, SgStatement &cp)
void insertStmtAfter(SgStatement &s)
void insertStmtBefore(SgStatement &s)
void insertStmtBefore(SgStatement &s, SgStatement &cp)
int isExtern()
int isFriend()
int isIncludedInStmt(SgStatement &s)
int isInline()
int isStatic()
SgStatement* lastDeclaration()
SgStatement* lastExecutable()
SgStatement* lastNodeOfStmt()
SgStatement* lexNext()
SgStatement* lexPrev()
int lineNumber()
SgStatement* nextInChildList()
SgStatement* nodeBefore()
int numberOfChildrenList1()
int numberOfChildrenList2()
int numberOfComments()
void replaceSymbByExp(SgSymbol &symb, SgExpression &exp)
void replaceSymbBySymb(SgSymbol &symb, SgSymbol &newsymb)
void replaceSymbBySymbSameName(SgSymbol &symb, SgSymbol &newsymb)
void replaceTypeInStmt(SgType &old, SgType &newtype)
void replaceWithStmt(SgStatement &s)
void setComments(char *comments)
void setControlParent(SgStatement &s)
void setExpression(int i, SgExpression &e)
void setId(int n)
void setLabel(SgLabel &l)
void setLabel(SgLabel * l)
void setLexNext(SgStatement &s)
void setlineNumber(int n)
void setSymbol(SgSymbol &s)
void setVariant(int n)
SgSymbol* SgStatement::getSymbolInCurrentScope(char * mixstring, char * genname, char * basename, int counter)
SgSymbol* SgStatement::getSymbolInCurrentScope(char * mixstring, char * genname, char * basename, int c1, int c2)
SgSymbol* SgStatement::getSymbolInCurrentScope(char * name)
SgSymbol* SgStatement::getSymbolInCurrentScope(char * mixstring, char * genname, char * basename)
SgSymbol* SgStatement::GetSymbolInScope(SgStatement * scope, char * mixstring, char * genname, char * basename)
SgSymbol* SgStatement::GetSymbolInScope(SgStatement * scope, char * name)
SgSymbol* SgStatement::GetSymbolInScope(SgStatement * scope, char * mixstring, char * genname, char * basename, int c1, int c2)
SgSymbol* SgStatement::GetSymbolInScope(SgStatement * scope, char * mixstring, char * genname, char * basename, int counter)
void simpledeleteStmt()
void sunparse(char *buffer)
char* unparse()
void unparsestdout()
int variant()

Documentation

Declaration Statement. variant == VAR_DECL
SgVarDeclStmt(SgExpression &varRefValList, SgExpression &attributeList, SgType &type)

SgVarDeclStmt(SgExpression &varRefValList, SgType &type)

SgVarDeclStmt(SgExpression &varRefValList)

~SgVarDeclStmt()

SgType* type()
the type;

int numberOfAttributes()
the number of F90 attributes; the attributes are: PARAMETER_OP | PUBLIC_OP | PRIVATE_OP | ALLOCATABLE_OP | EXTERNAL_OP | OPTIONAL_OP | POINTER_OP | SAVE_OP TARGET_OP

SgExpression& attribute(int i)

int numberOfSymbols()
the number of variables declared;

SgSymbol* symbol(int i)

void deleteSymbol(int i)

void deleteTheSymbol(SgSymbol &symbol)

SgExpression* initialValue(int i)
the initial value ofthe i-th variable

void setInitialValue(int i, SgExpression &initVal)
sets the initial value ofthe i-th variable an alternative way to initialize variables. The low-level node (VAR_REF or ARRAY_REF) is replaced by a ASSIGN_OP low-level node.

void clearInitialValue(int i)
removes initial value of the i-th declaration


This class has no child classes.

alphabetic index hierarchy of classes


Email contact: zgs@npac.syr.edu

generated by doc++