OpenASIP 2.2
Loading...
Searching...
No Matches
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.
 
Word operand_
 Operand index.
 

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}
Word operand_
Operand index.
std::string operationName_
Name of the operation.
static std::string stringToLower(const std::string &source)

◆ ~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}
static std::string toString(const T &source)

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: