Otawa  0.10
otawa::Resource Class Reference

#include <otawa/parexegraph/Resource.h>

Inheritance diagram for otawa::Resource:
otawa::QueueResource otawa::RegResource otawa::StageResource otawa::StartResource

Classes

struct  input_t
 

Public Types

enum  resource_type_t {
  BLOCK_START, STAGE, QUEUE, REG,
  EXTERNAL_CONFLICT, INTERNAL_CONFLICT, RES_TYPE_NUM
}
 
typedef struct
otawa::Resource::input_t 
input_t
 

Public Member Functions

 Resource (elm::String name, resource_type_t type, int index)
 
elm::String name ()
 
resource_type_t type ()
 
int index ()
 
void setIndex (int index)
 

Private Attributes

elm::String _name
 
resource_type_t _type
 
int _index
 

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
BLOCK_START 
STAGE 
QUEUE 
REG 
EXTERNAL_CONFLICT 
INTERNAL_CONFLICT 
RES_TYPE_NUM 

Constructor & Destructor Documentation

Resource::Resource ( elm::String  name,
resource_type_t  type,
int  index 
)
inline
Parameters
nameResource name (used for debugging purposes).
typeResource type
indexResource rank in the list of resources attached to a ParExeGraph. Resources are numbered in the order they are created.

Member Function Documentation

index Resource::index ( void  )
inline
Returns
Index of the resource (i.e. its rank in the list of resources related to a ParExeGraph).

References _index.

Referenced by otawa::ParExeGraph::clearDelays(), otawa::ParExeGraph::delta(), otawa::ParExeGraph::propagate(), otawa::QueueResource::QueueResource(), and setIndex().

elm::String Resource::name ( void  )
inline
Returns
Name of the resource.

References _name.

void otawa::Resource::setIndex ( int  index)
inline

References _index, and index().

resource_type_t Resource::type ( void  )
inline
Returns
Type of the resource.

References _type.

Referenced by otawa::ParExeGraph::delta().

Member Data Documentation

int otawa::Resource::_index
private

Referenced by index(), and setIndex().

elm::String otawa::Resource::_name
private

Referenced by name().

resource_type_t otawa::Resource::_type
private

Referenced by type().


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