libTriton  version 1.0 build 1532
Public Member Functions | List of all members
triton::arch::OperandWrapper Interface Reference

This class is used as operand wrapper. More...

#include <operandWrapper.hpp>

Public Member Functions

TRITON_EXPORT OperandWrapper (const triton::arch::Immediate &imm)
 Immediate constructor. More...
 
TRITON_EXPORT OperandWrapper (const triton::arch::MemoryAccess &mem)
 Memory constructor. More...
 
TRITON_EXPORT OperandWrapper (const triton::arch::Register &reg)
 Register constructor. More...
 
TRITON_EXPORT OperandWrapper (const OperandWrapper &other)
 Constructor by copy. More...
 
TRITON_EXPORT triton::arch::operand_e getType (void) const
 Returns the abstract type of the operand. More...
 
TRITON_EXPORT triton::arch::ImmediategetImmediate (void)
 Returns the immediate operand. More...
 
TRITON_EXPORT triton::arch::MemoryAccessgetMemory (void)
 Returns the memory operand. More...
 
TRITON_EXPORT triton::arch::RegistergetRegister (void)
 Returns the register operand. More...
 
TRITON_EXPORT const triton::arch::ImmediategetConstImmediate (void) const
 Returns the immediate operand. More...
 
TRITON_EXPORT const triton::arch::MemoryAccessgetConstMemory (void) const
 Returns the memory operand as const. More...
 
TRITON_EXPORT const triton::arch::RegistergetConstRegister (void) const
 Returns the register operand. More...
 
TRITON_EXPORT void setImmediate (const triton::arch::Immediate &imm)
 Sets the immediate operand. More...
 
TRITON_EXPORT void setMemory (const triton::arch::MemoryAccess &mem)
 Sets the memory operand. More...
 
TRITON_EXPORT void setRegister (const triton::arch::Register &reg)
 Sets the register operand. More...
 
TRITON_EXPORT triton::uint32 getSize (void) const
 Returns the abstract size (in bytes) of the operand. More...
 
TRITON_EXPORT triton::uint32 getBitSize (void) const
 Returns the abstract size (in bits) of the operand. More...
 
TRITON_EXPORT triton::uint32 getHigh (void) const
 Returns the highest bit position of the abstract operand. More...
 
TRITON_EXPORT triton::uint32 getLow (void) const
 Returns the lower bit position of the abstract operand. More...
 
TRITON_EXPORT OperandWrapperoperator= (const OperandWrapper &other)
 Copies a OperandWrapper. More...
 
TRITON_EXPORT bool operator== (const OperandWrapper &other) const
 Tests two OperandWrappers for equality. More...
 
TRITON_EXPORT bool operator!= (const OperandWrapper &other) const
 Tests two OperandWrappers for not equality. More...
 
TRITON_EXPORT bool operator< (const OperandWrapper &other) const
 Compares two OperandWrappers for ordering. More...
 

Detailed Description

This class is used as operand wrapper.

Definition at line 38 of file operandWrapper.hpp.

Constructor & Destructor Documentation

◆ OperandWrapper() [1/4]

triton::arch::OperandWrapper::OperandWrapper ( const triton::arch::Immediate imm)

Immediate constructor.

Definition at line 16 of file operandWrapper.cpp.

◆ OperandWrapper() [2/4]

triton::arch::OperandWrapper::OperandWrapper ( const triton::arch::MemoryAccess mem)

Memory constructor.

Definition at line 22 of file operandWrapper.cpp.

◆ OperandWrapper() [3/4]

triton::arch::OperandWrapper::OperandWrapper ( const triton::arch::Register reg)

Register constructor.

Definition at line 28 of file operandWrapper.cpp.

◆ OperandWrapper() [4/4]

triton::arch::OperandWrapper::OperandWrapper ( const OperandWrapper other)

Constructor by copy.

Definition at line 34 of file operandWrapper.cpp.

Member Function Documentation

◆ getBitSize()

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.

◆ getConstImmediate()

const triton::arch::Immediate & triton::arch::OperandWrapper::getConstImmediate ( void  ) const

Returns the immediate operand.

Definition at line 62 of file operandWrapper.cpp.

◆ getConstMemory()

const triton::arch::MemoryAccess & triton::arch::OperandWrapper::getConstMemory ( void  ) const

Returns the memory operand as const.

Definition at line 67 of file operandWrapper.cpp.

◆ getConstRegister()

const triton::arch::Register & triton::arch::OperandWrapper::getConstRegister ( void  ) const

Returns the register operand.

Definition at line 72 of file operandWrapper.cpp.

◆ getHigh()

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.

◆ getImmediate()

triton::arch::Immediate & triton::arch::OperandWrapper::getImmediate ( void  )

Returns the immediate operand.

Definition at line 47 of file operandWrapper.cpp.

◆ getLow()

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.

◆ getMemory()

triton::arch::MemoryAccess & triton::arch::OperandWrapper::getMemory ( void  )

Returns the memory operand.

Definition at line 52 of file operandWrapper.cpp.

◆ getRegister()

triton::arch::Register & triton::arch::OperandWrapper::getRegister ( void  )

Returns the register operand.

Definition at line 57 of file operandWrapper.cpp.

◆ getSize()

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.

◆ getType()

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.

◆ operator!=()

bool triton::arch::OperandWrapper::operator!= ( const OperandWrapper other) const

Tests two OperandWrappers for not equality.

Definition at line 163 of file operandWrapper.cpp.

◆ operator<()

bool triton::arch::OperandWrapper::operator< ( const OperandWrapper other) const

Compares two OperandWrappers for ordering.

Definition at line 168 of file operandWrapper.cpp.

◆ operator=()

OperandWrapper & triton::arch::OperandWrapper::operator= ( const OperandWrapper other)

Copies a OperandWrapper.

Definition at line 140 of file operandWrapper.cpp.

◆ operator==()

bool triton::arch::OperandWrapper::operator== ( const OperandWrapper other) const

Tests two OperandWrappers for equality.

Definition at line 149 of file operandWrapper.cpp.

◆ setImmediate()

void triton::arch::OperandWrapper::setImmediate ( const triton::arch::Immediate imm)

Sets the immediate operand.

Definition at line 77 of file operandWrapper.cpp.

◆ setMemory()

void triton::arch::OperandWrapper::setMemory ( const triton::arch::MemoryAccess mem)

Sets the memory operand.

Definition at line 82 of file operandWrapper.cpp.

◆ setRegister()

void triton::arch::OperandWrapper::setRegister ( const triton::arch::Register reg)

Sets the register operand.

Definition at line 87 of file operandWrapper.cpp.


The documentation for this interface was generated from the following files: