OpenASIP  2.0
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. More...
 
std::string operationName_
 Name of the operation. More...
 
Word operand_
 Operand index. More...
 

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 }

◆ ~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 }

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:
Conversion::toString
static std::string toString(const T &source)
DisassemblyElement::DisassemblyElement
DisassemblyElement()
Definition: DisassemblyElement.cc:38
DisassemblyFUOperand::operand_
Word operand_
Operand index.
Definition: DisassemblyFUOperand.hh:57
DisassemblyFUOperand::fuName_
std::string fuName_
Name of the function unit.
Definition: DisassemblyFUOperand.hh:53
DisassemblyFUOperand::operationName_
std::string operationName_
Name of the operation.
Definition: DisassemblyFUOperand.hh:55
StringTools::stringToLower
static std::string stringToLower(const std::string &source)
Definition: StringTools.cc:160