OpenASIP 2.2
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
TTAProgram::TPEFProgramFactory::CacheKey Class Reference

Cache key for resources that are accessed from MOM(s) More...

Collaboration diagram for TTAProgram::TPEFProgramFactory::CacheKey:
Collaboration graph

Public Member Functions

 CacheKey (const TTAMachine::Bus &aBus, TTAMachine::Socket::Direction aDirection, TPEF::MoveElement::FieldType aType, HalfWord anUnitId, HalfWord anIndex)
 
bool operator< (const CacheKey &keyToCompare) const
 

Private Attributes

const TTAMachine::Busbus_
 Bus that was used for transport.
 
TTAMachine::Socket::Direction direction_
 Direction if the port was read or written.
 
TPEF::MoveElement::FieldType type_
 Type of the accessed unit.
 
HalfWord unitId_
 unit id of the corresponding TPEF resource element.
 
HalfWord index_
 Index of the corresponding TPEF resource element.
 

Detailed Description

Cache key for resources that are accessed from MOM(s)

Definition at line 191 of file TPEFProgramFactory.hh.

Constructor & Destructor Documentation

◆ CacheKey()

TTAProgram::TPEFProgramFactory::CacheKey::CacheKey ( const TTAMachine::Bus aBus,
TTAMachine::Socket::Direction  aDirection,
TPEF::MoveElement::FieldType  aType,
HalfWord  anUnitId,
HalfWord  anIndex 
)
inline

Definition at line 193 of file TPEFProgramFactory.hh.

197 :
198 bus_(aBus), direction_(aDirection), type_(aType),
199 unitId_(anUnitId), index_(anIndex) { }
TPEF::MoveElement::FieldType type_
Type of the accessed unit.
const TTAMachine::Bus & bus_
Bus that was used for transport.
TTAMachine::Socket::Direction direction_
Direction if the port was read or written.
HalfWord index_
Index of the corresponding TPEF resource element.
HalfWord unitId_
unit id of the corresponding TPEF resource element.

Member Function Documentation

◆ operator<()

bool TTAProgram::TPEFProgramFactory::CacheKey::operator< ( const CacheKey keyToCompare) const
inline

Definition at line 201 of file TPEFProgramFactory.hh.

201 {
202
203 if (direction_ < keyToCompare.direction_) return true;
204 else if (direction_ > keyToCompare.direction_) return false;
205
206 if (type_ < keyToCompare.type_) return true;
207 else if (type_ > keyToCompare.type_) return false;
208
209 if (unitId_ < keyToCompare.unitId_ ) return true;
210 else if (unitId_ > keyToCompare.unitId_ ) return false;
211
212 if (index_ < keyToCompare.index_ ) return true;
213 else if (index_ > keyToCompare.index_) return false;
214
215 if (&bus_ < &(keyToCompare.bus_)) return true;
216
217 return false;
218 }

References bus_, direction_, index_, type_, and unitId_.

Member Data Documentation

◆ bus_

const TTAMachine::Bus& TTAProgram::TPEFProgramFactory::CacheKey::bus_
private

Bus that was used for transport.

Definition at line 222 of file TPEFProgramFactory.hh.

Referenced by operator<().

◆ direction_

TTAMachine::Socket::Direction TTAProgram::TPEFProgramFactory::CacheKey::direction_
private

Direction if the port was read or written.

Definition at line 224 of file TPEFProgramFactory.hh.

Referenced by operator<().

◆ index_

HalfWord TTAProgram::TPEFProgramFactory::CacheKey::index_
private

Index of the corresponding TPEF resource element.

Definition at line 230 of file TPEFProgramFactory.hh.

Referenced by operator<().

◆ type_

TPEF::MoveElement::FieldType TTAProgram::TPEFProgramFactory::CacheKey::type_
private

Type of the accessed unit.

Definition at line 226 of file TPEFProgramFactory.hh.

Referenced by operator<().

◆ unitId_

HalfWord TTAProgram::TPEFProgramFactory::CacheKey::unitId_
private

unit id of the corresponding TPEF resource element.

Definition at line 228 of file TPEFProgramFactory.hh.

Referenced by operator<().


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