OpenASIP
2.0
src
applibs
Estimator
CostEstimationPlugin.hh
Go to the documentation of this file.
1
/*
2
Copyright (c) 2002-2009 Tampere University.
3
4
This file is part of TTA-Based Codesign Environment (TCE).
5
6
Permission is hereby granted, free of charge, to any person obtaining a
7
copy of this software and associated documentation files (the "Software"),
8
to deal in the Software without restriction, including without limitation
9
the rights to use, copy, modify, merge, publish, distribute, sublicense,
10
and/or sell copies of the Software, and to permit persons to whom the
11
Software is furnished to do so, subject to the following conditions:
12
13
The above copyright notice and this permission notice shall be included in
14
all copies or substantial portions of the Software.
15
16
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22
DEALINGS IN THE SOFTWARE.
23
*/
24
/**
25
* @file CostEstimationPlugin.hh
26
*
27
* Declaration of CostEstimationPlugin class.
28
*
29
* @author Pekka Jääskeläinen 2005 (pjaaskel-no.spam-cs.tut.fi)
30
* @note rating: red
31
*/
32
33
#ifndef TTA_COST_ESTIMATION_PLUGIN_HH
34
#define TTA_COST_ESTIMATION_PLUGIN_HH
35
36
#include <string>
37
38
#include "
CostEstimatorTypes.hh
"
39
40
namespace
CostEstimator
{
41
/**
42
* A base interface for all classes that implement pluggable cost estimation
43
* algorithms.
44
*/
45
class
CostEstimationPlugin
{
46
public
:
47
CostEstimationPlugin
(
const
std::string&
name
);
48
virtual
~CostEstimationPlugin
();
49
50
virtual
std::string
name
()
const
;
51
virtual
std::string
description
()
const
;
52
53
protected
:
54
/// the name of the plugin class in the HDB; used to identify cost data
55
std::string
name_
;
56
};
57
58
}
59
60
#endif
61
CostEstimator::CostEstimationPlugin::description
virtual std::string description() const
Definition:
CostEstimationPlugin.cc:73
CostEstimator::CostEstimationPlugin::name
virtual std::string name() const
Definition:
CostEstimationPlugin.cc:63
CostEstimator::CostEstimationPlugin::~CostEstimationPlugin
virtual ~CostEstimationPlugin()
Definition:
CostEstimationPlugin.cc:54
CostEstimatorTypes.hh
CostEstimator::CostEstimationPlugin
Definition:
CostEstimationPlugin.hh:45
CostEstimator::CostEstimationPlugin::name_
std::string name_
the name of the plugin class in the HDB; used to identify cost data
Definition:
CostEstimationPlugin.hh:55
CostEstimator::CostEstimationPlugin::CostEstimationPlugin
CostEstimationPlugin(const std::string &name)
Definition:
CostEstimationPlugin.cc:46
CostEstimator
Definition:
CostEstimationPlugin.cc:36
Generated by
1.8.17