EndNode Class Reference

#include <IfNode.h>

Inheritance diagram for EndNode:

Node PrintHelperNode List of all members.

Public Member Functions

 EndNode (const uint32 opcode, const uint32 offset, const uint32 newTargetOffset)
 ~EndNode ()
void print_unk (Console &o, const uint32 isize) const
void print_asm (Console &o) const
void print_bin (ODequeDataSource &o) const
bool fold (DCUnit *unit, std::deque< Node * > &nodes)
uint32 TargetOffset () const

Protected Types

 JMP
enum  endtype { JMP }

Protected Attributes

enum EndNode::endtype etype

Private Attributes

uint32 targetOffset

Detailed Description

Definition at line 28 of file IfNode.h.


Member Enumeration Documentation

enum EndNode::endtype [protected]

Enumerator:
JMP 

Definition at line 51 of file IfNode.h.


Constructor & Destructor Documentation

EndNode::EndNode ( const uint32  opcode,
const uint32  offset,
const uint32  newTargetOffset 
) [inline]

Definition at line 31 of file IfNode.h.

References acceptOp(), etype, and JMP.

EndNode::~EndNode (  )  [inline]

Definition at line 41 of file IfNode.h.


Member Function Documentation

bool EndNode::fold ( DCUnit unit,
std::deque< Node * > &  nodes 
) [virtual]

Implements Node.

Definition at line 350 of file IfNode.cpp.

References Node::fold_linenum().

void EndNode::print_asm ( Console o  )  const [virtual]

Reimplemented from Node.

Definition at line 322 of file IfNode.cpp.

References Node::_offset, etype, JMP, Node::print_asm(), Node::print_linenum_asm(), Node::rtype(), Type::T_INVALID, and targetOffset.

Referenced by IfNode::print_asm().

void EndNode::print_bin ( ODequeDataSource o  )  const [virtual]

Implements Node.

Definition at line 336 of file IfNode.cpp.

References Node::_offset, etype, JMP, Node::print_linenum_bin(), Node::rtype(), Type::T_INVALID, targetOffset, ODequeDataSource::write1(), and ODequeDataSource::write2().

Referenced by IfNode::print_bin().

void EndNode::print_unk ( Console o,
const uint32  isize 
) const [virtual]

Implements Node.

Definition at line 309 of file IfNode.cpp.

References etype, JMP, Node::print_linenum_unk(), Console::Printf(), Node::rtype(), Type::T_INVALID, and targetOffset.

Referenced by IfNode::print_unk().

uint32 EndNode::TargetOffset (  )  const [inline]

Definition at line 48 of file IfNode.h.

References targetOffset.

Referenced by IfNode::TargetOffset().


Member Data Documentation

enum EndNode::endtype EndNode::etype [protected]

Referenced by EndNode(), print_asm(), print_bin(), and print_unk().

uint32 EndNode::targetOffset [private]

Definition at line 54 of file IfNode.h.

Referenced by print_asm(), print_bin(), print_unk(), and TargetOffset().


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