libutap
|
#include <statement.h>
Public Types | |
typedef std::vector< Statement * > ::const_iterator | const_iterator |
typedef std::vector< Statement * > ::iterator | iterator |
Public Member Functions | |
BlockStatement (frame_t) | |
virtual | ~BlockStatement () |
virtual int32_t | accept (StatementVisitor *visitor) |
virtual bool | returns () |
frame_t | getFrame () |
void | push_stat (Statement *stat) |
Statement * | pop_stat () |
Statement * | back () |
const_iterator | begin () const |
const_iterator | end () const |
iterator | begin () |
iterator | end () |
std::string | toString (std::string prefix) const |
![]() | |
virtual | ~Statement () |
![]() | |
bool | addFunction (type_t type, std::string, function_t *&) |
Add function declaration. More... | |
std::string | toString (bool global=false) const |
The following methods are used to write the declarations in an XML file. More... | |
std::string | getConstants () const |
std::string | getTypeDefinitions () const |
std::string | getVariables (bool global) const |
std::string | getFunctions () const |
Protected Attributes | |
std::vector< Statement * > | stats |
frame_t | frame |
Additional Inherited Members | |
![]() | |
frame_t | frame |
std::list< variable_t > | variables |
Variables. More... | |
std::list< function_t > | functions |
Functions. More... | |
std::list< progress_t > | progress |
Progress measures. More... | |
std::list< iodecl_t > | iodecl |
std::list< gantt_t > | ganttChart |
![]() | |
Statement () | |
typedef std::vector<Statement *>::const_iterator UTAP::BlockStatement::const_iterator |
typedef std::vector<Statement *>::iterator UTAP::BlockStatement::iterator |
|
virtual |
References pop_stat(), and stats.
|
virtual |
Implements UTAP::Statement.
Reimplemented in UTAP::DefaultStatement, UTAP::CaseStatement, and UTAP::SwitchStatement.
References UTAP::StatementVisitor::visitBlockStatement().
Referenced by UTAP::SignalFlow::visitExpression(), and UTAP::TypeChecker::visitFunction().
Statement * BlockStatement::back | ( | ) |
References stats.
Referenced by pop_stat(), and returns().
BlockStatement::const_iterator BlockStatement::begin | ( | ) | const |
BlockStatement::iterator BlockStatement::begin | ( | ) |
References stats.
BlockStatement::const_iterator BlockStatement::end | ( | ) | const |
BlockStatement::iterator BlockStatement::end | ( | ) |
References stats.
|
inline |
Statement * BlockStatement::pop_stat | ( | ) |
Referenced by ~BlockStatement().
|
virtual |
Implements UTAP::Statement.
Reimplemented in UTAP::DefaultStatement, UTAP::CaseStatement, and UTAP::SwitchStatement.
References back(), begin(), end(), and UTAP::Statement::returns().
|
virtual |
Implements UTAP::Statement.
Reimplemented in UTAP::CaseStatement, and UTAP::SwitchStatement.
References stats.
Referenced by UTAP::SwitchStatement::toString(), and UTAP::CaseStatement::toString().
|
protected |
Referenced by BlockStatement(), and getFrame().
|
protected |
Referenced by back(), begin(), end(), pop_stat(), push_stat(), toString(), and ~BlockStatement().