OpenASIP
2.0
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
Functions
a
b
c
d
f
g
i
l
m
n
o
p
s
Variables
Typedefs
a
b
c
d
e
f
i
n
p
r
s
t
Enumerations
Enumerator
b
c
f
g
h
i
l
m
o
r
s
t
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
i
l
m
n
o
p
r
s
t
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
z
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
v
w
x
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Typedefs
a
b
c
d
f
i
j
l
m
n
o
p
r
s
t
u
w
Enumerations
Enumerator
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
base
idf
NullUnitImplementationLocation.cc
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 UnitImplementationLocation.cc
26
*
27
* Implementation of UnitImplementationLocation class.
28
*
29
* @author Lasse Laasonen 2005 (lasse.laasonen-no.spam-tut.fi)
30
* @note rating: red
31
*/
32
33
#include <string>
34
35
#include "
NullUnitImplementationLocation.hh
"
36
#include "
Application.hh
"
37
38
using
std::string;
39
40
namespace
IDF
{
41
42
NullUnitImplementationLocation
NullUnitImplementationLocation::instance_
;
43
44
/**
45
* The constructor.
46
*/
47
NullUnitImplementationLocation::NullUnitImplementationLocation
() :
48
UnitImplementationLocation
(
""
, 0,
""
) {
49
}
50
51
52
/**
53
* The destructor.
54
*/
55
NullUnitImplementationLocation::~NullUnitImplementationLocation
() {
56
}
57
58
59
/**
60
* Returns the only instance of NullUnitImplementationLocation.
61
*
62
* @return The instance.
63
*/
64
NullUnitImplementationLocation
&
65
NullUnitImplementationLocation::instance
() {
66
return
instance_
;
67
}
68
69
70
/**
71
* Aborts the program with error message.
72
*
73
* @return Never returns.
74
*/
75
std::string
76
NullUnitImplementationLocation::hdbFile
()
const
{
77
abortWithError
(
"NullUnitImplementationLocation::hdbFile"
);
78
return
""
;
79
}
80
81
/**
82
* Aborts the program with error message.
83
*
84
* @return Never returns.
85
*/
86
int
87
NullUnitImplementationLocation::id
()
const
{
88
abortWithError
(
"NullUnitImplementationLocation::id"
);
89
return
0;
90
}
91
92
93
/**
94
* Aborts the program with error message.
95
*
96
* @return Never returns.
97
*/
98
std::string
99
NullUnitImplementationLocation::unitName
()
const
{
100
abortWithError
(
"NullUnitImplementationLocation::unitName"
);
101
return
""
;
102
}
103
104
105
/**
106
* Aborts the program with error message.
107
*
108
* @return Never returns.
109
*/
110
void
111
NullUnitImplementationLocation::setParent
(
MachineImplementation
&) {
112
abortWithError
(
"NullUnitImplementationLocation::setParent"
);
113
}
114
}
IDF::UnitImplementationLocation
Definition:
UnitImplementationLocation.hh:48
IDF::NullUnitImplementationLocation::instance_
static NullUnitImplementationLocation instance_
Definition:
NullUnitImplementationLocation.hh:62
IDF::NullUnitImplementationLocation::~NullUnitImplementationLocation
virtual ~NullUnitImplementationLocation()
Definition:
NullUnitImplementationLocation.cc:55
IDF::NullUnitImplementationLocation::hdbFile
virtual std::string hdbFile() const
Definition:
NullUnitImplementationLocation.cc:76
IDF::NullUnitImplementationLocation::NullUnitImplementationLocation
NullUnitImplementationLocation()
Definition:
NullUnitImplementationLocation.cc:47
abortWithError
#define abortWithError(message)
Definition:
Application.hh:72
IDF::NullUnitImplementationLocation::instance
static NullUnitImplementationLocation & instance()
Definition:
NullUnitImplementationLocation.cc:65
IDF::NullUnitImplementationLocation
Definition:
NullUnitImplementationLocation.hh:47
Application.hh
NullUnitImplementationLocation.hh
IDF::NullUnitImplementationLocation::setParent
virtual void setParent(MachineImplementation &parent)
Definition:
NullUnitImplementationLocation.cc:111
IDF::NullUnitImplementationLocation::unitName
virtual std::string unitName() const
Definition:
NullUnitImplementationLocation.cc:99
IDF::NullUnitImplementationLocation::id
virtual int id() const
Definition:
NullUnitImplementationLocation.cc:87
IDF::MachineImplementation
Definition:
MachineImplementation.hh:54
IDF
Definition:
DSDBManager.hh:54
Generated by
1.8.17