|
OpenASIP 2.2
|
#include <SchedulingResource.hh>

Classes | |
| struct | less_name |
Public Member Functions | |
| SchedulingResourceSet () | |
| ~SchedulingResourceSet () | |
| void | insert (SchedulingResource &resource) |
| int | count () const |
| SchedulingResource & | resource (int index) const |
| void | remove (SchedulingResource &resource) |
| SchedulingResourceSet & | operator= (const SchedulingResourceSet &newSet) |
| void | sort () |
| void | clear () |
| bool | hasResource (SchedulingResource &res) |
Private Types | |
| typedef std::vector< SchedulingResource * > | ResourceList |
Private Attributes | |
| ResourceList | resources_ |
Set of scheduling resources.
Definition at line 161 of file SchedulingResource.hh.
|
private |
Definition at line 175 of file SchedulingResource.hh.
| SchedulingResourceSet::SchedulingResourceSet | ( | ) |
| SchedulingResourceSet::~SchedulingResourceSet | ( | ) |
| void SchedulingResourceSet::clear | ( | ) |
Clears the scheduling resource set.
Definition at line 336 of file SchedulingResource.cc.
References resources_.
Referenced by PendingAssignment::clear(), and operator=().
| int SchedulingResourceSet::count | ( | ) | const |
Return the number of resources in the set.
Definition at line 251 of file SchedulingResource.cc.
References resources_.
Referenced by BusBroker::allAvailableResources(), InputFUBroker::allAvailableResources(), BusBroker::availableResource(), ITemplateBroker::instruction(), BusBroker::isAnyResourceAvailable(), PendingAssignment::isAssignmentPossible(), ITemplateBroker::isTemplateAvailable(), operator=(), and PendingAssignment::tryNext().
| bool SchedulingResourceSet::hasResource | ( | SchedulingResource & | resource | ) |
Tells whether the set has the given resource.
Definition at line 297 of file SchedulingResource.cc.
References resource(), and resources_.

| void SchedulingResourceSet::insert | ( | SchedulingResource & | resource | ) |
Insert a scheduling resource in the set.
| resource | Resource to insert. |
| ObjectAlreadyExists | if the resource is already in the set. |
Definition at line 236 of file SchedulingResource.cc.
References __func__, ContainerTools::containsValue(), resource(), and resources_.
Referenced by BusBroker::allAvailableResources(), InputFUBroker::allAvailableResources(), InputPSocketBroker::allAvailableResources(), OutputFUBroker::allAvailableResources(), OutputPSocketBroker::allAvailableResources(), IUBroker::allAvailableResources(), ITemplateBroker::findITemplates(), and operator=().

| SchedulingResourceSet & SchedulingResourceSet::operator= | ( | const SchedulingResourceSet & | newSet | ) |
Assignment operator.
| newSet | Set to assign resources from. |
Definition at line 315 of file SchedulingResource.cc.
References clear(), count(), insert(), resource(), and resources_.

| void SchedulingResourceSet::remove | ( | SchedulingResource & | resource | ) |
Remove a resource from the set.
| resource | Scheduling resource to be removed. |
| KeyNotFound | If given resource is not found in the set. |
Definition at line 279 of file SchedulingResource.cc.
References __func__, resource(), and resources_.
Referenced by BusBroker::allAvailableResources().

| SchedulingResource & SchedulingResourceSet::resource | ( | int | index | ) | const |
Return the resource at the given position.
| index | Position of resource. |
| OutOfRange | If the given position exceeds number of resources. |
Definition at line 263 of file SchedulingResource.cc.
References __func__, and resources_.
Referenced by BusBroker::allAvailableResources(), BusBroker::availableResource(), hasResource(), insert(), ITemplateBroker::instruction(), operator=(), remove(), PendingAssignment::resource(), and PendingAssignment::tryNext().
| void SchedulingResourceSet::sort | ( | ) |
Sort the content of Scheduling Resource Set by the names of the resources.
Definition at line 328 of file SchedulingResource.cc.
References resources_.
Referenced by ITemplateBroker::findITemplates(), and PendingAssignment::isAssignmentPossible().
|
private |
Definition at line 184 of file SchedulingResource.hh.
Referenced by clear(), count(), hasResource(), insert(), operator=(), remove(), resource(), and sort().