ROSE 0.11.145.192
Public Member Functions | Public Attributes | List of all members
Rose::BinaryAnalysis::Variables::InstructionAccess Class Reference

Description

Information about how an instruction accesses a variable.

Definition at line 17 of file InstructionAccess.h.

#include <Rose/BinaryAnalysis/Variables/InstructionAccess.h>

Collaboration diagram for Rose::BinaryAnalysis::Variables::InstructionAccess:
Collaboration graph
[legend]

Public Member Functions

 InstructionAccess (const AccessFlags)
 Constructor for variables created by no instruction.
 
 InstructionAccess (const Address insnAddr, const AccessFlags)
 Constructor for variables created by an instruction.
 
Sawyer::Optional< Addressaddress () const
 Property: Instruction address.
 
std::string toString () const
 String representation of this object.
 
AccessFlags access () const
 Property: Access type.
 
AccessFlagsaccess ()
 Property: Access type.
 

Public Attributes

Sawyer::Optional< Addressaddress_
 Address of instruction accessing the variable.
 
AccessFlags access_
 How the instruction accesses the variable.
 
std::string accessString () const
 String describing access.
 
static std::string accessString (AccessFlags)
 String describing access.
 

Member Function Documentation

◆ address()

Sawyer::Optional< Address > Rose::BinaryAnalysis::Variables::InstructionAccess::address ( ) const

Property: Instruction address.

The address is optional. If the address is missing it means that the variable was discovered by some means other than looking at instructions. For instance, some variables might be created by the caller according to the calling convention.

◆ access() [1/2]

AccessFlags Rose::BinaryAnalysis::Variables::InstructionAccess::access ( ) const

Property: Access type.

How this instruction accesses the variable, whether it reads from the variable, writes to the variable, or both.

◆ access() [2/2]

AccessFlags & Rose::BinaryAnalysis::Variables::InstructionAccess::access ( )

Property: Access type.

How this instruction accesses the variable, whether it reads from the variable, writes to the variable, or both.

◆ accessString() [1/2]

std::string Rose::BinaryAnalysis::Variables::InstructionAccess::accessString ( ) const

String describing access.

Returns "read", "write", "read/write", or "no access".

◆ accessString() [2/2]

static std::string Rose::BinaryAnalysis::Variables::InstructionAccess::accessString ( AccessFlags  )
static

String describing access.

Returns "read", "write", "read/write", or "no access".

Member Data Documentation

◆ address_

Sawyer::Optional<Address> Rose::BinaryAnalysis::Variables::InstructionAccess::address_

Address of instruction accessing the variable.

Definition at line 19 of file InstructionAccess.h.

◆ access_

AccessFlags Rose::BinaryAnalysis::Variables::InstructionAccess::access_

How the instruction accesses the variable.

Definition at line 20 of file InstructionAccess.h.


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