DataType Class Reference

#include <Type.h>

List of all members.

Public Types

 DT_NULL
 DT_BYTES
 DT_BP
 DT_BPLIST
 DT_BPADDR
 DT_BPSTRPTR
 DT_SP
 DT_SPADDR
 DT_STRING
 DT_PID
 DT_PRESULT
 DT_RESULT
 DT_GLOBAL
 DT_TEMP
enum  datatype {
  DT_NULL, DT_BYTES, DT_BP, DT_BPLIST,
  DT_BPADDR, DT_BPSTRPTR, DT_SP, DT_SPADDR,
  DT_STRING, DT_PID, DT_PRESULT, DT_RESULT,
  DT_GLOBAL, DT_TEMP
}

Public Member Functions

 DataType (const Type &newVType=Type::T_VOID, const datatype newDType=DT_NULL, const sint32 newValue=0)
 DataType (const Type::ttype &newVType, const datatype newDType, const std::string &newStrValue)
 DataType (const Type::ttype &newVType, const datatype newDType, const uint32 var, const uint32 varIndex)
const Typetype () const
const datatypedtype () const
sint32 value () const
void print_type_unk (Console &o) const
void print_value_unk (Console &o) const
void print_value_asm (Console &o) const
void print_value_bin (ODequeDataSource &o) const

Private Attributes

Type _vtype
datatype _dtype
sint32 _value
std::string _strvalue
uint32 _valueIndex


Detailed Description

Definition at line 78 of file Type.h.


Member Enumeration Documentation

enum DataType::datatype

Enumerator:
DT_NULL 
DT_BYTES 
DT_BP 
DT_BPLIST 
DT_BPADDR 
DT_BPSTRPTR 
DT_SP 
DT_SPADDR 
DT_STRING 
DT_PID 
DT_PRESULT 
DT_RESULT 
DT_GLOBAL 
DT_TEMP 

Definition at line 81 of file Type.h.


Constructor & Destructor Documentation

DataType::DataType ( const Type newVType = Type::T_VOID,
const datatype  newDType = DT_NULL,
const sint32  newValue = 0 
) [inline]

Definition at line 84 of file Type.h.

DataType::DataType ( const Type::ttype newVType,
const datatype  newDType,
const std::string &  newStrValue 
) [inline]

Definition at line 86 of file Type.h.

DataType::DataType ( const Type::ttype newVType,
const datatype  newDType,
const uint32  var,
const uint32  varIndex 
) [inline]

Definition at line 88 of file Type.h.


Member Function Documentation

const datatype& DataType::dtype (  )  const [inline]

Definition at line 92 of file Type.h.

References _dtype.

Referenced by PushVarNode::print_asm(), PopVarNode::print_asm(), PushVarNode::print_bin(), and PopVarNode::print_bin().

void DataType::print_type_unk ( Console o  )  const [inline]

Definition at line 95 of file Type.h.

References _vtype, and Type::print_unk().

Referenced by PushVarNode::print_unk(), and PopVarNode::print_unk().

void DataType::print_value_asm ( Console o  )  const

Definition at line 78 of file Type.cpp.

References _dtype, _strvalue, _value, _valueIndex, _vtype, DT_BP, DT_BPADDR, DT_BYTES, DT_GLOBAL, DT_PID, DT_STRING, DT_TEMP, suc::print_bp(), Console::Printf(), Type::T_BYTE, Type::T_DWORD, Type::T_STRING, Type::T_WORD, and Type::type().

Referenced by PushVarNode::print_asm(), and PopVarNode::print_asm().

void DataType::print_value_bin ( ODequeDataSource o  )  const

Definition at line 130 of file Type.cpp.

References _dtype, _strvalue, _value, _valueIndex, _vtype, DT_BP, DT_BPADDR, DT_BYTES, DT_GLOBAL, DT_PID, DT_STRING, DT_TEMP, Type::T_BYTE, Type::T_DWORD, Type::T_STRING, Type::T_WORD, Type::type(), ODequeDataSource::write1(), ODequeDataSource::write2(), and ODequeDataSource::write4().

Referenced by PushVarNode::print_bin(), and PopVarNode::print_bin().

void DataType::print_value_unk ( Console o  )  const

Definition at line 47 of file Type.cpp.

References _dtype, _strvalue, _value, _valueIndex, _vtype, DT_BP, DT_BPADDR, DT_BYTES, DT_GLOBAL, DT_NULL, DT_PID, DT_STRING, DT_TEMP, suc::print_bp(), Console::Printf(), Type::T_BYTE, Type::T_DWORD, Type::T_WORD, and Type::type().

Referenced by PushVarNode::print_unk(), and PopVarNode::print_unk().

const Type& DataType::type (  )  const [inline]

Definition at line 91 of file Type.h.

References _vtype.

Referenced by PopVarNode::PopVarNode(), PushVarNode::print_asm(), PopVarNode::print_asm(), PushVarNode::print_bin(), PopVarNode::print_bin(), and PushVarNode::PushVarNode().

sint32 DataType::value (  )  const [inline]

Definition at line 93 of file Type.h.

References _value.


Member Data Documentation

datatype DataType::_dtype [private]

Definition at line 102 of file Type.h.

Referenced by dtype(), print_value_asm(), print_value_bin(), and print_value_unk().

std::string DataType::_strvalue [private]

Definition at line 104 of file Type.h.

Referenced by print_value_asm(), print_value_bin(), and print_value_unk().

sint32 DataType::_value [private]

Definition at line 103 of file Type.h.

Referenced by print_value_asm(), print_value_bin(), print_value_unk(), and value().

uint32 DataType::_valueIndex [private]

Definition at line 105 of file Type.h.

Referenced by print_value_asm(), print_value_bin(), and print_value_unk().

Type DataType::_vtype [private]

Definition at line 101 of file Type.h.

Referenced by print_type_unk(), print_value_asm(), print_value_bin(), print_value_unk(), and type().


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