Public Member Functions | Private Attributes

OA::CFG::NodeStatementsIterator Class Reference

#include <CFG.hpp>

Inheritance diagram for OA::CFG::NodeStatementsIterator:
Inheritance graph
[legend]
Collaboration diagram for OA::CFG::NodeStatementsIterator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 NodeStatementsIterator (const Node &node)
 ~NodeStatementsIterator ()
void operator++ ()
void operator++ (int)
bool isValid () const
 returns true if we are not past the end of the list
StmtHandle current () const
 returns the statement handle that the iterator is currently pointing
void reset ()

Private Attributes

OA_ptr< std::list< StmtHandle > > mList
std::list< StmtHandle >::iterator mIter

Detailed Description

An iterator for the statements in a node.

Definition at line 546 of file CFG.hpp.


Constructor & Destructor Documentation

OA::CFG::NodeStatementsIterator::NodeStatementsIterator ( const Node node  )  [inline]

Definition at line 549 of file CFG.hpp.

References mIter, mList, and OA::CFG::Node::mStmt_list.

OA::CFG::NodeStatementsIterator::~NodeStatementsIterator (  )  [inline]

Definition at line 553 of file CFG.hpp.


Member Function Documentation

StmtHandle OA::CFG::NodeStatementsIterator::current (  )  const [virtual]

returns the statement handle that the iterator is currently pointing

Implements OA::StmtHandleIterator.

Definition at line 599 of file CFG.cpp.

References mIter.

Referenced by OA::CFG::ManagerCFGStandard::createBasicCFG(), and OA::CFG::Node::output().

bool OA::CFG::NodeStatementsIterator::isValid (  )  const [virtual]

returns true if we are not past the end of the list

Implements OA::StmtHandleIterator.

Definition at line 593 of file CFG.cpp.

References mIter, and mList.

Referenced by OA::CFG::ManagerCFGStandard::createBasicCFG(), and OA::CFG::Node::output().

void OA::CFG::NodeStatementsIterator::operator++ ( int   ) 

Reimplemented from OA::StmtHandleIterator.

Definition at line 587 of file CFG.cpp.

void OA::CFG::NodeStatementsIterator::operator++ (  )  [virtual]

Implements OA::StmtHandleIterator.

Definition at line 579 of file CFG.cpp.

void OA::CFG::NodeStatementsIterator::reset (  )  [virtual]

Implements OA::StmtHandleIterator.

Definition at line 604 of file CFG.cpp.


Member Data Documentation

std::list<StmtHandle>::iterator OA::CFG::NodeStatementsIterator::mIter [private]

Definition at line 563 of file CFG.hpp.

Referenced by current(), isValid(), and NodeStatementsIterator().

Definition at line 562 of file CFG.hpp.

Referenced by isValid(), and NodeStatementsIterator().


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