OpenASIP  2.0
Public Member Functions | Public Attributes | List of all members
MachineResourceManager::ResourceKey Struct Reference
Collaboration diagram for MachineResourceManager::ResourceKey:
Collaboration graph

Public Member Functions

bool operator< (const ResourceKey &comp) const
 

Public Attributes

std::string keyString
 Key string for resource. More...
 
UValue slotNumber
 Bus that was used. More...
 
RequestType type
 Was resource read or written or was it guard. More...
 

Detailed Description

Cache element to see if same kind of resource reading has been resolved earlier during the compilation

Definition at line 136 of file MachineResourceManager.hh.

Member Function Documentation

◆ operator<()

bool MachineResourceManager::ResourceKey::operator< ( const ResourceKey comp) const
inline

Definition at line 144 of file MachineResourceManager.hh.

144  {
145 
146  if (keyString < comp.keyString) {
147  return true;
148  }
149 
150  if (keyString > comp.keyString) {
151  return false;
152  }
153 
154  if (slotNumber < comp.slotNumber) {
155  return true;
156  }
157 
158  if (slotNumber > comp.slotNumber) {
159  return false;
160  }
161 
162  if (type < comp.type) {
163  return true;
164  }
165 
166  return false;
167  }

References keyString, slotNumber, and type.

Member Data Documentation

◆ keyString

std::string MachineResourceManager::ResourceKey::keyString

Key string for resource.

Definition at line 138 of file MachineResourceManager.hh.

Referenced by operator<(), and MachineResourceManager::resourceID().

◆ slotNumber

UValue MachineResourceManager::ResourceKey::slotNumber

Bus that was used.

Definition at line 140 of file MachineResourceManager.hh.

Referenced by operator<(), and MachineResourceManager::resourceID().

◆ type

RequestType MachineResourceManager::ResourceKey::type

Was resource read or written or was it guard.

Definition at line 142 of file MachineResourceManager.hh.

Referenced by operator<(), and MachineResourceManager::resourceID().


The documentation for this struct was generated from the following file:
MachineResourceManager::ResourceKey::keyString
std::string keyString
Key string for resource.
Definition: MachineResourceManager.hh:138
MachineResourceManager::ResourceKey::type
RequestType type
Was resource read or written or was it guard.
Definition: MachineResourceManager.hh:142
MachineResourceManager::ResourceKey::slotNumber
UValue slotNumber
Bus that was used.
Definition: MachineResourceManager.hh:140