Bitstream Interpretation Library (BIL)
0.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
xdl
model
Net.cpp
Go to the documentation of this file.
1
6
#include <
xdl/model/Net.hpp
>
7
8
using namespace
bil;
9
10
11
Net::Net
():
12
m_name(),
13
m_attributes(),
14
m_pinRefs(),
15
m_pipRefs(),
16
m_type(NetType::
WIRE
)
17
{
18
19
}
20
21
22
std::string&
Net::name
()
23
{
24
return
m_name;
25
}
26
27
28
const
std::string&
Net::name
()
const
29
{
30
return
m_name;
31
}
32
33
34
void
Net::type
(
NetType::net_t
type)
35
{
36
m_type =
type
;
37
}
38
39
40
NetType::net_t
Net::type
()
const
41
{
42
return
m_type;
43
}
44
45
46
PinRefs
&
Net::pinRefs
()
47
{
48
return
m_pinRefs;
49
}
50
51
52
const
PinRefs
&
Net::pinRefs
()
const
53
{
54
return
m_pinRefs;
55
}
56
57
58
PIPRefs
&
Net::pipRefs
()
59
{
60
return
m_pipRefs;
61
}
62
63
64
const
PIPRefs
&
Net::pipRefs
()
const
65
{
66
return
m_pipRefs;
67
}
68
69
70
std::string&
Net::attributes
()
71
{
72
return
m_attributes;
73
}
74
75
76
const
std::string&
Net::attributes
()
const
77
{
78
return
m_attributes;
79
}
80
81
82
void
Net::clear
()
83
{
84
m_name.clear();
85
m_attributes.clear();
86
m_type =
NetType::WIRE
;
87
m_pinRefs.clear();
88
m_pipRefs.clear();
89
}
Generated on Wed Aug 8 2012 21:57:41 for Bitstream Interpretation Library (BIL) by
1.8.1.1