OpenASIP 2.2
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
DisassemblyFUOperand Class Reference

#include <DisassemblyFUOperand.hh>

Inheritance diagram for DisassemblyFUOperand:
Inheritance graph
Collaboration diagram for DisassemblyFUOperand:
Collaboration graph

Public Member Functions

 DisassemblyFUOperand (std::string fuName, std::string operationName, Word operand)
 
virtual ~DisassemblyFUOperand ()
 
virtual std::string toString () const
 
- Public Member Functions inherited from DisassemblyElement
virtual ~DisassemblyElement ()
 

Private Attributes

std::string fuName_
 Name of the function unit.
 
std::string operationName_
 Name of the operation.
 
Word operand_
 Operand index.
 

Additional Inherited Members

- Protected Member Functions inherited from DisassemblyElement
 DisassemblyElement ()
 

Detailed Description

Represents an fu.operand.index referencein the disassembler.

Definition at line 42 of file DisassemblyFUOperand.hh.

Constructor & Destructor Documentation

◆ DisassemblyFUOperand()

DisassemblyFUOperand::DisassemblyFUOperand ( std::string  fuName,
std::string  operationName,
Word  operand 
)

Constructor.

Parameters
operationNameName of the operation.
operandIndex of the operand.

Definition at line 45 of file DisassemblyFUOperand.cc.

46 :
48 fuName_(fuName), operationName_(StringTools::stringToLower(operationName)),
49 operand_(operand) {
50}
std::string operationName_
Name of the operation.
std::string fuName_
Name of the function unit.
Word operand_
Operand index.
static std::string stringToLower(const std::string &source)

◆ ~DisassemblyFUOperand()

DisassemblyFUOperand::~DisassemblyFUOperand ( )
virtual

Destructor.

Definition at line 56 of file DisassemblyFUOperand.cc.

56 {
57}

Member Function Documentation

◆ toString()

string DisassemblyFUOperand::toString ( ) const
virtual

Returns disassembly of the operation.

Implements DisassemblyElement.

Definition at line 64 of file DisassemblyFUOperand.cc.

64 {
65 return fuName_ + "." + operationName_ + "." +
67}
static std::string toString(const T &source)

References fuName_, operand_, operationName_, and Conversion::toString().

Here is the call graph for this function:

Member Data Documentation

◆ fuName_

std::string DisassemblyFUOperand::fuName_
private

Name of the function unit.

Definition at line 53 of file DisassemblyFUOperand.hh.

Referenced by toString().

◆ operand_

Word DisassemblyFUOperand::operand_
private

Operand index.

Definition at line 57 of file DisassemblyFUOperand.hh.

Referenced by toString().

◆ operationName_

std::string DisassemblyFUOperand::operationName_
private

Name of the operation.

Definition at line 55 of file DisassemblyFUOperand.hh.

Referenced by toString().


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