OpenASIP 2.2
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
ICDecoderEstimatorPlugin.hh File Reference
#include "CostEstimationPlugin.hh"
#include "TransportPath.hh"
#include "SocketImplementationLocation.hh"
#include "BusImplementationLocation.hh"
Include dependency graph for ICDecoderEstimatorPlugin.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CostEstimator::ICDecoderEstimatorPlugin
 

Namespaces

namespace  TTAMachine
 
namespace  TTAProgram
 
namespace  HDB
 
namespace  IDF
 
namespace  CostEstimator
 

Macros

#define EXPORT_ICDEC_ESTIMATOR(PLUGIN_NAME__)
 

Detailed Description

Declaration of ICDecoderEstimatorPlugin class.

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

Definition in file ICDecoderEstimatorPlugin.hh.

Macro Definition Documentation

◆ EXPORT_ICDEC_ESTIMATOR

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

Exports the given class as an IC&decoder estimator.

Note
The class name of the estimator MUST be [PLUGIN_NAME__]Estimator, thus an estimator exported with EXPORT_ICDEC_ESTIMATOR(Example) exports a class called ExampleEstimator.

Definition at line 107 of file ICDecoderEstimatorPlugin.hh.

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