OpenASIP 2.2
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
RFCostEstimationPlugin.hh File Reference
#include <string>
#include "Exception.hh"
#include "CostEstimatorTypes.hh"
#include "CostEstimationPlugin.hh"
#include "RFImplementationLocation.hh"
Include dependency graph for RFCostEstimationPlugin.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CostEstimator::RFCostEstimationPlugin
 

Namespaces

namespace  HDB
 
namespace  TTAProgram
 
namespace  TTAMachine
 
namespace  CostEstimator
 

Macros

#define EXPORT_RF_COST_ESTIMATOR_PLUGIN(PLUGIN_NAME__)
 
#define DESCRIPTION(TEXT__)
 

Detailed Description

Declaration of RFCostEstimationPlugin class and definitions of CPP macros used to define and export RF cost estimation plugins.

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

Definition in file RFCostEstimationPlugin.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 130 of file RFCostEstimationPlugin.hh.

131 :\
132 virtual std::string description() const { return TEXT__; }\
133 int* XXXXXd_escrip__tion__

◆ EXPORT_RF_COST_ESTIMATOR_PLUGIN

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

Exports the given class as a RF cost estimation plugin.

Definition at line 108 of file RFCostEstimationPlugin.hh.

109 { \
110 RFCostEstimationPlugin* create_estimator_plugin_##PLUGIN_NAME__(\
111 ) { \
112 PLUGIN_NAME__* instance = new PLUGIN_NAME__(#PLUGIN_NAME__);\
113 return instance;\
114 }\
115 void delete_estimator_plugin_##PLUGIN_NAME__(\
116 RFCostEstimationPlugin* target) {\
117 delete target;\
118 }\
119}