Cluster Class Reference

#include <include/cluster.h>

Inheritance diagram for Cluster:

Class Module List of all members.

Detailed Description

Definition at line 37 of file cluster.h.

Public Member Functions

void addChild (Cluster *n)
void closeStreams ()
 Cluster (const char *name)
 Cluster ()
Clusterfind (const char *nam)
ClustergetChild (int n)
const char * getName ()
unsigned int getNumChildren ()
const char * getOutPath (const char *ext)
ClustergetParent ()
std::ofstream & getStream ()
bool hasChildren ()
virtual bool isAggregate ()
const char * makeDirs ()
void openStream (const char *ext)
void openStreams (const char *ext)
void printTree (std::ostream &out)
 Prints a tree graph.
void removeChild (Cluster *n)
void setName (const char *nam)
virtual ~Cluster ()

Protected Attributes

std::vector< Cluster * > children
std::string name
std::ofstream out
Clusterparent
std::string stream_ext

Friends

class XMLProgParser


Constructor & Destructor Documentation

Cluster::Cluster  )  [inline]
 

Definition at line 47 of file cluster.h.

Cluster::Cluster const char *  name  )  [inline]
 

Definition at line 48 of file cluster.h.

virtual Cluster::~Cluster  )  [inline, virtual]
 

Definition at line 49 of file cluster.h.


Member Function Documentation

void Cluster::addChild Cluster n  ) 
 

Definition at line 339 of file prog.cpp.

References children, parent, and removeChild().

Referenced by Prog::getDefaultCluster(), and Boomerang::objcDecode().

void Cluster::closeStreams  ) 
 

Definition at line 386 of file prog.cpp.

References out.

Referenced by Prog::generateCode().

Cluster * Cluster::find const char *  nam  ) 
 

Definition at line 347 of file prog.cpp.

References children, and name.

Referenced by Prog::findCluster().

Cluster* Cluster::getChild int  n  )  [inline]
 

Definition at line 53 of file cluster.h.

References children.

Referenced by Decompiler::emitClusterAndChildren().

const char* Cluster::getName  )  [inline]
 

Definition at line 50 of file cluster.h.

References name.

Referenced by Decompiler::emitClusterAndChildren(), and UserProc::print().

unsigned int Cluster::getNumChildren  )  [inline]
 

Definition at line 52 of file cluster.h.

References children.

Referenced by Decompiler::emitClusterAndChildren(), and makeDirs().

const char * Cluster::getOutPath const char *  ext  ) 
 

Definition at line 359 of file prog.cpp.

References makeDirs(), and name.

Referenced by Prog::generateCode(), Decompiler::getClusterFile(), and openStream().

Cluster* Cluster::getParent  )  [inline]
 

Definition at line 56 of file cluster.h.

References parent.

std::ofstream& Cluster::getStream  )  [inline]
 

Definition at line 61 of file cluster.h.

References out.

Referenced by Prog::generateRTL(), and XMLProgParser::persistToXML().

bool Cluster::hasChildren  )  [inline]
 

Definition at line 57 of file cluster.h.

References children.

virtual bool Cluster::isAggregate  )  [inline, virtual]
 

Reimplemented in Class.

Definition at line 65 of file cluster.h.

const char * Cluster::makeDirs  ) 
 

Definition at line 311 of file prog.cpp.

References Boomerang::get(), getNumChildren(), Boomerang::getOutputPath(), makeDirs(), name, NULL, and parent.

Referenced by Prog::generateCode(), getOutPath(), makeDirs(), and XMLProgParser::parseChildren().

void Cluster::openStream const char *  ext  ) 
 

Definition at line 366 of file prog.cpp.

References getOutPath(), NULL, out, parent, and stream_ext.

Referenced by Prog::generateCode(), Prog::generateRTL(), and openStreams().

void Cluster::openStreams const char *  ext  ) 
 

Definition at line 379 of file prog.cpp.

References children, and openStream().

Referenced by XMLProgParser::persistToXML().

void Cluster::printTree std::ostream &  out  ) 
 

Prints a tree graph.

Definition at line 255 of file boomerang.cpp.

References children, and name.

void Cluster::removeChild Cluster n  ) 
 

Definition at line 329 of file prog.cpp.

References children.

Referenced by addChild().

void Cluster::setName const char *  nam  )  [inline]
 

Definition at line 51 of file cluster.h.

References name.

Referenced by Prog::setName().


Friends And Related Function Documentation

friend class XMLProgParser [friend]
 

Definition at line 70 of file cluster.h.


Member Data Documentation

std::vector<Cluster*> Cluster::children [protected]
 

Definition at line 41 of file cluster.h.

Referenced by addChild(), find(), getChild(), getNumChildren(), hasChildren(), openStreams(), XMLProgParser::parseChildren(), XMLProgParser::persistToXML(), printTree(), and removeChild().

std::string Cluster::name [protected]
 

Definition at line 40 of file cluster.h.

Referenced by find(), getName(), getOutPath(), makeDirs(), XMLProgParser::persistToXML(), printTree(), and setName().

std::ofstream Cluster::out [protected]
 

Definition at line 43 of file cluster.h.

Referenced by closeStreams(), getStream(), and openStream().

Cluster* Cluster::parent [protected]
 

Definition at line 42 of file cluster.h.

Referenced by addChild(), getParent(), makeDirs(), and openStream().

std::string Cluster::stream_ext [protected]
 

Definition at line 44 of file cluster.h.

Referenced by openStream().


The documentation for this class was generated from the following files:
Generated on Tue Sep 19 21:18:41 2006 for Boomerang by  doxygen 1.4.6