OpenASIP 2.2
Loading...
Searching...
No Matches
CostEstimationData.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 CostEstimationData.hh
26 *
27 * Declaration of CostEstimationData class.
28 *
29 * @author Veli-Pekka Jääskeläinen 2006 (vjaaskel-no.spam-cs.tut.fi)
30 * @note rating: red
31 */
32
33#ifndef TTA_COST_ESTIMATION_DATA_HH
34#define TTA_COST_ESTIMATION_DATA_HH
35
36#include "DBTypes.hh"
37#include "DataObject.hh"
38
39/**
40 * Class that represents one row in the cost estimation data table.
41 */
43public:
45 virtual ~CostEstimationData();
46
47 void setName(const std::string& name);
48 bool hasName() const;
49 std::string name() const;
50
52 bool hasValue() const;
53 DataObject value() const;
54
55 void setFUReference(RowID fuEntryID);
56 bool hasFUReference() const;
57 RowID fuReference() const;
58
59 void setRFReference(RowID rfEntryID);
60 bool hasRFReference() const;
61 RowID rfReference() const;
62
63 void setBusReference(RowID busEntryID);
64 bool hasBusReference() const;
65 RowID busReference() const;
66
67 void setSocketReference(RowID socketEntryID);
68 bool hasSocketReference() const;
69 RowID socketReference() const;
70
72 bool hasPluginID() const;
73 RowID pluginID() const;
74
75private:
76 /// Is the data name set?
78 /// Name of the data.
79 std::string name_;
80
81 /// Is the value set?
83 /// Value data.
85
86 /// Is the fu reference set?
88 /// FU reference.
90
91 /// Is the RF reference set?
93 /// RF reference.
95
96 /// Is the bus reference set?
98 /// Bus reference.
100
101 /// Is the socket reference set?
103 /// Socket reference.
105
106 /// Is the plugin ID set?
108 /// Plugin ID.
110};
111
112#include "CostEstimationData.icc"
113
114#endif
int RowID
Type definition of row ID in relational databases.
Definition DBTypes.hh:37
DataObject value() const
bool hasSocketReference_
Is the socket reference set?
bool hasRFReference_
Is the RF reference set?
void setBusReference(RowID busEntryID)
void setValue(const DataObject &value)
bool hasBusReference() const
bool hasFUReference() const
std::string name() const
bool hasName() const
RowID socketReference_
Socket reference.
void setPluginID(RowID pluginID)
bool hasValue() const
bool hasPluginID_
Is the plugin ID set?
RowID pluginID_
Plugin ID.
RowID socketReference() const
RowID busReference_
Bus reference.
void setRFReference(RowID rfEntryID)
bool hasSocketReference() const
RowID rfReference_
RF reference.
bool hasName_
Is the data name set?
bool hasBusReference_
Is the bus reference set?
DataObject value_
Value data.
bool hasValue_
Is the value set?
void setSocketReference(RowID socketEntryID)
void setFUReference(RowID fuEntryID)
void setName(const std::string &name)
std::string name_
Name of the data.
RowID fuReference_
FU reference.
bool hasFUReference_
Is the fu reference set?
bool hasRFReference() const
bool hasPluginID() const