OpenASIP
2.0
|
#include <ResourceBuildDirector.hh>
Public Member Functions | |
ResourceBuildDirector () | |
virtual | ~ResourceBuildDirector () |
void | addBroker (ResourceBroker &broker) |
void | build (const TTAMachine::Machine &machine) |
void | print (std::ostream &target_, unsigned int cycles) const |
void | clear () |
Private Attributes | |
std::vector< ResourceBroker * > | brokers_ |
Resource brokers. More... | |
ResourceMapper | mapper_ |
Resource mapper. More... | |
Handles resource model construction.
Definition at line 51 of file ResourceBuildDirector.hh.
ResourceBuildDirector::ResourceBuildDirector | ( | ) |
|
virtual |
Destructor.
Definition at line 48 of file ResourceBuildDirector.cc.
References brokers_, and SequenceTools::deleteAllItems().
void ResourceBuildDirector::addBroker | ( | ResourceBroker & | broker | ) |
Add given broker to the list of brokers responsible for resource construction.
The order in which brokers are added is irrelevant.
broker | Broker to add. |
Definition at line 61 of file ResourceBuildDirector.cc.
References __func__, brokers_, and ContainerTools::containsValue().
Referenced by SimpleResourceManager::buildResourceModel().
void ResourceBuildDirector::build | ( | const TTAMachine::Machine & | machine | ) |
Build a complete resource object model for given target processor.
@machine Machine to build from.
Definition at line 75 of file ResourceBuildDirector.cc.
References ResourceMapper::addResourceMap(), brokers_, machine, and mapper_.
Referenced by SimpleResourceManager::buildResourceModel().
void ResourceBuildDirector::clear | ( | ) |
Clears all resources of the resouce manager so that the RM can be reused.
Definition at line 178 of file ResourceBuildDirector.cc.
References brokers_.
Referenced by SimpleResourceManager::clear().
void ResourceBuildDirector::print | ( | std::ostream & | target_, |
unsigned int | cycles | ||
) | const |
Print resource manager's contents.
target_ | Output stream to pring (eg. std::cout). |
cycles | How many cycles to print. |
@machine Machine to build from.
Definition at line 102 of file ResourceBuildDirector.cc.
References brokers_.
Referenced by SimpleResourceManager::print(), and SimpleResourceManager::toString().
|
private |
Resource brokers.
Definition at line 63 of file ResourceBuildDirector.hh.
Referenced by addBroker(), build(), clear(), print(), and ~ResourceBuildDirector().
|
private |