OpenASIP
2.0
|
#include <FUReservationTableIndex.hh>
Public Member Functions | |
FUReservationTableIndex (const TTAMachine::FunctionUnit &functionUnit) | |
virtual | ~FUReservationTableIndex () |
ReservationTable & | at (std::size_t operation) |
std::size_t | size () const |
Private Attributes | |
std::vector< ReservationTable * > | tables_ |
Stores all reservation tables. More... | |
Represents an index of reservation tables for modeling resource usage of operations in an FU.
Definition at line 47 of file FUReservationTableIndex.hh.
FUReservationTableIndex::FUReservationTableIndex | ( | const TTAMachine::FunctionUnit & | functionUnit | ) |
Builds reservation tables for all operations in the FU.
Tables are stored in the order returned by FunctionUnit::operation(), the NOP matrix is at index FunctionUnit::operationCount().
functionUnit | The FU to build the matrices for. |
Definition at line 47 of file FUReservationTableIndex.cc.
References TTAMachine::FunctionUnit::operation(), TTAMachine::FunctionUnit::operationCount(), and tables_.
|
virtual |
Destructor.
Definition at line 60 of file FUReservationTableIndex.cc.
References SequenceTools::deleteAllItems(), and tables_.
ReservationTable & FUReservationTableIndex::at | ( | std::size_t | index | ) |
Returns the reservation table at the given index.
operation | The index of the reservation table. |
Definition at line 70 of file FUReservationTableIndex.cc.
References tables_.
Referenced by CollisionMatrix::CollisionMatrix().
std::size_t FUReservationTableIndex::size | ( | ) | const |
Returns the count of reservation tables in the index.
Definition at line 80 of file FUReservationTableIndex.cc.
References tables_.
|
private |
Stores all reservation tables.
Definition at line 56 of file FUReservationTableIndex.hh.
Referenced by at(), FUReservationTableIndex(), size(), and ~FUReservationTableIndex().