Otawa  0.10
otawa::DynProcessor Class Reference

This pseudo-processor allows to call processor based on their name. More...

#include <otawa/proc/DynProcessor.h>

Public Member Functions

 DynProcessor (cstring name) throw (ProcessorNotFound)
 Find the processor whose name is given. More...
 
 ~DynProcessor (void)
 
string name (void) const
 Get the name of the processor. More...
 
Version version (void) const
 Get the version of the processor. More...
 
void configure (const PropList &props)
 Configure the processor. More...
 
void process (WorkSpace *ws, const PropList &props=PropList::EMPTY)
 Process the given workspace on the processor. More...
 

Private Attributes

Processorproc
 

Detailed Description

This pseudo-processor allows to call processor based on their name.

It is useful when one does not want or does not can't to include the requested processor. For example, it may be useful when the processor is contained in a plugin. In this case, the plugin will be automatically plugged and used.

Constructor & Destructor Documentation

otawa::DynProcessor::~DynProcessor ( void  )

References proc.

Member Function Documentation

void otawa::DynProcessor::configure ( const PropList props)
inline

Configure the processor.

Parameters
propsConfiguration to pass to the processor.

References otawa::Processor::configure(), and proc.

string otawa::DynProcessor::name ( void  ) const
inline

Get the name of the processor.

Returns
Processor name.

References otawa::Processor::name(), and proc.

void otawa::DynProcessor::process ( WorkSpace ws,
const PropList props = PropList::EMPTY 
)

Process the given workspace on the processor.

Parameters
wsWorkspace to work on.
propsConfiguration properties.

References proc, and otawa::Processor::process().

Referenced by otawa::script::Script::work().

Version otawa::DynProcessor::version ( void  ) const
inline

Get the version of the processor.

Returns
Processor version.

References proc, and otawa::Processor::version().

Member Data Documentation

Processor* otawa::DynProcessor::proc
private

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