#include <Type.h>
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 Type & | type () const |
| const datatype & | dtype () 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 |
Definition at line 78 of file Type.h.
| enum DataType::datatype |
| DataType::DataType | ( | const Type::ttype & | newVType, | |
| const datatype | newDType, | |||
| const std::string & | newStrValue | |||
| ) | [inline] |
| DataType::DataType | ( | const Type::ttype & | newVType, | |
| const datatype | newDType, | |||
| const uint32 | var, | |||
| const uint32 | varIndex | |||
| ) | [inline] |
| 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().
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().
1.4.7