class SgLogIfStmt : public SgStatement

For Fortran logical if - only one body statement allowed. variant == LOGIF_NODE

Inheritance:

SgLogIfStmt < SgStatement


Public Methods

void addFalseClause(SgStatement &s)
make it into if-then-else
SgStatement* body()
returns reference to first stmt in the body
SgExpression* conditional()
the while test
SgIfStmt* convertLogicIf()
void setBody(SgStatement &s)
new body = s
SgLogIfStmt(SgExpression &cond, SgStatement &s)
SgLogIfStmt(int variant)
~SgLogIfStmt()

Inherited from SgStatement:

Public Methods

void addAttribute(SgAttribute *att)
void addAttribute(int type)
void addAttribute(void *a, int size)
void addAttribute(int type, void *a, int size)
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, int type)
void* deleteAttribute(int i)
void deleteStmt()
SgExpression* expr(int i)
SgStatement* extractStmt()
SgStatement* extractStmtBody()
char* fileName()
SgStatement* firstExecutable()
SgStatement* firstStmtForDeclaration()
SgAttribute* getAttribute(int i, int type)
SgAttribute* getAttribute(int i)
SgStatement* getScopeForDeclare()
int hasAnnotations()
int hasLabel()
int hasSymbol()
int id()
void insertStmtAfter(SgStatement &s, SgStatement &cp)
void insertStmtAfter(SgStatement &s)
void insertStmtBefore(SgStatement &s, SgStatement &cp)
void insertStmtBefore(SgStatement &s)
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 numberOfAttributes()
int numberOfAttributes(int type)
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 * name)
SgSymbol* SgStatement::getSymbolInCurrentScope(char * mixstring, char * genname, char * basename, int c1, int c2)
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 * mixstring, char * genname, char * basename, int c1, int c2)
SgSymbol* SgStatement::GetSymbolInScope(SgStatement * scope, char * mixstring, char * genname, char * basename, int counter)
SgSymbol* SgStatement::GetSymbolInScope(SgStatement * scope, char * name)
void simpledeleteStmt()
void sunparse(char *buffer)
SgSymbol* symbol()
char* unparse()
void unparsestdout()
int variant()

Documentation

For Fortran logical if - only one body statement allowed. variant == LOGIF_NODE
SgLogIfStmt(int variant)

SgLogIfStmt(SgExpression &cond, SgStatement &s)

SgStatement* body()
returns reference to first stmt in the body

SgExpression* conditional()
the while test

void setBody(SgStatement &s)
new body = s

void addFalseClause(SgStatement &s)
make it into if-then-else

SgIfStmt* convertLogicIf()

~SgLogIfStmt()


Direct child classes:
SgWhereStmt

alphabetic index hierarchy of classes


Email contact: zgs@npac.syr.edu

generated by doc++