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

#include <ParserStructs.hh>

Collaboration diagram for IndexTerm:
Collaboration graph

Public Member Functions

std::string toString () const
 

Public Attributes

bool part2Used
 Is port name used. More...
 
std::string part1
 Unit name. More...
 
std::string part2
 Port or operation name. More...
 
UValue index
 Register or operand index. More...
 

Detailed Description

Parsed data of registerfile index or function unit operation operand reference.

Form: rf[.port].index and fu.operation.index

Definition at line 105 of file ParserStructs.hh.

Member Function Documentation

◆ toString()

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

String representation of term for error message generation.

Definition at line 119 of file ParserStructs.hh.

119  {
120  std::string retVal = part1;
121  if (part2Used) {
122  retVal += "." + part2;
123  }
124  retVal += "." + Conversion::toString(index);
125  return retVal;
126  }

References index, part1, part2, part2Used, and Conversion::toString().

Referenced by RegisterTerm::toString().

Here is the call graph for this function:

Member Data Documentation

◆ index

UValue IndexTerm::index

◆ part1

std::string IndexTerm::part1

◆ part2

std::string IndexTerm::part2

Port or operation name.

Definition at line 112 of file ParserStructs.hh.

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

◆ part2Used

bool IndexTerm::part2Used

Is port name used.

Definition at line 108 of file ParserStructs.hh.

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


The documentation for this class was generated from the following file:
Conversion::toString
static std::string toString(const T &source)
IndexTerm::part2
std::string part2
Port or operation name.
Definition: ParserStructs.hh:112
IndexTerm::part1
std::string part1
Unit name.
Definition: ParserStructs.hh:110
IndexTerm::index
UValue index
Register or operand index.
Definition: ParserStructs.hh:114
IndexTerm::part2Used
bool part2Used
Is port name used.
Definition: ParserStructs.hh:108