OpenASIP  2.0
Classes | Namespaces | Macros
FUCostEstimationPlugin.hh File Reference
#include <string>
#include "Exception.hh"
#include "CostEstimatorTypes.hh"
#include "CostEstimationPlugin.hh"
#include "FUImplementationLocation.hh"
Include dependency graph for FUCostEstimationPlugin.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CostEstimator::FUCostEstimationPlugin
 

Namespaces

 HDB
 
 TTAProgram
 
 TTAMachine
 
 CostEstimator
 

Macros

#define EXPORT_FU_COST_ESTIMATOR_PLUGIN(PLUGIN_NAME__)
 
#define DESCRIPTION(TEXT__)
 

Detailed Description

Declaration of FUCostEstimationPlugin class and definition of CPP macro used to export FU cost estimation plugins.

Author
Pekka Jääskeläinen 2005 (pjaaskel-no.spam-cs.tut.fi)
Note
rating: red

Definition in file FUCostEstimationPlugin.hh.

Macro Definition Documentation

◆ DESCRIPTION

#define DESCRIPTION (   TEXT__)
Value:
public:\
virtual std::string description() const { return TEXT__; }\
int* XXXXXd_escrip__tion__

Defines the description string for the plugin.

Can be used only inside a plugin class definition.

Parameters
TEXT__The description string.

Definition at line 129 of file FUCostEstimationPlugin.hh.

◆ EXPORT_FU_COST_ESTIMATOR_PLUGIN

#define EXPORT_FU_COST_ESTIMATOR_PLUGIN (   PLUGIN_NAME__)
Value:
extern "C" { \
FUCostEstimationPlugin* create_estimator_plugin_##PLUGIN_NAME__(\
) { \
PLUGIN_NAME__* instance = new PLUGIN_NAME__(#PLUGIN_NAME__);\
return instance;\
}\
void delete_estimator_plugin_##PLUGIN_NAME__(\
FUCostEstimationPlugin* target) {\
delete target;\
}\
}

Exports the given class as an FU cost estimation plugin.

Definition at line 107 of file FUCostEstimationPlugin.hh.