|
From: <bl...@us...> - 2003-03-16 14:39:19
|
Update of /cvsroot/cpptool/rfta/src/rfta
In directory sc8-pr-cvs1:/tmp/cvs-serv22508/src/rfta
Modified Files:
CodeModelStatements.cpp
Log Message:
* refactored to use ChangeTracker in statements
Index: CodeModelStatements.cpp
===================================================================
RCS file: /cvsroot/cpptool/rfta/src/rfta/CodeModelStatements.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** CodeModelStatements.cpp 16 Mar 2003 13:51:09 -0000 1.9
--- CodeModelStatements.cpp 16 Mar 2003 14:39:13 -0000 1.10
***************
*** 124,128 ****
ConditionStatement::ConditionStatement( const ExpressionPtr &condition )
! : condition_( condition )
{
}
--- 124,128 ----
ConditionStatement::ConditionStatement( const ExpressionPtr &condition )
! : conditionTracker_( condition )
{
}
***************
*** 132,136 ****
ConditionStatement::getCondition() const
{
! return condition_;
}
--- 132,136 ----
ConditionStatement::getCondition() const
{
! return conditionTracker_.getElement();
}
***************
*** 139,143 ****
ConditionStatement::setCondition( const ExpressionPtr &condition )
{
! condition_ = condition;
}
--- 139,143 ----
ConditionStatement::setCondition( const ExpressionPtr &condition )
{
! conditionTracker_.setElement( condition );
}
***************
*** 242,246 ****
const StatementPtr &iteratedStatement )
: ConditionStatement( condition )
! , iteratedStatement_( iteratedStatement )
{
}
--- 242,246 ----
const StatementPtr &iteratedStatement )
: ConditionStatement( condition )
! , iteratedStatementTracker_( iteratedStatement )
{
}
***************
*** 250,254 ****
IterationStatement::getIteratedStatement() const
{
! return iteratedStatement_;
}
--- 250,254 ----
IterationStatement::getIteratedStatement() const
{
! return iteratedStatementTracker_.getElement();
}
***************
*** 257,261 ****
IterationStatement::setIteratedStatement( const StatementPtr &statement )
{
! iteratedStatement_ = statement;
}
--- 257,261 ----
IterationStatement::setIteratedStatement( const StatementPtr &statement )
{
! iteratedStatementTracker_.setElement( statement );
}
***************
*** 352,356 ****
const CompoundStatementPtr &statements )
: ConditionStatement( condition )
! , statements_( statements )
{
}
--- 352,356 ----
const CompoundStatementPtr &statements )
: ConditionStatement( condition )
! , statementsTracker_( statements )
{
}
***************
*** 360,364 ****
SwitchStatement::getStatements() const
{
! return statements_;
}
--- 360,364 ----
SwitchStatement::getStatements() const
{
! return statementsTracker_.getElement();
}
***************
*** 367,371 ****
SwitchStatement::setStatement( const CompoundStatementPtr &statements )
{
! statements_ = statements;
}
--- 367,371 ----
SwitchStatement::setStatement( const CompoundStatementPtr &statements )
{
! statementsTracker_.setElement( statements );
}
***************
*** 380,384 ****
LabelHolderStatement::LabelHolderStatement( const std::string &labelName )
! : labelName_( labelName )
{
}
--- 380,384 ----
LabelHolderStatement::LabelHolderStatement( const std::string &labelName )
! : labelNameTracker_( labelName )
{
}
***************
*** 388,392 ****
LabelHolderStatement::getLabelName() const
{
! return labelName_;
}
--- 388,392 ----
LabelHolderStatement::getLabelName() const
{
! return labelNameTracker_.getElement();
}
***************
*** 395,399 ****
LabelHolderStatement::setLabelName( const std::string &labelName )
{
! labelName_ = labelName;
}
--- 395,399 ----
LabelHolderStatement::setLabelName( const std::string &labelName )
{
! labelNameTracker_.setElement( labelName );
}
***************
*** 436,440 ****
CaseStatement::CaseStatement( const ExpressionPtr &conditionValue )
! : conditionValue_( conditionValue )
{
}
--- 436,440 ----
CaseStatement::CaseStatement( const ExpressionPtr &conditionValue )
! : conditionValueTracker_( conditionValue )
{
}
***************
*** 444,448 ****
CaseStatement::getConditionValue() const
{
! return conditionValue_;
}
--- 444,448 ----
CaseStatement::getConditionValue() const
{
! return conditionValueTracker_.getElement();
}
***************
*** 451,455 ****
CaseStatement::setConditionValue( const ExpressionPtr &conditionValue )
{
! conditionValue_ = conditionValue;
}
--- 451,455 ----
CaseStatement::setConditionValue( const ExpressionPtr &conditionValue )
{
! conditionValueTracker_.setElement( conditionValue );
}
***************
*** 566,570 ****
ExpressionStatement::ExpressionStatement( const ExpressionPtr &expression )
! : expression_( expression )
{
}
--- 566,570 ----
ExpressionStatement::ExpressionStatement( const ExpressionPtr &expression )
! : expressionTracker_( expression )
{
}
***************
*** 574,578 ****
ExpressionStatement::getExpression() const
{
! return expression_;
}
--- 574,578 ----
ExpressionStatement::getExpression() const
{
! return expressionTracker_.getElement();
}
***************
*** 581,585 ****
ExpressionStatement::setExpression( const ExpressionPtr &expression )
{
! expression_ = expression;
}
--- 581,585 ----
ExpressionStatement::setExpression( const ExpressionPtr &expression )
{
! expressionTracker_.setElement( expression );
}
|