OpenASIP  2.0
Public Member Functions | Private Attributes | List of all members
DisassemblyOperand Class Reference

#include <DisassemblyOperand.hh>

Inheritance diagram for DisassemblyOperand:
Inheritance graph
Collaboration diagram for DisassemblyOperand:
Collaboration graph

Public Member Functions

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

Private Attributes

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 operand of unuiversal machine in the disassembler.

Definition at line 43 of file DisassemblyOperand.hh.

Constructor & Destructor Documentation

◆ DisassemblyOperand()

DisassemblyOperand::DisassemblyOperand ( std::string  operationName,
Word  operand 
)

Constructor.

Parameters
operationNameName of the operation.
operandIndex of the operand.

Definition at line 45 of file DisassemblyOperand.cc.

45  :
48  operand_(operand) {
49 }

◆ ~DisassemblyOperand()

DisassemblyOperand::~DisassemblyOperand ( )
virtual

Destructor.

Definition at line 55 of file DisassemblyOperand.cc.

55  {
56 }

Member Function Documentation

◆ toString()

string DisassemblyOperand::toString ( ) const
virtual

Returns disassembly of the operand.

Implements DisassemblyElement.

Definition at line 63 of file DisassemblyOperand.cc.

63  {
65 }

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

Here is the call graph for this function:

Member Data Documentation

◆ operand_

Word DisassemblyOperand::operand_
private

Operand index.

Definition at line 52 of file DisassemblyOperand.hh.

Referenced by toString().

◆ operationName_

std::string DisassemblyOperand::operationName_
private

Name of the operation.

Definition at line 50 of file DisassemblyOperand.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
DisassemblyOperand::operand_
Word operand_
Operand index.
Definition: DisassemblyOperand.hh:52
DisassemblyOperand::operationName_
std::string operationName_
Name of the operation.
Definition: DisassemblyOperand.hh:50
StringTools::stringToLower
static std::string stringToLower(const std::string &source)
Definition: StringTools.cc:160