libTriton  version 0.6 build 1375
Public Member Functions | Protected Attributes | List of all members
triton::arch::Register Class Reference

This class is used when an instruction has a register operand. More...

#include <register.hpp>

Inheritance diagram for triton::arch::Register:

Public Member Functions

TRITON_EXPORT Register ()
 Constructor.
 
TRITON_EXPORT Register (triton::arch::registers_e regId, std::string name, triton::arch::registers_e parent, triton::uint32 high, triton::uint32 low)
 Constructor.
 
TRITON_EXPORT Register (const triton::arch::CpuInterface &, triton::arch::registers_e regId)
 Constructor.
 
TRITON_EXPORT Register (const Register &other)
 Constructor.
 
TRITON_EXPORT registers_e getParent (void) const
 Returns the parent id of the register.
 
TRITON_EXPORT bool isOverlapWith (const Register &other) const
 Returns true if other and self overlap.
 
TRITON_EXPORT std::string getName (void) const
 Returns the name of the register.
 
TRITON_EXPORT triton::uint32 getAbstractHigh (void) const
 Returns the highest bit of the register vector. More...
 
TRITON_EXPORT triton::uint32 getAbstractLow (void) const
 Returns the lower bit of the register vector. More...
 
TRITON_EXPORT triton::uint32 getBitSize (void) const
 Returns the size (in bits) of the register.
 
TRITON_EXPORT triton::arch::registers_e getId (void) const
 Returns the id of the register.
 
TRITON_EXPORT triton::uint32 getSize (void) const
 Returns the size (in bytes) of the register.
 
TRITON_EXPORT triton::uint32 getType (void) const
 Returns the type of the operand (triton::arch::OP_REG).
 
TRITON_EXPORT bool operator== (const Register &other) const
 Compare two registers specifications.
 
TRITON_EXPORT bool operator!= (const Register &other) const
 Compare two registers specifications.
 
TRITON_EXPORT Registeroperator= (const Register &other)
 Copies a Register.
 
- 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 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 of the vector.
 
TRITON_EXPORT triton::uint512 getMaxValue (void) const
 Returns the max possible value of the bitvector.
 
TRITON_EXPORT BitsVectoroperator= (const BitsVector &other)
 Copy a BitsVector.
 
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 setPair (std::pair< triton::uint32, triton::uint32 > p)
 Sets the pair<high, low> position.
 
- Public Member Functions inherited from triton::arch::OperandInterface
virtual TRITON_EXPORT ~OperandInterface ()
 Destructor.
 

Protected Attributes

std::string name
 The name of the register.
 
triton::arch::registers_e id
 The id of the register.
 
triton::arch::registers_e parent
 The parent id of the register.
 
- 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.
 

Detailed Description

This class is used when an instruction has a register operand.

Definition at line 44 of file register.hpp.

Member Function Documentation

◆ getAbstractHigh()

triton::uint32 triton::arch::Register::getAbstractHigh ( void  ) const
virtual

Returns the highest bit of the register vector.

See also
BitsVector::getHigh()

Implements triton::arch::OperandInterface.

Definition at line 60 of file register.cpp.

◆ getAbstractLow()

triton::uint32 triton::arch::Register::getAbstractLow ( void  ) const
virtual

Returns the lower bit of the register vector.

See also
BitsVector::getLow()

Implements triton::arch::OperandInterface.

Definition at line 55 of file register.cpp.


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