libTriton version 1.0 build 1592
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
triton::arch::Immediate Class Reference

This class is used to represent an immediate. More...

#include <immediate.hpp>

Inheritance diagram for triton::arch::Immediate:

Public Member Functions

TRITON_EXPORT Immediate ()
 Constructor.
 
TRITON_EXPORT Immediate (triton::uint64 value, triton::uint32 size)
 Constructor.
 
TRITON_EXPORT Immediate (const Immediate &other)
 Constructor by copy.
 
TRITON_EXPORT triton::uint64 getValue (void) const
 Returns the value of the operand.
 
TRITON_EXPORT triton::uint32 getBitSize (void) const
 Returns the size (in bits) of the immediate vector.
 
TRITON_EXPORT triton::uint32 getSize (void) const
 Returns the size (in bytes) of the immediate vector.
 
TRITON_EXPORT triton::arch::operand_e getType (void) const
 Returns the type of the operand (triton::arch::OPERAND_IMMEDIATE).
 
TRITON_EXPORT void setValue (triton::uint64 v, triton::uint32 size)
 Sets the value of the operand.
 
TRITON_EXPORT Immediateoperator= (const Immediate &other)
 Copy an Immediate.
 
- Public Member Functions inherited from triton::arch::BitsVector
TRITON_EXPORT BitsVector ()
 Constructor.
 
TRITON_EXPORT BitsVector (triton::uint32 high, triton::uint32 low)
 Constructor.
 
TRITON_EXPORT BitsVector (const triton::arch::BitsVector &other)
 Constructor by copy.
 
TRITON_EXPORT BitsVectoroperator= (const BitsVector &other)
 Copy a BitsVector.
 
TRITON_EXPORT triton::uint32 getHigh (void) const
 Returns the highest bit.
 
TRITON_EXPORT triton::uint32 getLow (void) const
 Returns the lower bit.
 
TRITON_EXPORT triton::uint32 getVectorSize (void) const
 Returns the size in bits of the vector.
 
TRITON_EXPORT triton::uint512 getMaxValue (void) const
 Returns the max possible value of the bitvector.
 
TRITON_EXPORT void setHigh (triton::uint32 v)
 Sets the highest bit position.
 
TRITON_EXPORT void setLow (triton::uint32 v)
 Sets the lower bit position.
 
TRITON_EXPORT void setBits (triton::uint32 high, triton::uint32 low)
 Sets the bits (high, low) position.
 
- Public Member Functions inherited from triton::arch::arm::ArmOperandProperties
TRITON_EXPORT ArmOperandProperties ()
 Constructor.
 
TRITON_EXPORT ArmOperandProperties (const ArmOperandProperties &other)
 Constructor by copy.
 
TRITON_EXPORT triton::arch::arm::shift_e getShiftType (void) const
 Returns the type of the shift.
 
TRITON_EXPORT triton::uint32 getShiftImmediate (void) const
 Returns the value of the shift immediate.
 
TRITON_EXPORT triton::arch::register_e getShiftRegister (void) const
 Returns the value of the shift register.
 
TRITON_EXPORT triton::arch::arm::extend_e getExtendType (void) const
 Returns the type of the extend.
 
TRITON_EXPORT triton::arch::arm::vas_e getVASType (void) const
 Returns the vector arrangement specifier.
 
TRITON_EXPORT triton::sint32 getVectorIndex (void) const
 Returns the vector index (-1 if irrelevant).
 
TRITON_EXPORT std::string getVASName (void) const
 Returns the vector arrangement specifier string name.
 
TRITON_EXPORT triton::uint32 getVASSize (void) const
 Returns the vector arrangement specifier size (64 or 128 bits).
 
TRITON_EXPORT triton::uint32 getExtendSize (void) const
 Returns the size (in bits) of the extend.
 
TRITON_EXPORT bool isSubtracted (void) const
 Returns true if the operand has to be subtracted when computing a memory access.
 
TRITON_EXPORT void setShiftType (triton::arch::arm::shift_e type)
 Sets the type of the shift.
 
TRITON_EXPORT void setShiftValue (triton::uint32 imm)
 Sets the value of the shift immediate.
 
TRITON_EXPORT void setShiftValue (triton::arch::register_e reg)
 Sets the value of the shift register.
 
TRITON_EXPORT void setExtendType (triton::arch::arm::extend_e type)
 Sets the type of the extend.
 
TRITON_EXPORT void setVASType (triton::arch::arm::vas_e type)
 Sets the type of vector arrangement specifier.
 
TRITON_EXPORT void setExtendedSize (triton::uint32 dstSize)
 Sets the extended size (in bits) after extension.
 
TRITON_EXPORT void setVectorIndex (triton::sint32 index)
 Sets the vector index.
 
TRITON_EXPORT void setSubtracted (bool value)
 Sets subtracted flag.
 
TRITON_EXPORT ArmOperandPropertiesoperator= (const ArmOperandProperties &other)
 Copy an ArmOperandProperties.
 

Protected Attributes

triton::uint64 value
 The value of the operand.
 
- Protected Attributes inherited from triton::arch::BitsVector
triton::uint32 high
 The highest bit of the bitvector.
 
triton::uint32 low
 The lower bit of the bitvector.
 
- Protected Attributes inherited from triton::arch::arm::ArmOperandProperties
triton::arch::arm::shift_e shiftType
 The shift type.
 
triton::uint32 shiftValueImmediate
 The shift value immediate.
 
triton::arch::register_e shiftValueRegister
 The shift value register.
 
triton::arch::arm::extend_e extendType
 The extend type.
 
triton::arch::arm::vas_e vasType
 Vector arrangement specifier.
 
triton::sint32 vectorIndex
 Vector index (-1 if irrelevant).
 
triton::uint32 extendSize
 The extend size (in bits).
 
bool subtracted
 The subtracted flag. Used in memory access operands and determines whether this operand has to be added or subtracted to the base register.
 

Detailed Description

This class is used to represent an immediate.

Definition at line 37 of file immediate.hpp.

Constructor & Destructor Documentation

◆ Immediate() [1/3]

triton::arch::Immediate::Immediate ( )

Constructor.

Definition at line 17 of file immediate.cpp.

◆ Immediate() [2/3]

triton::arch::Immediate::Immediate ( triton::uint64 value,
triton::uint32 size )

Constructor.

Definition at line 22 of file immediate.cpp.

◆ Immediate() [3/3]

triton::arch::Immediate::Immediate ( const Immediate & other)

Constructor by copy.

Definition at line 27 of file immediate.cpp.

Member Function Documentation

◆ getBitSize()

triton::uint32 triton::arch::Immediate::getBitSize ( void ) const

Returns the size (in bits) of the immediate vector.

Definition at line 85 of file immediate.cpp.

◆ getSize()

triton::uint32 triton::arch::Immediate::getSize ( void ) const

Returns the size (in bytes) of the immediate vector.

Definition at line 80 of file immediate.cpp.

◆ getType()

triton::arch::operand_e triton::arch::Immediate::getType ( void ) const

Returns the type of the operand (triton::arch::OPERAND_IMMEDIATE).

Definition at line 90 of file immediate.cpp.

◆ getValue()

triton::uint64 triton::arch::Immediate::getValue ( void ) const

Returns the value of the operand.

Definition at line 34 of file immediate.cpp.

◆ operator=()

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

Copy an Immediate.

Definition at line 95 of file immediate.cpp.

◆ setValue()

void triton::arch::Immediate::setValue ( triton::uint64 v,
triton::uint32 size )

Sets the value of the operand.

Definition at line 39 of file immediate.cpp.

Member Data Documentation

◆ value

triton::uint64 triton::arch::Immediate::value
protected

The value of the operand.

Definition at line 40 of file immediate.hpp.


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