#include <Stmt.h>


Public Member Functions | |
| StmtSequence (Location loc) | |
| template<class Iter > | |
| StmtSequence (Location loc, Iter I, Iter E) | |
| Construct a statement sequence given a pair of Stmt producing iterators.   | |
| void | addStmt (Stmt *stmt) | 
| Adds a single statement to the end of this sequence.   | |
| template<class Iter > | |
| void | addStmts (Iter I, Iter E) | 
| unsigned | numStatements () const | 
| Returns the number of statements contained in this sequence.   | |
| bool | isEmpty () const | 
| Returns true if this statement sequence is empty.   | |
| bool | isHandled () const | 
| unsigned | numHandlers () const | 
| Returns the number of handlers asscociated with this StmtSequence.   | |
| bool | hasCatchAll () const | 
| bool | handles (const ExceptionDecl *exception) const | 
| void | addHandler (HandlerStmt *handler) | 
Static Public Member Functions | |
| static bool | classof (const StmtSequence *node) | 
| Support isa and dyn_cast.   | |
| static bool | classof (const Ast *node) | 
Protected Member Functions | |
| StmtSequence (AstKind kind, Location loc) | |
| 
 | |
| typedef StatementVec::iterator | stmt_iter | 
| Iterators over the statements provided by this StmtSequence.   | |
| typedef  StatementVec::const_iterator  | const_stmt_iter | 
| Iterators over the statements provided by this StmtSequence.   | |
| typedef HandlerVec::iterator | handler_iter | 
| Iterators over the handlers provided by this StmtSequence.   | |
| typedef HandlerVec::const_iterator | const_handler_iter | 
| Iterators over the statements provided by this StmtSequence.   | |
| Stmt * | front () | 
| Returns the first statement in this sequence.   | |
| const Stmt * | front () const | 
| Iterators over the statements provided by this StmtSequence.   | |
| Stmt * | back () | 
| Returns the last statement in this sequence.   | |
| const Stmt * | back () const | 
| Iterators over the statements provided by this StmtSequence.   | |
| stmt_iter | stmt_begin () | 
| Iterators over the statements provided by this StmtSequence.   | |
| stmt_iter | stmt_end () | 
| Iterators over the statements provided by this StmtSequence.   | |
| const_stmt_iter | stmt_begin () const | 
| Iterators over the statements provided by this StmtSequence.   | |
| const_stmt_iter | stmt_end () const | 
| Iterators over the statements provided by this StmtSequence.   | |
| handler_iter | handler_begin () | 
| Iterators over the statements provided by this StmtSequence.   | |
| handler_iter | handler_end () | 
| Iterators over the statements provided by this StmtSequence.   | |
| const_handler_iter | handler_begin () const | 
| Iterators over the statements provided by this StmtSequence.   | |
| const_handler_iter | handler_end () const | 
| Iterators over the statements provided by this StmtSequence.   | |
Definition at line 48 of file Stmt.h.
| typedef HandlerVec::const_iterator comma::StmtSequence::const_handler_iter | 
Iterators over the statements provided by this StmtSequence.
| typedef StatementVec::const_iterator comma::StmtSequence::const_stmt_iter | 
Iterators over the statements provided by this StmtSequence.
| typedef HandlerVec::iterator comma::StmtSequence::handler_iter | 
Iterators over the handlers provided by this StmtSequence.
| typedef StatementVec::iterator comma::StmtSequence::stmt_iter | 
Iterators over the statements provided by this StmtSequence.
| comma::StmtSequence::StmtSequence | ( | Location | loc, | |
| Iter | I, | |||
| Iter | E | |||
| ) |  [inline] | 
        
| void comma::StmtSequence::addHandler | ( | HandlerStmt * | handler | ) |  [inline] | 
        
Adds a handler to this StmtSequence.
If the given handler is a "catch-all" handler, this must be the last handler registered with this sequence.
| void comma::StmtSequence::addStmt | ( | Stmt * | stmt | ) |  [inline] | 
        
| void comma::StmtSequence::addStmts | ( | Iter | I, | |
| Iter | E | |||
| ) |  [inline] | 
        
| const Stmt* comma::StmtSequence::back | ( | ) |  const [inline] | 
        
Iterators over the statements provided by this StmtSequence.
| Stmt* comma::StmtSequence::back | ( | ) |  [inline] | 
        
| static bool comma::StmtSequence::classof | ( | const Ast * | node | ) |  [inline, static] | 
        
Reimplemented from comma::Stmt.
Reimplemented in comma::HandlerStmt, and comma::BlockStmt.
| static bool comma::StmtSequence::classof | ( | const StmtSequence * | node | ) |  [inline, static] | 
        
Support isa and dyn_cast.
Reimplemented from comma::Stmt.
Reimplemented in comma::HandlerStmt, and comma::BlockStmt.
| const Stmt* comma::StmtSequence::front | ( | ) |  const [inline] | 
        
Iterators over the statements provided by this StmtSequence.
| Stmt* comma::StmtSequence::front | ( | ) |  [inline] | 
        
| const_handler_iter comma::StmtSequence::handler_begin | ( | ) |  const [inline] | 
        
Iterators over the statements provided by this StmtSequence.
| handler_iter comma::StmtSequence::handler_begin | ( | ) |  [inline] | 
        
Iterators over the statements provided by this StmtSequence.
| const_handler_iter comma::StmtSequence::handler_end | ( | ) |  const [inline] | 
        
Iterators over the statements provided by this StmtSequence.
| handler_iter comma::StmtSequence::handler_end | ( | ) |  [inline] | 
        
Iterators over the statements provided by this StmtSequence.
| bool StmtSequence::handles | ( | const ExceptionDecl * | exception | ) | const | 
Returns true if the given ExceptionDecl is covered by any of the handlers in this sequence.
Reimplemented in comma::HandlerStmt.
| bool StmtSequence::hasCatchAll | ( | ) | const | 
| bool comma::StmtSequence::isEmpty | ( | ) |  const [inline] | 
        
| bool comma::StmtSequence::isHandled | ( | ) |  const [inline] | 
        
Returns true if there are any exception handlers associated with this StmtSequence.
| unsigned comma::StmtSequence::numHandlers | ( | ) |  const [inline] | 
        
Returns the number of handlers asscociated with this StmtSequence.
| unsigned comma::StmtSequence::numStatements | ( | ) |  const [inline] | 
        
| const_stmt_iter comma::StmtSequence::stmt_begin | ( | ) |  const [inline] | 
        
Iterators over the statements provided by this StmtSequence.
| stmt_iter comma::StmtSequence::stmt_begin | ( | ) |  [inline] | 
        
Iterators over the statements provided by this StmtSequence.
| const_stmt_iter comma::StmtSequence::stmt_end | ( | ) |  const [inline] | 
        
Iterators over the statements provided by this StmtSequence.
| stmt_iter comma::StmtSequence::stmt_end | ( | ) |  [inline] | 
        
Iterators over the statements provided by this StmtSequence.
 1.6.1