OpenASIP 2.2
Loading...
Searching...
No Matches
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.
 
std::string part1
 Unit name.
 
std::string part2
 Port or operation name.
 
UValue index
 Register or operand index.
 

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 }
static std::string toString(const T &source)
std::string part1
Unit name.
std::string part2
Port or operation name.
bool part2Used
Is port name used.
UValue index
Register or operand index.

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

◆ part2Used

bool IndexTerm::part2Used

The documentation for this class was generated from the following file: