Rose2xaif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rose2xaif::DumpAsDot Class Reference

#include <DumpAsDot.hpp>

Public Member Functions

 DumpAsDot ()
 
 ~DumpAsDot ()
 
int doIt (SgNode *topNode, const std::string &fileBaseName)
 
int doIt (const std::string &fileBaseName)
 

Static Private Attributes

static const unsigned short ourMaxNodeCount =2000
 

Detailed Description

Definition at line 7 of file DumpAsDot.hpp.

Constructor & Destructor Documentation

rose2xaif::DumpAsDot::DumpAsDot ( )
inline

Definition at line 9 of file DumpAsDot.hpp.

rose2xaif::DumpAsDot::~DumpAsDot ( )
inline

Definition at line 10 of file DumpAsDot.hpp.

Member Function Documentation

int rose2xaif::DumpAsDot::doIt ( SgNode *  topNode,
const std::string &  fileBaseName 
)
Returns
0 if successful, otherwise the number of nodes exceeding ourMaxNodeCount
Parameters
topNodethe top node in the Rose AST to be dumped
fileBaseNamethe name of the file to be created suffixed with ".dot"

Definition at line 53 of file DumpAsDot.cpp.

References THROW_LOGICEXCEPTION_MACRO.

Referenced by main(), rose2xaif::SgXAIF::parseAndPostProcessXAIF(), and rose2xaif::SgXAIF::unparseAndCreateOutput().

int rose2xaif::DumpAsDot::doIt ( const std::string &  fileBaseName)

dot representation of all nodes in the Rose memory pool

Returns
0 if successful, otherwise the number of nodes exceeding ourMaxNodeCount
Parameters
topNodethe top node in the Rose AST to be dumped
fileBaseNamethe name of the file to be created suffixed with ".dot"

Definition at line 77 of file DumpAsDot.cpp.

References THROW_LOGICEXCEPTION_MACRO.

Member Data Documentation

const unsigned short rose2xaif::DumpAsDot::ourMaxNodeCount =2000
staticprivate

max number of nodes to be handled

Definition at line 28 of file DumpAsDot.hpp.


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