libTriton version 1.0 build 1592
|
This class is used as operand wrapper. More...
#include <operandWrapper.hpp>
Public Member Functions | |
TRITON_EXPORT | OperandWrapper (const triton::arch::Immediate &imm) |
Immediate constructor. | |
TRITON_EXPORT | OperandWrapper (const triton::arch::MemoryAccess &mem) |
Memory constructor. | |
TRITON_EXPORT | OperandWrapper (const triton::arch::Register ®) |
Register constructor. | |
TRITON_EXPORT | OperandWrapper (const OperandWrapper &other) |
Constructor by copy. | |
TRITON_EXPORT triton::arch::operand_e | getType (void) const |
Returns the abstract type of the operand. | |
TRITON_EXPORT triton::arch::Immediate & | getImmediate (void) |
Returns the immediate operand. | |
TRITON_EXPORT triton::arch::MemoryAccess & | getMemory (void) |
Returns the memory operand. | |
TRITON_EXPORT triton::arch::Register & | getRegister (void) |
Returns the register operand. | |
TRITON_EXPORT const triton::arch::Immediate & | getConstImmediate (void) const |
Returns the immediate operand. | |
TRITON_EXPORT const triton::arch::MemoryAccess & | getConstMemory (void) const |
Returns the memory operand as const. | |
TRITON_EXPORT const triton::arch::Register & | getConstRegister (void) const |
Returns the register operand. | |
TRITON_EXPORT void | setImmediate (const triton::arch::Immediate &imm) |
Sets the immediate operand. | |
TRITON_EXPORT void | setMemory (const triton::arch::MemoryAccess &mem) |
Sets the memory operand. | |
TRITON_EXPORT void | setRegister (const triton::arch::Register ®) |
Sets the register operand. | |
TRITON_EXPORT triton::uint32 | getSize (void) const |
Returns the abstract size (in bytes) of the operand. | |
TRITON_EXPORT triton::uint32 | getBitSize (void) const |
Returns the abstract size (in bits) of the operand. | |
TRITON_EXPORT triton::uint32 | getHigh (void) const |
Returns the highest bit position of the abstract operand. | |
TRITON_EXPORT triton::uint32 | getLow (void) const |
Returns the lower bit position of the abstract operand. | |
TRITON_EXPORT OperandWrapper & | operator= (const OperandWrapper &other) |
Copies a OperandWrapper. | |
TRITON_EXPORT bool | operator== (const OperandWrapper &other) const |
Tests two OperandWrappers for equality. | |
TRITON_EXPORT bool | operator!= (const OperandWrapper &other) const |
Tests two OperandWrappers for not equality. | |
TRITON_EXPORT bool | operator< (const OperandWrapper &other) const |
Compares two OperandWrappers for ordering. | |
This class is used as operand wrapper.
Definition at line 38 of file operandWrapper.hpp.
triton::arch::OperandWrapper::OperandWrapper | ( | const triton::arch::Immediate & | imm | ) |
Immediate constructor.
Definition at line 16 of file operandWrapper.cpp.
triton::arch::OperandWrapper::OperandWrapper | ( | const triton::arch::MemoryAccess & | mem | ) |
Memory constructor.
Definition at line 22 of file operandWrapper.cpp.
triton::arch::OperandWrapper::OperandWrapper | ( | const triton::arch::Register & | reg | ) |
Register constructor.
Definition at line 28 of file operandWrapper.cpp.
triton::arch::OperandWrapper::OperandWrapper | ( | const OperandWrapper & | other | ) |
Constructor by copy.
Definition at line 34 of file operandWrapper.cpp.
triton::uint32 triton::arch::OperandWrapper::getBitSize | ( | void | ) | const |
Returns the abstract size (in bits) of the operand.
Definition at line 104 of file operandWrapper.cpp.
const triton::arch::Immediate & triton::arch::OperandWrapper::getConstImmediate | ( | void | ) | const |
Returns the immediate operand.
Definition at line 62 of file operandWrapper.cpp.
const triton::arch::MemoryAccess & triton::arch::OperandWrapper::getConstMemory | ( | void | ) | const |
Returns the memory operand as const.
Definition at line 67 of file operandWrapper.cpp.
const triton::arch::Register & triton::arch::OperandWrapper::getConstRegister | ( | void | ) | const |
Returns the register operand.
Definition at line 72 of file operandWrapper.cpp.
triton::uint32 triton::arch::OperandWrapper::getHigh | ( | void | ) | const |
Returns the highest bit position of the abstract operand.
Definition at line 116 of file operandWrapper.cpp.
triton::arch::Immediate & triton::arch::OperandWrapper::getImmediate | ( | void | ) |
Returns the immediate operand.
Definition at line 47 of file operandWrapper.cpp.
triton::uint32 triton::arch::OperandWrapper::getLow | ( | void | ) | const |
Returns the lower bit position of the abstract operand.
Definition at line 128 of file operandWrapper.cpp.
triton::arch::MemoryAccess & triton::arch::OperandWrapper::getMemory | ( | void | ) |
Returns the memory operand.
Definition at line 52 of file operandWrapper.cpp.
triton::arch::Register & triton::arch::OperandWrapper::getRegister | ( | void | ) |
Returns the register operand.
Definition at line 57 of file operandWrapper.cpp.
triton::uint32 triton::arch::OperandWrapper::getSize | ( | void | ) | const |
Returns the abstract size (in bytes) of the operand.
Definition at line 92 of file operandWrapper.cpp.
triton::arch::operand_e triton::arch::OperandWrapper::getType | ( | void | ) | const |
Returns the abstract type of the operand.
Definition at line 42 of file operandWrapper.cpp.
bool triton::arch::OperandWrapper::operator!= | ( | const OperandWrapper & | other | ) | const |
Tests two OperandWrappers for not equality.
Definition at line 163 of file operandWrapper.cpp.
bool triton::arch::OperandWrapper::operator< | ( | const OperandWrapper & | other | ) | const |
Compares two OperandWrappers for ordering.
Definition at line 168 of file operandWrapper.cpp.
OperandWrapper & triton::arch::OperandWrapper::operator= | ( | const OperandWrapper & | other | ) |
Copies a OperandWrapper.
Definition at line 140 of file operandWrapper.cpp.
bool triton::arch::OperandWrapper::operator== | ( | const OperandWrapper & | other | ) | const |
Tests two OperandWrappers for equality.
Definition at line 149 of file operandWrapper.cpp.
void triton::arch::OperandWrapper::setImmediate | ( | const triton::arch::Immediate & | imm | ) |
Sets the immediate operand.
Definition at line 77 of file operandWrapper.cpp.
void triton::arch::OperandWrapper::setMemory | ( | const triton::arch::MemoryAccess & | mem | ) |
Sets the memory operand.
Definition at line 82 of file operandWrapper.cpp.
void triton::arch::OperandWrapper::setRegister | ( | const triton::arch::Register & | reg | ) |
Sets the register operand.
Definition at line 87 of file operandWrapper.cpp.