OpenASIP  2.0
MachineCanvasLayoutConstraints.cc
Go to the documentation of this file.
1 /*
2  Copyright (c) 2014 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 MachineCanvasLayoutConstraints.cc
26  *
27  * Clang++ 3.4 did not compile-time resolve all the static member variable
28  * constants, leading to linkage errors. Therefore moved the intializations
29  * here.
30  *
31  * @author Pekka Jääskeläinen 2014
32  */
34 
45 const int MachineCanvasLayoutConstraints::SOCKET_SPACE = SOCKET_WIDTH;
50 const int MachineCanvasLayoutConstraints::BUS_MIN_HEIGHT = SEGMENT_HEIGHT_BASE;
52 const int MachineCanvasLayoutConstraints::BRIDGE_WIDTH = BUS_MIN_WIDTH;
MachineCanvasLayoutConstraints::UNIT_WIDTH
static const int UNIT_WIDTH
Minimum unit width.
Definition: MachineCanvasLayoutConstraints.hh:43
MachineCanvasLayoutConstraints::BRIDGE_SPACE
static const int BRIDGE_SPACE
Space dividing buses and bridges.
Definition: MachineCanvasLayoutConstraints.hh:81
MachineCanvasLayoutConstraints::UNIT_HEIGHT
static const int UNIT_HEIGHT
Minimum unit height.
Definition: MachineCanvasLayoutConstraints.hh:45
MachineCanvasLayoutConstraints::BUS_MIN_WIDTH
static const int BUS_MIN_WIDTH
Minimum width of a bus.
Definition: MachineCanvasLayoutConstraints.hh:71
MachineCanvasLayoutConstraints::PORT_BASE_WIDTH
static const int PORT_BASE_WIDTH
Constant used for port width calculation.
Definition: MachineCanvasLayoutConstraints.hh:55
MachineCanvasLayoutConstraints::SOCKET_SPACE
static const int SOCKET_SPACE
Space dividing unconnected sockets.
Definition: MachineCanvasLayoutConstraints.hh:63
MachineCanvasLayoutConstraints::SEGMENT_HEIGHT_BASE
static const int SEGMENT_HEIGHT_BASE
Height of a segment.
Definition: MachineCanvasLayoutConstraints.hh:69
MachineCanvasLayoutConstraints::PORT_MIN_WIDTH
static const int PORT_MIN_WIDTH
Minimum Width of a port.
Definition: MachineCanvasLayoutConstraints.hh:53
MachineCanvasLayoutConstraints::SOCKET_WIDTH
static const int SOCKET_WIDTH
Width of a socket.
Definition: MachineCanvasLayoutConstraints.hh:59
MachineCanvasLayoutConstraints::SOCKET_MIN_SPACE
static const int SOCKET_MIN_SPACE
Space dividing connected sockets.
Definition: MachineCanvasLayoutConstraints.hh:65
MachineCanvasLayoutConstraints::MAX_UNIT_NAME_WIDTH
static const int MAX_UNIT_NAME_WIDTH
Maximun unit name width in pixels.
Definition: MachineCanvasLayoutConstraints.hh:49
MachineCanvasLayoutConstraints::CONNECTIONS_SPACE
static const int CONNECTIONS_SPACE
Space reserved for port-socket-connections.
Definition: MachineCanvasLayoutConstraints.hh:87
MachineCanvasLayoutConstraints::PORT_WIDTH
static const int PORT_WIDTH
Default Width of a port.
Definition: MachineCanvasLayoutConstraints.hh:51
MachineCanvasLayoutConstraints::VIEW_MARGIN
static const int VIEW_MARGIN
Top margin for the whole processor view.
Definition: MachineCanvasLayoutConstraints.hh:83
MachineCanvasLayoutConstraints::TRIANGLE_HEIGHT
static const int TRIANGLE_HEIGHT
Size of the sockets' direction triangle.
Definition: MachineCanvasLayoutConstraints.hh:89
MachineCanvasLayoutConstraints::BUS_SPACE
static const int BUS_SPACE
Space between buses and bus chains.
Definition: MachineCanvasLayoutConstraints.hh:75
MachineCanvasLayoutConstraints::SEGMENT_SPACE
static const int SEGMENT_SPACE
Space dividing segments.
Definition: MachineCanvasLayoutConstraints.hh:67
MachineCanvasLayoutConstraints::BRIDGE_WIDTH
static const int BRIDGE_WIDTH
Width of a bridge.
Definition: MachineCanvasLayoutConstraints.hh:77
MachineCanvasLayoutConstraints::VIEW_LEFT_MARGIN
static const int VIEW_LEFT_MARGIN
Left margin.
Definition: MachineCanvasLayoutConstraints.hh:85
MachineCanvasLayoutConstraints.hh
MachineCanvasLayoutConstraints::BRIDGE_HEIGHT
static const int BRIDGE_HEIGHT
Height of a bridge.
Definition: MachineCanvasLayoutConstraints.hh:79
MachineCanvasLayoutConstraints::BUS_MIN_HEIGHT
static const int BUS_MIN_HEIGHT
Minimum height of a bus.
Definition: MachineCanvasLayoutConstraints.hh:73
MachineCanvasLayoutConstraints::SOCKET_HEIGHT
static const int SOCKET_HEIGHT
Height of a socket.
Definition: MachineCanvasLayoutConstraints.hh:61
MachineCanvasLayoutConstraints::UNIT_SPACE
static const int UNIT_SPACE
Space between units.
Definition: MachineCanvasLayoutConstraints.hh:47
MachineCanvasLayoutConstraints::PORT_SPACE
static const int PORT_SPACE
Space between ports.
Definition: MachineCanvasLayoutConstraints.hh:57