OpenASIP
2.2
Loading...
Searching...
No Matches
src
applibs
hdb
FUExternalPort.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 FUExternalPort.cc
26
*
27
* Implementation of FUExternalPort class.
28
*
29
* @author Lasse Laasonen 2005 (lasse.laasonen-no.spam-tut.fi)
30
* @note rating: red
31
*/
32
33
#include "
FUExternalPort.hh
"
34
#include "
FUImplementation.hh
"
35
#include "
ContainerTools.hh
"
36
37
namespace
HDB
{
38
39
/**
40
* The constructor.
41
*
42
* Registers the port automatically to the given FUImplementation instance.
43
*
44
* @param name Name of the port.
45
* @param direction Direction of the port.
46
* @param widthFormula The formula for the width of the port.
47
* @param description Description of the port.
48
* @param parent The parent FUImplementation instance.
49
*/
50
FUExternalPort::FUExternalPort
(
51
const
std::string& name,
52
Direction
direction,
53
const
std::string& widthFormula,
54
const
std::string& description,
55
FUImplementation
& parent) :
56
ExternalPort
(name, direction, widthFormula, description) {
57
58
parent.
addExternalPort
(
this
);
59
}
60
61
62
/**
63
* The destructor.
64
*/
65
FUExternalPort::~FUExternalPort
() {
66
}
67
68
}
ContainerTools.hh
FUExternalPort.hh
FUImplementation.hh
HDB::ExternalPort
Definition
ExternalPort.hh:48
HDB::FUExternalPort::~FUExternalPort
virtual ~FUExternalPort()
Definition
FUExternalPort.cc:65
HDB::FUExternalPort::FUExternalPort
FUExternalPort(const std::string &name, Direction direction, const std::string &widthFormula, const std::string &description, FUImplementation &parent)
Definition
FUExternalPort.cc:50
HDB::FUImplementation
Definition
FUImplementation.hh:53
HDB::FUImplementation::addExternalPort
void addExternalPort(FUExternalPort *port)
Definition
FUImplementation.cc:300
HDB
Definition
CostDatabase.hh:49
HDB::Direction
Direction
Direction of port.
Definition
HDBTypes.hh:40
Generated by
1.9.8