Bitstream Interpretation Library (BIL)  0.1
WireConnection.cpp
Go to the documentation of this file.
1 
7 
8 using namespace bil;
9 
10 
12  m_xOffset(0),
13  m_yOffset(0),
14  m_tileTypeIndex(0),
15  m_wireIndex(0)
16 {
17 
18 }
19 
20 
21 void WireConnection::xOffset(short offset)
22 {
23  m_xOffset = offset;
24 }
25 
26 
28 {
29  return m_xOffset;
30 }
31 
32 
33 void WireConnection::yOffset(short offset)
34 {
35  m_yOffset = offset;
36 }
37 
38 
40 {
41  return m_yOffset;
42 }
43 
44 
45 void WireConnection::tileTypeIndex(unsigned short index)
46 {
47  m_tileTypeIndex = index;
48 }
49 
50 
51 unsigned short WireConnection::tileTypeIndex() const
52 {
53  return m_tileTypeIndex;
54 }
55 
56 
57 void WireConnection::wireIndex(unsigned short index)
58 {
59  m_wireIndex = index;
60 }
61 
62 
63 unsigned short WireConnection::wireIndex() const
64 {
65  return m_wireIndex;
66 }
67 
68 
70 {
71  m_xOffset = 0;
72  m_yOffset = 0;
73  m_tileTypeIndex = 0;
74  m_wireIndex = 0;
75 }