UniOperatorNode Class Reference

#include <OperatorNodes.h>

Inheritance diagram for UniOperatorNode:

UniNode Node PrintHelperNode List of all members.

Public Member Functions

 UniOperatorNode (const uint32 opcode, const uint32 offset)
 ~UniOperatorNode ()
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)

Protected Types

 NOT
 STR_TO_PTR
enum  optype { NOT, STR_TO_PTR }

Protected Attributes

enum UniOperatorNode::optype otype

Detailed Description

Definition at line 124 of file OperatorNodes.h.


Member Enumeration Documentation

enum UniOperatorNode::optype [protected]

Enumerator:
NOT 
STR_TO_PTR 

Definition at line 146 of file OperatorNodes.h.


Constructor & Destructor Documentation

UniOperatorNode::UniOperatorNode ( const uint32  opcode,
const uint32  offset 
) [inline]

Definition at line 127 of file OperatorNodes.h.

References acceptOp(), NOT, otype, Node::rtype(), STR_TO_PTR, Type::T_STRPTR, and Type::T_WORD.

UniOperatorNode::~UniOperatorNode (  )  [inline]

Definition at line 138 of file OperatorNodes.h.


Member Function Documentation

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

Implements Node.

Definition at line 323 of file OperatorNodes.cpp.

References acceptType(), UniNode::grab_n(), NOT, otype, STR_TO_PTR, Type::T_BYTE, Type::T_STRING, and Type::T_WORD.

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

Reimplemented from Node.

Definition at line 281 of file OperatorNodes.cpp.

References UniNode::node, NOT, otype, Node::print_asm(), Console::Printf(), Console::Putchar(), Node::rtype(), STR_TO_PTR, and Type::T_INVALID.

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

Implements Node.

Definition at line 304 of file OperatorNodes.cpp.

References UniNode::node, NOT, otype, Node::print_bin(), Node::rtype(), STR_TO_PTR, Type::T_INVALID, and ODequeDataSource::write1().

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

Implements Node.

Definition at line 261 of file OperatorNodes.cpp.

References UniNode::node, NOT, otype, Node::print_unk(), Console::Printf(), Console::Putchar(), Node::rtype(), STR_TO_PTR, and Type::T_INVALID.


Member Data Documentation

enum UniOperatorNode::optype UniOperatorNode::otype [protected]

Referenced by fold(), print_asm(), print_bin(), print_unk(), and UniOperatorNode().


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