CaseStatement Class Reference

#include <include/statement.h>

Inheritance diagram for CaseStatement:

GotoStatement Statement List of all members.

Detailed Description

Definition at line 997 of file statement.h.

Public Member Functions

virtual bool accept (StmtPartModifier *visitor)
virtual bool accept (StmtModifier *visitor)
virtual bool accept (StmtExpVisitor *visitor)
virtual bool accept (StmtVisitor *visitor)
 CaseStatement ()
virtual Statementclone ()
virtual void generateCode (HLLCode *hll, BasicBlock *pbb, int indLevel)
SWITCH_INFOgetSwitchInfo ()
virtual void print (std::ostream &os=std::cout, bool html=false)
virtual bool searchAll (Exp *search, std::list< Exp * > &result)
virtual bool searchAndReplace (Exp *search, Exp *replace, bool cc=false)
void setSwitchInfo (SWITCH_INFO *pss)
virtual void simplify ()
virtual bool usesExp (Exp *e)
virtual ~CaseStatement ()

Private Attributes

SWITCH_INFOpSwitchInfo

Friends

class XMLProgParser


Constructor & Destructor Documentation

CaseStatement::CaseStatement  ) 
 

Definition at line 1799 of file statement.cpp.

References Statement::kind, and STMT_CASE.

Referenced by clone().

CaseStatement::~CaseStatement  )  [virtual]
 

Definition at line 1811 of file statement.cpp.

References pSwitchInfo.


Member Function Documentation

bool CaseStatement::accept StmtPartModifier visitor  )  [virtual]
 

Reimplemented from GotoStatement.

Definition at line 4045 of file statement.cpp.

References Exp::accept(), StmtPartModifier::mod, GotoStatement::pDest, pSwitchInfo, SWITCH_INFO::pSwitchVar, and StmtPartModifier::visit().

bool CaseStatement::accept StmtModifier visitor  )  [virtual]
 

Reimplemented from GotoStatement.

Definition at line 3933 of file statement.cpp.

References Exp::accept(), StmtModifier::mod, GotoStatement::pDest, pSwitchInfo, SWITCH_INFO::pSwitchVar, and StmtModifier::visit().

bool CaseStatement::accept StmtExpVisitor visitor  )  [virtual]
 

Reimplemented from GotoStatement.

Definition at line 3807 of file statement.cpp.

References Exp::accept(), StmtExpVisitor::ev, GotoStatement::pDest, pSwitchInfo, SWITCH_INFO::pSwitchVar, and StmtExpVisitor::visit().

bool CaseStatement::accept StmtVisitor visitor  )  [virtual]
 

Reimplemented from GotoStatement.

Definition at line 1912 of file statement.cpp.

References StmtVisitor::visit().

Referenced by RtlTest::testVisitor().

Statement * CaseStatement::clone  )  [virtual]
 

Reimplemented from GotoStatement.

Definition at line 1897 of file statement.cpp.

References CaseStatement(), Exp::clone(), GotoStatement::m_isComputed, Statement::number, Statement::pbb, GotoStatement::pDest, Statement::proc, pSwitchInfo, and SWITCH_INFO::pSwitchVar.

void CaseStatement::generateCode HLLCode hll,
BasicBlock pbb,
int  indLevel
[virtual]
 

Reimplemented from GotoStatement.

Definition at line 1916 of file statement.cpp.

SWITCH_INFO * CaseStatement::getSwitchInfo  ) 
 

Definition at line 1822 of file statement.cpp.

References pSwitchInfo.

Referenced by BasicBlock::generateCode(), BasicBlock::getDest(), BasicBlock::processSwitch(), and StmtConscriptSetter::visit().

void CaseStatement::print std::ostream &  os = std::cout,
bool  html = false
[virtual]
 

Reimplemented from GotoStatement.

Definition at line 1872 of file statement.cpp.

References NULL, Statement::number, GotoStatement::pDest, pSwitchInfo, and SWITCH_INFO::pSwitchVar.

bool CaseStatement::searchAll Exp search,
std::list< Exp * > &  result
[virtual]
 

Reimplemented from GotoStatement.

Definition at line 1860 of file statement.cpp.

References pSwitchInfo, SWITCH_INFO::pSwitchVar, GotoStatement::search(), Exp::searchAll(), and GotoStatement::searchAll().

bool CaseStatement::searchAndReplace Exp search,
Exp replace,
bool  cc = false
[virtual]
 

Reimplemented from GotoStatement.

Definition at line 1844 of file statement.cpp.

References pSwitchInfo, SWITCH_INFO::pSwitchVar, GotoStatement::search(), GotoStatement::searchAndReplace(), and Exp::searchReplaceAll().

void CaseStatement::setSwitchInfo SWITCH_INFO pss  ) 
 

Definition at line 1832 of file statement.cpp.

References pSwitchInfo.

Referenced by StatementTest::testAddUsedLocsCase(), and StatementTest::testSubscriptVars().

void CaseStatement::simplify  )  [virtual]
 

Reimplemented from GotoStatement.

Definition at line 1931 of file statement.cpp.

References GotoStatement::pDest, pSwitchInfo, SWITCH_INFO::pSwitchVar, and Exp::simplify().

bool CaseStatement::usesExp Exp e  )  [virtual]
 

Reimplemented from GotoStatement.

Definition at line 1920 of file statement.cpp.

References GotoStatement::pDest, pSwitchInfo, and SWITCH_INFO::pSwitchVar.


Friends And Related Function Documentation

friend class XMLProgParser [friend]
 

Reimplemented from GotoStatement.

Definition at line 1035 of file statement.h.


Member Data Documentation

SWITCH_INFO* CaseStatement::pSwitchInfo [private]
 

Definition at line 998 of file statement.h.

Referenced by accept(), clone(), getSwitchInfo(), print(), searchAll(), searchAndReplace(), setSwitchInfo(), simplify(), usesExp(), and ~CaseStatement().


The documentation for this class was generated from the following files:
Generated on Tue Sep 19 21:18:40 2006 for Boomerang by  doxygen 1.4.6