libutap
Public Types | Public Member Functions | Protected Attributes | List of all members
UTAP::BlockStatement Class Reference

#include <statement.h>

Inheritance diagram for UTAP::BlockStatement:
UTAP::Statement UTAP::declarations_t UTAP::CaseStatement UTAP::DefaultStatement UTAP::SwitchStatement

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)
 
Statementpop_stat ()
 
Statementback ()
 
const_iterator begin () const
 
const_iterator end () const
 
iterator begin ()
 
iterator end ()
 
std::string toString (std::string prefix) const
 
- Public Member Functions inherited from UTAP::Statement
virtual ~Statement ()
 
- Public Member Functions inherited from UTAP::declarations_t
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

- Public Attributes inherited from UTAP::declarations_t
frame_t frame
 
std::list< variable_tvariables
 Variables. More...
 
std::list< function_tfunctions
 Functions. More...
 
std::list< progress_tprogress
 Progress measures. More...
 
std::list< iodecl_tiodecl
 
std::list< gantt_tganttChart
 
- Protected Member Functions inherited from UTAP::Statement
 Statement ()
 

Member Typedef Documentation

Constructor & Destructor Documentation

BlockStatement::BlockStatement ( frame_t  frame)

References frame.

BlockStatement::~BlockStatement ( )
virtual

References pop_stat(), and stats.

Member Function Documentation

int32_t BlockStatement::accept ( StatementVisitor visitor)
virtual
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.

frame_t UTAP::BlockStatement::getFrame ( )
inline
Statement * BlockStatement::pop_stat ( )

References back(), and stats.

Referenced by ~BlockStatement().

void BlockStatement::push_stat ( Statement stat)

References stats.

bool BlockStatement::returns ( )
virtual
std::string BlockStatement::toString ( std::string  prefix) const
virtual

Member Data Documentation

frame_t UTAP::BlockStatement::frame
protected

Referenced by BlockStatement(), and getFrame().

std::vector<Statement*> UTAP::BlockStatement::stats
protected

The documentation for this class was generated from the following files: