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

This class is used to deal with registers and memory as bits vector. More...

#include <bitsVector.hpp>

Inheritance diagram for triton::arch::BitsVector:

Public Member Functions

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.
 

Protected Attributes

triton::uint32 high
 The highest bit of the bitvector.
 
triton::uint32 low
 The lower bit of the bitvector.
 

Detailed Description

This class is used to deal with registers and memory as bits vector.

Definition at line 36 of file bitsVector.hpp.

Constructor & Destructor Documentation

◆ BitsVector() [1/3]

triton::arch::BitsVector::BitsVector ( )

Constructor.

Definition at line 17 of file bitsVector.cpp.

◆ BitsVector() [2/3]

triton::arch::BitsVector::BitsVector ( triton::uint32 high,
triton::uint32 low )

Constructor.

Definition at line 23 of file bitsVector.cpp.

◆ BitsVector() [3/3]

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

Constructor by copy.

Definition at line 28 of file bitsVector.cpp.

Member Function Documentation

◆ getHigh()

triton::uint32 triton::arch::BitsVector::getHigh ( void ) const

Returns the highest bit.

Definition at line 34 of file bitsVector.cpp.

◆ getLow()

triton::uint32 triton::arch::BitsVector::getLow ( void ) const

Returns the lower bit.

Definition at line 39 of file bitsVector.cpp.

◆ getMaxValue()

triton::uint512 triton::arch::BitsVector::getMaxValue ( void ) const

Returns the max possible value of the bitvector.

Definition at line 49 of file bitsVector.cpp.

◆ getVectorSize()

triton::uint32 triton::arch::BitsVector::getVectorSize ( void ) const

Returns the size in bits of the vector.

Definition at line 44 of file bitsVector.cpp.

◆ operator=()

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

Copy a BitsVector.

Definition at line 84 of file bitsVector.cpp.

◆ setBits()

void triton::arch::BitsVector::setBits ( triton::uint32 high,
triton::uint32 low )

Sets the bits (high, low) position.

Definition at line 72 of file bitsVector.cpp.

◆ setHigh()

void triton::arch::BitsVector::setHigh ( triton::uint32 v)

Sets the highest bit position.

Definition at line 56 of file bitsVector.cpp.

◆ setLow()

void triton::arch::BitsVector::setLow ( triton::uint32 v)

Sets the lower bit position.

Definition at line 64 of file bitsVector.cpp.

Member Data Documentation

◆ high

triton::uint32 triton::arch::BitsVector::high
protected

The highest bit of the bitvector.

Definition at line 39 of file bitsVector.hpp.

◆ low

triton::uint32 triton::arch::BitsVector::low
protected

The lower bit of the bitvector.

Definition at line 42 of file bitsVector.hpp.


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