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

#include <ParserStructs.hh>

Collaboration diagram for FUTerm:
Collaboration graph

Public Member Functions

std::string toString () const
 

Public Attributes

bool part3Used
 Is operation part of the term used. More...
 
std::string part1
 Unit name. More...
 
std::string part2
 Port name. More...
 
std::string part3
 Operation name. More...
 

Detailed Description

Parsed data of function unit operand port or special register reference.

Form: unit.port[.operation]

Definition at line 76 of file ParserStructs.hh.

Member Function Documentation

◆ toString()

std::string FUTerm::toString ( ) const
inline

String representation of term for error message generation.

Definition at line 90 of file ParserStructs.hh.

90  {
91  std::string retVal = part1 + "." + part2;
92  if (part3Used) {
93  retVal += "." + part3;
94  }
95  return retVal;
96  }

References part1, part2, part3, and part3Used.

Referenced by RegisterTerm::toString().

Member Data Documentation

◆ part1

std::string FUTerm::part1

◆ part2

std::string FUTerm::part2

◆ part3

std::string FUTerm::part3

◆ part3Used

bool FUTerm::part3Used

Is operation part of the term used.

Definition at line 79 of file ParserStructs.hh.

Referenced by MachineResourceManager::functionUnitPortResource(), MachineResourceManager::resourceID(), and toString().


The documentation for this class was generated from the following file:
FUTerm::part2
std::string part2
Port name.
Definition: ParserStructs.hh:83
FUTerm::part3Used
bool part3Used
Is operation part of the term used.
Definition: ParserStructs.hh:79
FUTerm::part1
std::string part1
Unit name.
Definition: ParserStructs.hh:81
FUTerm::part3
std::string part3
Operation name.
Definition: ParserStructs.hh:85