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

The symbolic variable class. More...

#include <symbolicVariable.hpp>

Public Member Functions

TRITON_EXPORT SymbolicVariable (triton::engines::symbolic::variable_e type, triton::uint64 origin, triton::usize id, triton::uint32 size, const std::string &alias)
 Constructor.
 
TRITON_EXPORT SymbolicVariable (const SymbolicVariable &other)
 Constructor by copy.
 
TRITON_EXPORT SymbolicVariableoperator= (const SymbolicVariable &other)
 Operator.
 
TRITON_EXPORT triton::engines::symbolic::variable_e getType (void) const
 Returns the symbolic variable type assignment.
 
TRITON_EXPORT const std::string & getAlias (void) const
 Returns the alias of the symbolic variable.
 
TRITON_EXPORT const std::string & getComment (void) const
 Returns the comment of the symbolic variable.
 
TRITON_EXPORT const std::string & getName (void) const
 Returns the name of the symbolic variable.
 
TRITON_EXPORT triton::usize getId (void) const
 Returns the id of the symbolic variable. This id is unique.
 
TRITON_EXPORT triton::uint64 getOrigin (void) const
 Returns the source value of the symbolic variable.
 
TRITON_EXPORT triton::uint32 getSize (void) const
 Returns the size (in bits) of the symbolic variable.
 
TRITON_EXPORT void setAlias (const std::string &alias)
 Sets the alias of the symbolic variable.
 
TRITON_EXPORT void setComment (const std::string &comment)
 Sets the comment of the symbolic variable.
 

Protected Attributes

triton::engines::symbolic::variable_e type
 The symbolic variable type assignment.
 
std::string alias
 The alias of the symbolic variable.
 
std::string comment
 The comment of the symbolic variable.
 
std::string name
 The name of the symbolic variable. Names are always something like this: SymVar_X.
 
triton::usize id
 The id of the symbolic variable. This id is unique.
 
triton::uint64 origin
 The origin of the symbolic variable.
 
triton::uint32 size
 The size (in bits) of the symbolic variable.
 

Detailed Description

The symbolic variable class.

Definition at line 53 of file symbolicVariable.hpp.

Constructor & Destructor Documentation

◆ SymbolicVariable() [1/2]

triton::engines::symbolic::SymbolicVariable::SymbolicVariable ( triton::engines::symbolic::variable_e type,
triton::uint64 origin,
triton::usize id,
triton::uint32 size,
const std::string & alias )

Constructor.

Definition at line 18 of file symbolicVariable.cpp.

◆ SymbolicVariable() [2/2]

triton::engines::symbolic::SymbolicVariable::SymbolicVariable ( const SymbolicVariable & other)

Constructor by copy.

Definition at line 39 of file symbolicVariable.cpp.

Member Function Documentation

◆ getAlias()

const std::string & triton::engines::symbolic::SymbolicVariable::getAlias ( void ) const

Returns the alias of the symbolic variable.

Definition at line 67 of file symbolicVariable.cpp.

◆ getComment()

const std::string & triton::engines::symbolic::SymbolicVariable::getComment ( void ) const

Returns the comment of the symbolic variable.

Definition at line 72 of file symbolicVariable.cpp.

◆ getId()

triton::usize triton::engines::symbolic::SymbolicVariable::getId ( void ) const

Returns the id of the symbolic variable. This id is unique.

Definition at line 82 of file symbolicVariable.cpp.

◆ getName()

const std::string & triton::engines::symbolic::SymbolicVariable::getName ( void ) const

Returns the name of the symbolic variable.

Definition at line 77 of file symbolicVariable.cpp.

◆ getOrigin()

triton::uint64 triton::engines::symbolic::SymbolicVariable::getOrigin ( void ) const

Returns the source value of the symbolic variable.

Definition at line 87 of file symbolicVariable.cpp.

◆ getSize()

triton::uint32 triton::engines::symbolic::SymbolicVariable::getSize ( void ) const

Returns the size (in bits) of the symbolic variable.

Definition at line 92 of file symbolicVariable.cpp.

◆ getType()

triton::engines::symbolic::variable_e triton::engines::symbolic::SymbolicVariable::getType ( void ) const

Returns the symbolic variable type assignment.

Definition at line 62 of file symbolicVariable.cpp.

◆ operator=()

SymbolicVariable & triton::engines::symbolic::SymbolicVariable::operator= ( const SymbolicVariable & other)

Operator.

Definition at line 50 of file symbolicVariable.cpp.

◆ setAlias()

void triton::engines::symbolic::SymbolicVariable::setAlias ( const std::string & alias)

Sets the alias of the symbolic variable.

Definition at line 97 of file symbolicVariable.cpp.

◆ setComment()

void triton::engines::symbolic::SymbolicVariable::setComment ( const std::string & comment)

Sets the comment of the symbolic variable.

Definition at line 102 of file symbolicVariable.cpp.

Member Data Documentation

◆ alias

std::string triton::engines::symbolic::SymbolicVariable::alias
protected

The alias of the symbolic variable.

Definition at line 59 of file symbolicVariable.hpp.

◆ comment

std::string triton::engines::symbolic::SymbolicVariable::comment
protected

The comment of the symbolic variable.

Definition at line 62 of file symbolicVariable.hpp.

◆ id

triton::usize triton::engines::symbolic::SymbolicVariable::id
protected

The id of the symbolic variable. This id is unique.

Definition at line 68 of file symbolicVariable.hpp.

◆ name

std::string triton::engines::symbolic::SymbolicVariable::name
protected

The name of the symbolic variable. Names are always something like this: SymVar_X.

See also
TRITON_SYMVAR_NAME

Definition at line 65 of file symbolicVariable.hpp.

◆ origin

triton::uint64 triton::engines::symbolic::SymbolicVariable::origin
protected

The origin of the symbolic variable.

If the symbolic varialbe is a triton::engines::symbolic::REG, this value contains the register ID. Otherwise, if the symbolic varialbe is a triton::engines::symbolic::MEM, this value contains the address of the memory access.

Definition at line 76 of file symbolicVariable.hpp.

◆ size

triton::uint32 triton::engines::symbolic::SymbolicVariable::size
protected

The size (in bits) of the symbolic variable.

Definition at line 79 of file symbolicVariable.hpp.

◆ type

triton::engines::symbolic::variable_e triton::engines::symbolic::SymbolicVariable::type
protected

The symbolic variable type assignment.

Definition at line 56 of file symbolicVariable.hpp.


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