Classes | Public Member Functions | Static Public Attributes | Protected Attributes

OA::XAIF::ChainsXAIF Class Reference

#include <ChainsXAIF.hpp>

Inheritance diagram for OA::XAIF::ChainsXAIF:
Inheritance graph
[legend]
Collaboration diagram for OA::XAIF::ChainsXAIF:
Collaboration graph
[legend]

List of all members.

Classes

class  ChainIterator
class  ChainsIterator

Public Member Functions

 ChainsXAIF ()
 ~ChainsXAIF ()
OA_ptr< ChainsIteratorgetChainsIterator ()
 get an iterator over all chains
OA_ptr< ChainIteratorgetChainIterator (int id)
int makeEmptyChain ()
 create a new chains set and return the id
void addStmt (StmtHandle stmt, int id)
 add a statement into the chain
void addStmtSet (StmtSet &stmtSet, int id)
 add the given stmt set into the chain
int findChain (StmtSet &stmtSet)
void dump (std::ostream &os, OA_ptr< IRHandlesIRInterface > ir)

Static Public Attributes

static const int CHAIN_ID_NONE = -1

Protected Attributes

OA_ptr< std::map< int, OA_ptr
< StmtSet > > > 
mIdToStmtSetMap

Detailed Description

Definition at line 40 of file ChainsXAIF.hpp.


Constructor & Destructor Documentation

OA::XAIF::ChainsXAIF::ChainsXAIF (  ) 

Definition at line 20 of file ChainsXAIF.cpp.

References addStmt(), addStmtSet(), and mIdToStmtSetMap.

Here is the call graph for this function:

OA::XAIF::ChainsXAIF::~ChainsXAIF (  )  [inline]

Definition at line 45 of file ChainsXAIF.hpp.


Member Function Documentation

void OA::XAIF::ChainsXAIF::addStmt ( StmtHandle  stmt,
int  id 
)

add a statement into the chain

Definition at line 53 of file ChainsXAIF.cpp.

References mIdToStmtSetMap.

Referenced by ChainsXAIF().

void OA::XAIF::ChainsXAIF::addStmtSet ( StmtSet stmtSet,
int  id 
)

add the given stmt set into the chain

Definition at line 60 of file ChainsXAIF.cpp.

References mIdToStmtSetMap.

Referenced by ChainsXAIF().

void OA::XAIF::ChainsXAIF::dump ( std::ostream &  os,
OA_ptr< IRHandlesIRInterface ir 
)

Reimplemented in OA::XAIF::UDDUChainsXAIF.

Definition at line 82 of file ChainsXAIF.cpp.

References getChainsIterator().

Here is the call graph for this function:

int OA::XAIF::ChainsXAIF::findChain ( StmtSet stmtSet  ) 

return id that has identical chain of Stmts in it, else return CHAIN_ID_NONE

Definition at line 71 of file ChainsXAIF.cpp.

References CHAIN_ID_NONE, getChainsIterator(), and mIdToStmtSetMap.

Here is the call graph for this function:

OA_ptr< ChainsXAIF::ChainIterator > OA::XAIF::ChainsXAIF::getChainIterator ( int  id  ) 

for a particular id, get an iterator over the statements involved in that chain

Definition at line 31 of file ChainsXAIF.cpp.

References mIdToStmtSetMap.

OA_ptr< ChainsXAIF::ChainsIterator > OA::XAIF::ChainsXAIF::getChainsIterator (  ) 

get an iterator over all chains

Definition at line 47 of file ChainsXAIF.cpp.

References mIdToStmtSetMap.

Referenced by dump(), and findChain().

int OA::XAIF::ChainsXAIF::makeEmptyChain (  ) 

create a new chains set and return the id


Member Data Documentation

const int OA::XAIF::ChainsXAIF::CHAIN_ID_NONE = -1 [static]

Definition at line 47 of file ChainsXAIF.hpp.

Referenced by findChain().


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