vincent@3842
|
1 |
from pybindgen import Module, FileCodeSink, param, retval, cppclass
|
vincent@3842
|
2 |
|
vincent@3842
|
3 |
def register_types(module):
|
vincent@3842
|
4 |
root_module = module.get_root()
|
vincent@3842
|
5 |
|
vincent@3842
|
6 |
## emu-net-device.h: ns3::EmuNetDevice [class]
|
vincent@3842
|
7 |
module.add_class('EmuNetDevice', parent=root_module['ns3::NetDevice'])
|
vincent@3842
|
8 |
|
vincent@3842
|
9 |
## Register a nested module for the namespace internal
|
vincent@3842
|
10 |
|
vincent@3842
|
11 |
nested_module = module.add_cpp_namespace('internal')
|
vincent@3842
|
12 |
register_types_ns3_internal(nested_module)
|
vincent@3842
|
13 |
|
vincent@3842
|
14 |
|
vincent@3842
|
15 |
## Register a nested module for the namespace TimeStepPrecision
|
vincent@3842
|
16 |
|
vincent@3842
|
17 |
nested_module = module.add_cpp_namespace('TimeStepPrecision')
|
vincent@3842
|
18 |
register_types_ns3_TimeStepPrecision(nested_module)
|
vincent@3842
|
19 |
|
vincent@3842
|
20 |
|
vincent@3842
|
21 |
## Register a nested module for the namespace Config
|
vincent@3842
|
22 |
|
vincent@3842
|
23 |
nested_module = module.add_cpp_namespace('Config')
|
vincent@3842
|
24 |
register_types_ns3_Config(nested_module)
|
vincent@3842
|
25 |
|
vincent@3842
|
26 |
|
vincent@3842
|
27 |
## Register a nested module for the namespace olsr
|
vincent@3842
|
28 |
|
vincent@3842
|
29 |
nested_module = module.add_cpp_namespace('olsr')
|
vincent@3842
|
30 |
register_types_ns3_olsr(nested_module)
|
vincent@3842
|
31 |
|
vincent@3842
|
32 |
|
vincent@3842
|
33 |
def register_types_ns3_internal(module):
|
vincent@3842
|
34 |
root_module = module.get_root()
|
vincent@3842
|
35 |
|
vincent@3842
|
36 |
|
vincent@3842
|
37 |
def register_types_ns3_TimeStepPrecision(module):
|
vincent@3842
|
38 |
root_module = module.get_root()
|
vincent@3842
|
39 |
|
vincent@3842
|
40 |
|
vincent@3842
|
41 |
def register_types_ns3_Config(module):
|
vincent@3842
|
42 |
root_module = module.get_root()
|
vincent@3842
|
43 |
|
vincent@3842
|
44 |
|
vincent@3842
|
45 |
def register_types_ns3_olsr(module):
|
vincent@3842
|
46 |
root_module = module.get_root()
|
vincent@3842
|
47 |
|
vincent@3842
|
48 |
|
vincent@3842
|
49 |
def register_methods(root_module):
|
vincent@3842
|
50 |
register_Ns3EmuNetDevice_methods(root_module, root_module['ns3::EmuNetDevice'])
|
vincent@3842
|
51 |
return
|
vincent@3842
|
52 |
|
vincent@3842
|
53 |
def register_Ns3EmuNetDevice_methods(root_module, cls):
|
vincent@3842
|
54 |
## emu-net-device.h: ns3::EmuNetDevice::EmuNetDevice(ns3::EmuNetDevice const & arg0) [copy constructor]
|
vincent@3842
|
55 |
cls.add_constructor([param('ns3::EmuNetDevice const &', 'arg0')])
|
vincent@3842
|
56 |
## emu-net-device.h: static ns3::TypeId ns3::EmuNetDevice::GetTypeId() [member function]
|
vincent@3842
|
57 |
cls.add_method('GetTypeId',
|
vincent@3842
|
58 |
'ns3::TypeId',
|
vincent@3842
|
59 |
[],
|
vincent@3842
|
60 |
is_static=True)
|
vincent@3842
|
61 |
## emu-net-device.h: ns3::EmuNetDevice::EmuNetDevice() [constructor]
|
vincent@3842
|
62 |
cls.add_constructor([])
|
vincent@3842
|
63 |
## emu-net-device.h: void ns3::EmuNetDevice::SetDataRate(ns3::DataRate bps) [member function]
|
vincent@3842
|
64 |
cls.add_method('SetDataRate',
|
vincent@3842
|
65 |
'void',
|
vincent@3842
|
66 |
[param('ns3::DataRate', 'bps')])
|
vincent@3842
|
67 |
## emu-net-device.h: void ns3::EmuNetDevice::SetInterframeGap(ns3::Time t) [member function]
|
vincent@3842
|
68 |
cls.add_method('SetInterframeGap',
|
vincent@3842
|
69 |
'void',
|
vincent@3842
|
70 |
[param('ns3::Time', 't')])
|
vincent@3842
|
71 |
## emu-net-device.h: void ns3::EmuNetDevice::Start(ns3::Time tStart) [member function]
|
vincent@3842
|
72 |
cls.add_method('Start',
|
vincent@3842
|
73 |
'void',
|
vincent@3842
|
74 |
[param('ns3::Time', 'tStart')])
|
vincent@3842
|
75 |
## emu-net-device.h: void ns3::EmuNetDevice::Stop(ns3::Time tStop) [member function]
|
vincent@3842
|
76 |
cls.add_method('Stop',
|
vincent@3842
|
77 |
'void',
|
vincent@3842
|
78 |
[param('ns3::Time', 'tStop')])
|
vincent@3842
|
79 |
## emu-net-device.h: void ns3::EmuNetDevice::SetQueue(ns3::Ptr<ns3::Queue> queue) [member function]
|
vincent@3842
|
80 |
cls.add_method('SetQueue',
|
vincent@3842
|
81 |
'void',
|
vincent@3842
|
82 |
[param('ns3::Ptr< ns3::Queue >', 'queue')])
|
vincent@3842
|
83 |
## emu-net-device.h: void ns3::EmuNetDevice::Receive(ns3::Ptr<ns3::Packet> p) [member function]
|
vincent@3842
|
84 |
cls.add_method('Receive',
|
vincent@3842
|
85 |
'void',
|
vincent@3842
|
86 |
[param('ns3::Ptr< ns3::Packet >', 'p')])
|
vincent@3842
|
87 |
## emu-net-device.h: void ns3::EmuNetDevice::SetAddress(ns3::Mac48Address addr) [member function]
|
vincent@3842
|
88 |
cls.add_method('SetAddress',
|
vincent@3842
|
89 |
'void',
|
vincent@3842
|
90 |
[param('ns3::Mac48Address', 'addr')])
|
vincent@3842
|
91 |
## emu-net-device.h: void ns3::EmuNetDevice::SetName(std::string const name) [member function]
|
vincent@3842
|
92 |
cls.add_method('SetName',
|
vincent@3842
|
93 |
'void',
|
vincent@3842
|
94 |
[param('std::string const', 'name')],
|
vincent@3842
|
95 |
is_virtual=True)
|
vincent@3842
|
96 |
## emu-net-device.h: std::string ns3::EmuNetDevice::GetName() const [member function]
|
vincent@3842
|
97 |
cls.add_method('GetName',
|
vincent@3842
|
98 |
'std::string',
|
vincent@3842
|
99 |
[],
|
vincent@3842
|
100 |
is_const=True, is_virtual=True)
|
vincent@3842
|
101 |
## emu-net-device.h: void ns3::EmuNetDevice::SetIfIndex(uint32_t const index) [member function]
|
vincent@3842
|
102 |
cls.add_method('SetIfIndex',
|
vincent@3842
|
103 |
'void',
|
vincent@3842
|
104 |
[param('uint32_t const', 'index')],
|
vincent@3842
|
105 |
is_virtual=True)
|
vincent@3842
|
106 |
## emu-net-device.h: uint32_t ns3::EmuNetDevice::GetIfIndex() const [member function]
|
vincent@3842
|
107 |
cls.add_method('GetIfIndex',
|
vincent@3842
|
108 |
'uint32_t',
|
vincent@3842
|
109 |
[],
|
vincent@3842
|
110 |
is_const=True, is_virtual=True)
|
vincent@3842
|
111 |
## emu-net-device.h: ns3::Ptr<ns3::Channel> ns3::EmuNetDevice::GetChannel() const [member function]
|
vincent@3842
|
112 |
cls.add_method('GetChannel',
|
vincent@3842
|
113 |
'ns3::Ptr< ns3::Channel >',
|
vincent@3842
|
114 |
[],
|
vincent@3842
|
115 |
is_const=True, is_virtual=True)
|
vincent@3842
|
116 |
## emu-net-device.h: ns3::Address ns3::EmuNetDevice::GetAddress() const [member function]
|
vincent@3842
|
117 |
cls.add_method('GetAddress',
|
vincent@3842
|
118 |
'ns3::Address',
|
vincent@3842
|
119 |
[],
|
vincent@3842
|
120 |
is_const=True, is_virtual=True)
|
vincent@3842
|
121 |
## emu-net-device.h: bool ns3::EmuNetDevice::SetMtu(uint16_t const mtu) [member function]
|
vincent@3842
|
122 |
cls.add_method('SetMtu',
|
vincent@3842
|
123 |
'bool',
|
vincent@3842
|
124 |
[param('uint16_t const', 'mtu')],
|
vincent@3842
|
125 |
is_virtual=True)
|
vincent@3842
|
126 |
## emu-net-device.h: uint16_t ns3::EmuNetDevice::GetMtu() const [member function]
|
vincent@3842
|
127 |
cls.add_method('GetMtu',
|
vincent@3842
|
128 |
'uint16_t',
|
vincent@3842
|
129 |
[],
|
vincent@3842
|
130 |
is_const=True, is_virtual=True)
|
vincent@3842
|
131 |
## emu-net-device.h: bool ns3::EmuNetDevice::IsLinkUp() const [member function]
|
vincent@3842
|
132 |
cls.add_method('IsLinkUp',
|
vincent@3842
|
133 |
'bool',
|
vincent@3842
|
134 |
[],
|
vincent@3842
|
135 |
is_const=True, is_virtual=True)
|
vincent@3842
|
136 |
## emu-net-device.h: void ns3::EmuNetDevice::SetLinkChangeCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
|
vincent@3842
|
137 |
cls.add_method('SetLinkChangeCallback',
|
vincent@3842
|
138 |
'void',
|
vincent@3842
|
139 |
[param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')],
|
vincent@3842
|
140 |
is_virtual=True)
|
vincent@3842
|
141 |
## emu-net-device.h: bool ns3::EmuNetDevice::IsBroadcast() const [member function]
|
vincent@3842
|
142 |
cls.add_method('IsBroadcast',
|
vincent@3842
|
143 |
'bool',
|
vincent@3842
|
144 |
[],
|
vincent@3842
|
145 |
is_const=True, is_virtual=True)
|
vincent@3842
|
146 |
## emu-net-device.h: ns3::Address ns3::EmuNetDevice::GetBroadcast() const [member function]
|
vincent@3842
|
147 |
cls.add_method('GetBroadcast',
|
vincent@3842
|
148 |
'ns3::Address',
|
vincent@3842
|
149 |
[],
|
vincent@3842
|
150 |
is_const=True, is_virtual=True)
|
vincent@3842
|
151 |
## emu-net-device.h: bool ns3::EmuNetDevice::IsMulticast() const [member function]
|
vincent@3842
|
152 |
cls.add_method('IsMulticast',
|
vincent@3842
|
153 |
'bool',
|
vincent@3842
|
154 |
[],
|
vincent@3842
|
155 |
is_const=True, is_virtual=True)
|
vincent@3842
|
156 |
## emu-net-device.h: ns3::Address ns3::EmuNetDevice::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function]
|
vincent@3842
|
157 |
cls.add_method('GetMulticast',
|
vincent@3842
|
158 |
'ns3::Address',
|
vincent@3842
|
159 |
[param('ns3::Ipv4Address', 'multicastGroup')],
|
vincent@3842
|
160 |
is_const=True, is_virtual=True)
|
vincent@3842
|
161 |
## emu-net-device.h: bool ns3::EmuNetDevice::IsPointToPoint() const [member function]
|
vincent@3842
|
162 |
cls.add_method('IsPointToPoint',
|
vincent@3842
|
163 |
'bool',
|
vincent@3842
|
164 |
[],
|
vincent@3842
|
165 |
is_const=True, is_virtual=True)
|
vincent@3842
|
166 |
## emu-net-device.h: bool ns3::EmuNetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
|
vincent@3842
|
167 |
cls.add_method('Send',
|
vincent@3842
|
168 |
'bool',
|
vincent@3842
|
169 |
[param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')],
|
vincent@3842
|
170 |
is_virtual=True)
|
vincent@3842
|
171 |
## emu-net-device.h: bool ns3::EmuNetDevice::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function]
|
vincent@3842
|
172 |
cls.add_method('SendFrom',
|
vincent@3842
|
173 |
'bool',
|
vincent@3842
|
174 |
[param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')],
|
vincent@3842
|
175 |
is_virtual=True)
|
vincent@3842
|
176 |
## emu-net-device.h: ns3::Ptr<ns3::Node> ns3::EmuNetDevice::GetNode() const [member function]
|
vincent@3842
|
177 |
cls.add_method('GetNode',
|
vincent@3842
|
178 |
'ns3::Ptr< ns3::Node >',
|
vincent@3842
|
179 |
[],
|
vincent@3842
|
180 |
is_const=True, is_virtual=True)
|
vincent@3842
|
181 |
## emu-net-device.h: void ns3::EmuNetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function]
|
vincent@3842
|
182 |
cls.add_method('SetNode',
|
vincent@3842
|
183 |
'void',
|
vincent@3842
|
184 |
[param('ns3::Ptr< ns3::Node >', 'node')],
|
vincent@3842
|
185 |
is_virtual=True)
|
vincent@3842
|
186 |
## emu-net-device.h: bool ns3::EmuNetDevice::NeedsArp() const [member function]
|
vincent@3842
|
187 |
cls.add_method('NeedsArp',
|
vincent@3842
|
188 |
'bool',
|
vincent@3842
|
189 |
[],
|
vincent@3842
|
190 |
is_const=True, is_virtual=True)
|
vincent@3842
|
191 |
## emu-net-device.h: void ns3::EmuNetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty> cb) [member function]
|
vincent@3842
|
192 |
cls.add_method('SetReceiveCallback',
|
vincent@3842
|
193 |
'void',
|
vincent@3842
|
194 |
[param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::empty, ns3::empty >', 'cb')],
|
vincent@3842
|
195 |
is_virtual=True)
|
vincent@3842
|
196 |
## emu-net-device.h: void ns3::EmuNetDevice::SetPromiscReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType> cb) [member function]
|
vincent@3842
|
197 |
cls.add_method('SetPromiscReceiveCallback',
|
vincent@3842
|
198 |
'void',
|
vincent@3842
|
199 |
[param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType >', 'cb')],
|
vincent@3842
|
200 |
is_virtual=True)
|
vincent@3842
|
201 |
## emu-net-device.h: bool ns3::EmuNetDevice::SupportsSendFrom() const [member function]
|
vincent@3842
|
202 |
cls.add_method('SupportsSendFrom',
|
vincent@3842
|
203 |
'bool',
|
vincent@3842
|
204 |
[],
|
vincent@3842
|
205 |
is_const=True, is_virtual=True)
|
vincent@3842
|
206 |
## emu-net-device.h: void ns3::EmuNetDevice::DoDispose() [member function]
|
vincent@3842
|
207 |
cls.add_method('DoDispose',
|
vincent@3842
|
208 |
'void',
|
vincent@3842
|
209 |
[],
|
vincent@3842
|
210 |
visibility='private', is_virtual=True)
|
vincent@3842
|
211 |
return
|
vincent@3842
|
212 |
|
vincent@3842
|
213 |
def register_functions(root_module):
|
vincent@3842
|
214 |
module = root_module
|
vincent@3842
|
215 |
register_functions_ns3_internal(module.get_submodule('internal'), root_module)
|
vincent@3842
|
216 |
register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
|
vincent@3842
|
217 |
register_functions_ns3_Config(module.get_submodule('Config'), root_module)
|
vincent@3842
|
218 |
register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
|
vincent@3842
|
219 |
return
|
vincent@3842
|
220 |
|
vincent@3842
|
221 |
def register_functions_ns3_internal(module, root_module):
|
vincent@3842
|
222 |
return
|
vincent@3842
|
223 |
|
vincent@3842
|
224 |
def register_functions_ns3_TimeStepPrecision(module, root_module):
|
vincent@3842
|
225 |
return
|
vincent@3842
|
226 |
|
vincent@3842
|
227 |
def register_functions_ns3_Config(module, root_module):
|
vincent@3842
|
228 |
return
|
vincent@3842
|
229 |
|
vincent@3842
|
230 |
def register_functions_ns3_olsr(module, root_module):
|
vincent@3842
|
231 |
return
|
vincent@3842
|
232 |
|