DCUnit Class Reference

#include <Folder.h>

Inheritance diagram for DCUnit:

Unit List of all members.

Public Member Functions

 DCUnit (const uint32 _id)
const bool fold (Node *n)
void setDebugOffset (const uint32 newDebugOffset)
void setClassName (const std::string &newName)
void registerExternIntrinsic (DCCallNode *i)
void registerExternFunc (DCCallNode *f)
void setJump (IfNode *in)
const std::deque< IfNode * > & IfStack () const

Private Attributes

std::deque< Node * > nodes
std::deque< IfNode * > ifstack
std::deque< IfNode * > elsestack
uint32 debugOffset

Friends

bool print_assert (const Node *n, const DCUnit *u)

Detailed Description

Definition at line 51 of file Folder.h.


Constructor & Destructor Documentation

DCUnit::DCUnit ( const uint32  _id  )  [inline]

Definition at line 54 of file Folder.h.


Member Function Documentation

const bool DCUnit::fold ( Node n  ) 

Definition at line 104 of file Folder.cpp.

References con, elsestack, DCFuncNode::fold(), Unit::functions, IfNode::I_ELSE, IfNode::I_ELSE_IF, IfNode::I_ELSE_IF_ELSE, IfNode::I_IF, IfNode::I_IF_ELSE, IfNode::I_IF_ELSE_IF, ifstack, n, nodes, Console::Print(), Unit::print_asm(), print_assert, Unit::print_extern_unk(), Unit::print_unk(), Console::Printf(), and setJump().

Referenced by Folder::fold().

const std::deque<IfNode *>& DCUnit::IfStack (  )  const [inline]

Definition at line 64 of file Folder.h.

void DCUnit::registerExternFunc ( DCCallNode f  )  [inline]

Definition at line 61 of file Folder.h.

References Unit::externFuncs.

Referenced by DCCallNode::fold().

void DCUnit::registerExternIntrinsic ( DCCallNode i  )  [inline]

Definition at line 60 of file Folder.h.

References Unit::externIntrinsics.

Referenced by DCCallNode::fold().

void DCUnit::setClassName ( const std::string &  newName  )  [inline]

Definition at line 59 of file Folder.h.

References Unit::name.

Referenced by FuncMutatorNode::fold().

void DCUnit::setDebugOffset ( const uint32  newDebugOffset  )  [inline]

Definition at line 58 of file Folder.h.

References debugOffset.

Referenced by FuncMutatorNode::fold().

void DCUnit::setJump ( IfNode in  )  [inline]

Definition at line 63 of file Folder.h.

References ifstack.

Referenced by fold().


Friends And Related Function Documentation

bool print_assert ( const Node n,
const DCUnit u 
) [friend]

Definition at line 321 of file Folder.cpp.

Referenced by fold().


Member Data Documentation

uint32 DCUnit::debugOffset [private]

Definition at line 75 of file Folder.h.

Referenced by setDebugOffset().

std::deque<IfNode *> DCUnit::elsestack [private]

Definition at line 73 of file Folder.h.

Referenced by fold(), and print_assert().

std::deque<IfNode *> DCUnit::ifstack [private]

Definition at line 72 of file Folder.h.

Referenced by fold(), print_assert(), and setJump().

std::deque<Node *> DCUnit::nodes [private]

Definition at line 64 of file Folder.h.

Referenced by fold(), and print_assert().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:29:07 2007 for pentagram by  doxygen 1.4.7