author | Tom Henderson <tomh@tomh.org> |
Sat, 21 Nov 2009 16:33:39 -0800 | |
changeset 5766 | d1f9332fdaae |
parent 5754 | 7f0de9a416ea |
child 5856 | 7fd20c798a7d |
permissions | -rw-r--r-- |
5348 | 1 |
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers |
2 |
||
3 |
def register_types(module): |
|
4 |
root_module = module.get_root() |
|
5 |
||
6 |
## global-route-manager.h: ns3::GlobalRouteManager [class] |
|
7 |
module.add_class('GlobalRouteManager') |
|
8 |
## global-router-interface.h: ns3::GlobalRoutingLSA [class] |
|
9 |
module.add_class('GlobalRoutingLSA') |
|
10 |
## global-router-interface.h: ns3::GlobalRoutingLSA::LSType [enumeration] |
|
11 |
module.add_enum('LSType', ['Unknown', 'RouterLSA', 'NetworkLSA', 'SummaryLSA', 'SummaryLSA_ASBR', 'ASExternalLSAs'], outer_class=root_module['ns3::GlobalRoutingLSA']) |
|
12 |
## global-router-interface.h: ns3::GlobalRoutingLSA::SPFStatus [enumeration] |
|
13 |
module.add_enum('SPFStatus', ['LSA_SPF_NOT_EXPLORED', 'LSA_SPF_CANDIDATE', 'LSA_SPF_IN_SPFTREE'], outer_class=root_module['ns3::GlobalRoutingLSA']) |
|
14 |
## global-router-interface.h: ns3::GlobalRoutingLinkRecord [class] |
|
15 |
module.add_class('GlobalRoutingLinkRecord') |
|
16 |
## global-router-interface.h: ns3::GlobalRoutingLinkRecord::LinkType [enumeration] |
|
17 |
module.add_enum('LinkType', ['Unknown', 'PointToPoint', 'TransitNetwork', 'StubNetwork', 'VirtualLink'], outer_class=root_module['ns3::GlobalRoutingLinkRecord']) |
|
18 |
## global-router-interface.h: ns3::GlobalRouter [class] |
|
19 |
module.add_class('GlobalRouter', is_singleton=True, parent=root_module['ns3::Object']) |
|
20 |
## ipv4-global-routing.h: ns3::Ipv4GlobalRouting [class] |
|
21 |
module.add_class('Ipv4GlobalRouting', parent=root_module['ns3::Ipv4RoutingProtocol']) |
|
22 |
||
23 |
## Register a nested module for the namespace Config |
|
24 |
||
25 |
nested_module = module.add_cpp_namespace('Config') |
|
26 |
register_types_ns3_Config(nested_module) |
|
27 |
||
28 |
||
29 |
## Register a nested module for the namespace TimeStepPrecision |
|
30 |
||
31 |
nested_module = module.add_cpp_namespace('TimeStepPrecision') |
|
32 |
register_types_ns3_TimeStepPrecision(nested_module) |
|
33 |
||
34 |
||
35 |
## Register a nested module for the namespace addressUtils |
|
36 |
||
37 |
nested_module = module.add_cpp_namespace('addressUtils') |
|
38 |
register_types_ns3_addressUtils(nested_module) |
|
39 |
||
40 |
||
5753
8c105b521d1b
Python: rescan; need new 'section precedence' API from PyBindGen; other PBG bug fixes pulled from new version.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
5348
diff
changeset
|
41 |
## Register a nested module for the namespace aodv |
8c105b521d1b
Python: rescan; need new 'section precedence' API from PyBindGen; other PBG bug fixes pulled from new version.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
5348
diff
changeset
|
42 |
|
8c105b521d1b
Python: rescan; need new 'section precedence' API from PyBindGen; other PBG bug fixes pulled from new version.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
5348
diff
changeset
|
43 |
nested_module = module.add_cpp_namespace('aodv') |
8c105b521d1b
Python: rescan; need new 'section precedence' API from PyBindGen; other PBG bug fixes pulled from new version.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
5348
diff
changeset
|
44 |
register_types_ns3_aodv(nested_module) |
8c105b521d1b
Python: rescan; need new 'section precedence' API from PyBindGen; other PBG bug fixes pulled from new version.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
5348
diff
changeset
|
45 |
|
8c105b521d1b
Python: rescan; need new 'section precedence' API from PyBindGen; other PBG bug fixes pulled from new version.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
5348
diff
changeset
|
46 |
|
5348 | 47 |
## Register a nested module for the namespace dot11s |
48 |
||
49 |
nested_module = module.add_cpp_namespace('dot11s') |
|
50 |
register_types_ns3_dot11s(nested_module) |
|
51 |
||
52 |
||
53 |
## Register a nested module for the namespace flame |
|
54 |
||
55 |
nested_module = module.add_cpp_namespace('flame') |
|
56 |
register_types_ns3_flame(nested_module) |
|
57 |
||
58 |
||
59 |
## Register a nested module for the namespace internal |
|
60 |
||
61 |
nested_module = module.add_cpp_namespace('internal') |
|
62 |
register_types_ns3_internal(nested_module) |
|
63 |
||
64 |
||
65 |
## Register a nested module for the namespace olsr |
|
66 |
||
67 |
nested_module = module.add_cpp_namespace('olsr') |
|
68 |
register_types_ns3_olsr(nested_module) |
|
69 |
||
70 |
||
71 |
def register_types_ns3_Config(module): |
|
72 |
root_module = module.get_root() |
|
73 |
||
74 |
||
75 |
def register_types_ns3_TimeStepPrecision(module): |
|
76 |
root_module = module.get_root() |
|
77 |
||
78 |
||
79 |
def register_types_ns3_addressUtils(module): |
|
80 |
root_module = module.get_root() |
|
81 |
||
82 |
||
5753
8c105b521d1b
Python: rescan; need new 'section precedence' API from PyBindGen; other PBG bug fixes pulled from new version.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
5348
diff
changeset
|
83 |
def register_types_ns3_aodv(module): |
8c105b521d1b
Python: rescan; need new 'section precedence' API from PyBindGen; other PBG bug fixes pulled from new version.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
5348
diff
changeset
|
84 |
root_module = module.get_root() |
8c105b521d1b
Python: rescan; need new 'section precedence' API from PyBindGen; other PBG bug fixes pulled from new version.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
5348
diff
changeset
|
85 |
|
8c105b521d1b
Python: rescan; need new 'section precedence' API from PyBindGen; other PBG bug fixes pulled from new version.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
5348
diff
changeset
|
86 |
|
5348 | 87 |
def register_types_ns3_dot11s(module): |
88 |
root_module = module.get_root() |
|
89 |
||
90 |
||
91 |
def register_types_ns3_flame(module): |
|
92 |
root_module = module.get_root() |
|
93 |
||
94 |
||
95 |
def register_types_ns3_internal(module): |
|
96 |
root_module = module.get_root() |
|
97 |
||
98 |
||
99 |
def register_types_ns3_olsr(module): |
|
100 |
root_module = module.get_root() |
|
101 |
||
102 |
||
103 |
def register_methods(root_module): |
|
104 |
register_Ns3GlobalRouteManager_methods(root_module, root_module['ns3::GlobalRouteManager']) |
|
105 |
register_Ns3GlobalRoutingLSA_methods(root_module, root_module['ns3::GlobalRoutingLSA']) |
|
106 |
register_Ns3GlobalRoutingLinkRecord_methods(root_module, root_module['ns3::GlobalRoutingLinkRecord']) |
|
107 |
register_Ns3GlobalRouter_methods(root_module, root_module['ns3::GlobalRouter']) |
|
108 |
register_Ns3Ipv4GlobalRouting_methods(root_module, root_module['ns3::Ipv4GlobalRouting']) |
|
109 |
return |
|
110 |
||
111 |
def register_Ns3GlobalRouteManager_methods(root_module, cls): |
|
112 |
## global-route-manager.h: static uint32_t ns3::GlobalRouteManager::AllocateRouterId() [member function] |
|
113 |
cls.add_method('AllocateRouterId', |
|
114 |
'uint32_t', |
|
115 |
[], |
|
116 |
is_static=True) |
|
117 |
## global-route-manager.h: static void ns3::GlobalRouteManager::DeleteGlobalRoutes() [member function] |
|
118 |
cls.add_method('DeleteGlobalRoutes', |
|
119 |
'void', |
|
120 |
[], |
|
121 |
is_static=True) |
|
122 |
## global-route-manager.h: static void ns3::GlobalRouteManager::BuildGlobalRoutingDatabase() [member function] |
|
123 |
cls.add_method('BuildGlobalRoutingDatabase', |
|
124 |
'void', |
|
125 |
[], |
|
126 |
is_static=True) |
|
127 |
## global-route-manager.h: static void ns3::GlobalRouteManager::InitializeRoutes() [member function] |
|
128 |
cls.add_method('InitializeRoutes', |
|
129 |
'void', |
|
130 |
[], |
|
131 |
is_static=True) |
|
132 |
return |
|
133 |
||
134 |
def register_Ns3GlobalRoutingLSA_methods(root_module, cls): |
|
135 |
cls.add_output_stream_operator() |
|
136 |
## global-router-interface.h: ns3::GlobalRoutingLSA::GlobalRoutingLSA() [constructor] |
|
137 |
cls.add_constructor([]) |
|
138 |
## global-router-interface.h: ns3::GlobalRoutingLSA::GlobalRoutingLSA(ns3::GlobalRoutingLSA::SPFStatus status, ns3::Ipv4Address linkStateId, ns3::Ipv4Address advertisingRtr) [constructor] |
|
139 |
cls.add_constructor([param('ns3::GlobalRoutingLSA::SPFStatus', 'status'), param('ns3::Ipv4Address', 'linkStateId'), param('ns3::Ipv4Address', 'advertisingRtr')]) |
|
140 |
## global-router-interface.h: ns3::GlobalRoutingLSA::GlobalRoutingLSA(ns3::GlobalRoutingLSA & lsa) [constructor] |
|
141 |
cls.add_constructor([param('ns3::GlobalRoutingLSA &', 'lsa')]) |
|
142 |
## global-router-interface.h: uint32_t ns3::GlobalRoutingLSA::AddAttachedRouter(ns3::Ipv4Address addr) [member function] |
|
143 |
cls.add_method('AddAttachedRouter', |
|
144 |
'uint32_t', |
|
145 |
[param('ns3::Ipv4Address', 'addr')]) |
|
146 |
## global-router-interface.h: uint32_t ns3::GlobalRoutingLSA::AddLinkRecord(ns3::GlobalRoutingLinkRecord * lr) [member function] |
|
147 |
cls.add_method('AddLinkRecord', |
|
148 |
'uint32_t', |
|
149 |
[param('ns3::GlobalRoutingLinkRecord *', 'lr')]) |
|
150 |
## global-router-interface.h: void ns3::GlobalRoutingLSA::ClearLinkRecords() [member function] |
|
151 |
cls.add_method('ClearLinkRecords', |
|
152 |
'void', |
|
153 |
[]) |
|
154 |
## global-router-interface.h: void ns3::GlobalRoutingLSA::CopyLinkRecords(ns3::GlobalRoutingLSA const & lsa) [member function] |
|
155 |
cls.add_method('CopyLinkRecords', |
|
156 |
'void', |
|
157 |
[param('ns3::GlobalRoutingLSA const &', 'lsa')]) |
|
158 |
## global-router-interface.h: ns3::Ipv4Address ns3::GlobalRoutingLSA::GetAdvertisingRouter() const [member function] |
|
159 |
cls.add_method('GetAdvertisingRouter', |
|
160 |
'ns3::Ipv4Address', |
|
161 |
[], |
|
162 |
is_const=True) |
|
163 |
## global-router-interface.h: ns3::Ipv4Address ns3::GlobalRoutingLSA::GetAttachedRouter(uint32_t n) const [member function] |
|
164 |
cls.add_method('GetAttachedRouter', |
|
165 |
'ns3::Ipv4Address', |
|
166 |
[param('uint32_t', 'n')], |
|
167 |
is_const=True) |
|
168 |
## global-router-interface.h: ns3::GlobalRoutingLSA::LSType ns3::GlobalRoutingLSA::GetLSType() const [member function] |
|
169 |
cls.add_method('GetLSType', |
|
170 |
'ns3::GlobalRoutingLSA::LSType', |
|
171 |
[], |
|
172 |
is_const=True) |
|
173 |
## global-router-interface.h: ns3::GlobalRoutingLinkRecord * ns3::GlobalRoutingLSA::GetLinkRecord(uint32_t n) const [member function] |
|
174 |
cls.add_method('GetLinkRecord', |
|
175 |
'ns3::GlobalRoutingLinkRecord *', |
|
176 |
[param('uint32_t', 'n')], |
|
177 |
is_const=True) |
|
178 |
## global-router-interface.h: ns3::Ipv4Address ns3::GlobalRoutingLSA::GetLinkStateId() const [member function] |
|
179 |
cls.add_method('GetLinkStateId', |
|
180 |
'ns3::Ipv4Address', |
|
181 |
[], |
|
182 |
is_const=True) |
|
183 |
## global-router-interface.h: uint32_t ns3::GlobalRoutingLSA::GetNAttachedRouters() const [member function] |
|
184 |
cls.add_method('GetNAttachedRouters', |
|
185 |
'uint32_t', |
|
186 |
[], |
|
187 |
is_const=True) |
|
188 |
## global-router-interface.h: uint32_t ns3::GlobalRoutingLSA::GetNLinkRecords() const [member function] |
|
189 |
cls.add_method('GetNLinkRecords', |
|
190 |
'uint32_t', |
|
191 |
[], |
|
192 |
is_const=True) |
|
193 |
## global-router-interface.h: ns3::Ipv4Mask ns3::GlobalRoutingLSA::GetNetworkLSANetworkMask() const [member function] |
|
194 |
cls.add_method('GetNetworkLSANetworkMask', |
|
195 |
'ns3::Ipv4Mask', |
|
196 |
[], |
|
197 |
is_const=True) |
|
198 |
## global-router-interface.h: ns3::Ptr<ns3::Node> ns3::GlobalRoutingLSA::GetNode() const [member function] |
|
199 |
cls.add_method('GetNode', |
|
200 |
'ns3::Ptr< ns3::Node >', |
|
201 |
[], |
|
202 |
is_const=True) |
|
203 |
## global-router-interface.h: ns3::GlobalRoutingLSA::SPFStatus ns3::GlobalRoutingLSA::GetStatus() const [member function] |
|
204 |
cls.add_method('GetStatus', |
|
205 |
'ns3::GlobalRoutingLSA::SPFStatus', |
|
206 |
[], |
|
207 |
is_const=True) |
|
208 |
## global-router-interface.h: bool ns3::GlobalRoutingLSA::IsEmpty() const [member function] |
|
209 |
cls.add_method('IsEmpty', |
|
210 |
'bool', |
|
211 |
[], |
|
212 |
is_const=True) |
|
213 |
## global-router-interface.h: void ns3::GlobalRoutingLSA::Print(std::ostream & os) const [member function] |
|
214 |
cls.add_method('Print', |
|
215 |
'void', |
|
216 |
[param('std::ostream &', 'os')], |
|
217 |
is_const=True) |
|
218 |
## global-router-interface.h: void ns3::GlobalRoutingLSA::SetAdvertisingRouter(ns3::Ipv4Address rtr) [member function] |
|
219 |
cls.add_method('SetAdvertisingRouter', |
|
220 |
'void', |
|
221 |
[param('ns3::Ipv4Address', 'rtr')]) |
|
222 |
## global-router-interface.h: void ns3::GlobalRoutingLSA::SetLSType(ns3::GlobalRoutingLSA::LSType typ) [member function] |
|
223 |
cls.add_method('SetLSType', |
|
224 |
'void', |
|
225 |
[param('ns3::GlobalRoutingLSA::LSType', 'typ')]) |
|
226 |
## global-router-interface.h: void ns3::GlobalRoutingLSA::SetLinkStateId(ns3::Ipv4Address addr) [member function] |
|
227 |
cls.add_method('SetLinkStateId', |
|
228 |
'void', |
|
229 |
[param('ns3::Ipv4Address', 'addr')]) |
|
230 |
## global-router-interface.h: void ns3::GlobalRoutingLSA::SetNetworkLSANetworkMask(ns3::Ipv4Mask mask) [member function] |
|
231 |
cls.add_method('SetNetworkLSANetworkMask', |
|
232 |
'void', |
|
233 |
[param('ns3::Ipv4Mask', 'mask')]) |
|
234 |
## global-router-interface.h: void ns3::GlobalRoutingLSA::SetNode(ns3::Ptr<ns3::Node> node) [member function] |
|
235 |
cls.add_method('SetNode', |
|
236 |
'void', |
|
237 |
[param('ns3::Ptr< ns3::Node >', 'node')]) |
|
238 |
## global-router-interface.h: void ns3::GlobalRoutingLSA::SetStatus(ns3::GlobalRoutingLSA::SPFStatus status) [member function] |
|
239 |
cls.add_method('SetStatus', |
|
240 |
'void', |
|
241 |
[param('ns3::GlobalRoutingLSA::SPFStatus', 'status')]) |
|
242 |
return |
|
243 |
||
244 |
def register_Ns3GlobalRoutingLinkRecord_methods(root_module, cls): |
|
245 |
## global-router-interface.h: ns3::GlobalRoutingLinkRecord::GlobalRoutingLinkRecord(ns3::GlobalRoutingLinkRecord const & arg0) [copy constructor] |
|
246 |
cls.add_constructor([param('ns3::GlobalRoutingLinkRecord const &', 'arg0')]) |
|
247 |
## global-router-interface.h: ns3::GlobalRoutingLinkRecord::GlobalRoutingLinkRecord() [constructor] |
|
248 |
cls.add_constructor([]) |
|
249 |
## global-router-interface.h: ns3::GlobalRoutingLinkRecord::GlobalRoutingLinkRecord(ns3::GlobalRoutingLinkRecord::LinkType linkType, ns3::Ipv4Address linkId, ns3::Ipv4Address linkData, uint16_t metric) [constructor] |
|
250 |
cls.add_constructor([param('ns3::GlobalRoutingLinkRecord::LinkType', 'linkType'), param('ns3::Ipv4Address', 'linkId'), param('ns3::Ipv4Address', 'linkData'), param('uint16_t', 'metric')]) |
|
251 |
## global-router-interface.h: ns3::Ipv4Address ns3::GlobalRoutingLinkRecord::GetLinkData() const [member function] |
|
252 |
cls.add_method('GetLinkData', |
|
253 |
'ns3::Ipv4Address', |
|
254 |
[], |
|
255 |
is_const=True) |
|
256 |
## global-router-interface.h: ns3::Ipv4Address ns3::GlobalRoutingLinkRecord::GetLinkId() const [member function] |
|
257 |
cls.add_method('GetLinkId', |
|
258 |
'ns3::Ipv4Address', |
|
259 |
[], |
|
260 |
is_const=True) |
|
261 |
## global-router-interface.h: ns3::GlobalRoutingLinkRecord::LinkType ns3::GlobalRoutingLinkRecord::GetLinkType() const [member function] |
|
262 |
cls.add_method('GetLinkType', |
|
263 |
'ns3::GlobalRoutingLinkRecord::LinkType', |
|
264 |
[], |
|
265 |
is_const=True) |
|
266 |
## global-router-interface.h: uint16_t ns3::GlobalRoutingLinkRecord::GetMetric() const [member function] |
|
267 |
cls.add_method('GetMetric', |
|
268 |
'uint16_t', |
|
269 |
[], |
|
270 |
is_const=True) |
|
271 |
## global-router-interface.h: void ns3::GlobalRoutingLinkRecord::SetLinkData(ns3::Ipv4Address addr) [member function] |
|
272 |
cls.add_method('SetLinkData', |
|
273 |
'void', |
|
274 |
[param('ns3::Ipv4Address', 'addr')]) |
|
275 |
## global-router-interface.h: void ns3::GlobalRoutingLinkRecord::SetLinkId(ns3::Ipv4Address addr) [member function] |
|
276 |
cls.add_method('SetLinkId', |
|
277 |
'void', |
|
278 |
[param('ns3::Ipv4Address', 'addr')]) |
|
279 |
## global-router-interface.h: void ns3::GlobalRoutingLinkRecord::SetLinkType(ns3::GlobalRoutingLinkRecord::LinkType linkType) [member function] |
|
280 |
cls.add_method('SetLinkType', |
|
281 |
'void', |
|
282 |
[param('ns3::GlobalRoutingLinkRecord::LinkType', 'linkType')]) |
|
283 |
## global-router-interface.h: void ns3::GlobalRoutingLinkRecord::SetMetric(uint16_t metric) [member function] |
|
284 |
cls.add_method('SetMetric', |
|
285 |
'void', |
|
286 |
[param('uint16_t', 'metric')]) |
|
287 |
return |
|
288 |
||
289 |
def register_Ns3GlobalRouter_methods(root_module, cls): |
|
290 |
## global-router-interface.h: static ns3::TypeId ns3::GlobalRouter::GetTypeId() [member function] |
|
291 |
cls.add_method('GetTypeId', |
|
292 |
'ns3::TypeId', |
|
293 |
[], |
|
294 |
is_static=True) |
|
295 |
## global-router-interface.h: ns3::GlobalRouter::GlobalRouter() [constructor] |
|
296 |
cls.add_constructor([]) |
|
297 |
## global-router-interface.h: void ns3::GlobalRouter::SetRoutingProtocol(ns3::Ptr<ns3::Ipv4GlobalRouting> routing) [member function] |
|
298 |
cls.add_method('SetRoutingProtocol', |
|
299 |
'void', |
|
300 |
[param('ns3::Ptr< ns3::Ipv4GlobalRouting >', 'routing')]) |
|
301 |
## global-router-interface.h: ns3::Ptr<ns3::Ipv4GlobalRouting> ns3::GlobalRouter::GetRoutingProtocol() [member function] |
|
302 |
cls.add_method('GetRoutingProtocol', |
|
303 |
'ns3::Ptr< ns3::Ipv4GlobalRouting >', |
|
304 |
[]) |
|
305 |
## global-router-interface.h: ns3::Ipv4Address ns3::GlobalRouter::GetRouterId() const [member function] |
|
306 |
cls.add_method('GetRouterId', |
|
307 |
'ns3::Ipv4Address', |
|
308 |
[], |
|
309 |
is_const=True) |
|
310 |
## global-router-interface.h: uint32_t ns3::GlobalRouter::DiscoverLSAs() [member function] |
|
311 |
cls.add_method('DiscoverLSAs', |
|
312 |
'uint32_t', |
|
313 |
[]) |
|
314 |
## global-router-interface.h: uint32_t ns3::GlobalRouter::GetNumLSAs() const [member function] |
|
315 |
cls.add_method('GetNumLSAs', |
|
316 |
'uint32_t', |
|
317 |
[], |
|
318 |
is_const=True) |
|
319 |
## global-router-interface.h: bool ns3::GlobalRouter::GetLSA(uint32_t n, ns3::GlobalRoutingLSA & lsa) const [member function] |
|
320 |
cls.add_method('GetLSA', |
|
321 |
'bool', |
|
322 |
[param('uint32_t', 'n'), param('ns3::GlobalRoutingLSA &', 'lsa')], |
|
323 |
is_const=True) |
|
324 |
## global-router-interface.h: void ns3::GlobalRouter::InjectRoute(ns3::Ipv4Address network, ns3::Ipv4Mask networkMask) [member function] |
|
325 |
cls.add_method('InjectRoute', |
|
326 |
'void', |
|
327 |
[param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'networkMask')]) |
|
328 |
## global-router-interface.h: uint32_t ns3::GlobalRouter::GetNInjectedRoutes() [member function] |
|
329 |
cls.add_method('GetNInjectedRoutes', |
|
330 |
'uint32_t', |
|
331 |
[]) |
|
332 |
## global-router-interface.h: ns3::Ipv4RoutingTableEntry * ns3::GlobalRouter::GetInjectedRoute(uint32_t i) [member function] |
|
333 |
cls.add_method('GetInjectedRoute', |
|
334 |
'ns3::Ipv4RoutingTableEntry *', |
|
335 |
[param('uint32_t', 'i')]) |
|
336 |
## global-router-interface.h: void ns3::GlobalRouter::RemoveInjectedRoute(uint32_t i) [member function] |
|
337 |
cls.add_method('RemoveInjectedRoute', |
|
338 |
'void', |
|
339 |
[param('uint32_t', 'i')]) |
|
340 |
## global-router-interface.h: bool ns3::GlobalRouter::WithdrawRoute(ns3::Ipv4Address network, ns3::Ipv4Mask networkMask) [member function] |
|
341 |
cls.add_method('WithdrawRoute', |
|
342 |
'bool', |
|
343 |
[param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'networkMask')]) |
|
344 |
## global-router-interface.h: void ns3::GlobalRouter::DoDispose() [member function] |
|
345 |
cls.add_method('DoDispose', |
|
346 |
'void', |
|
347 |
[], |
|
348 |
visibility='private', is_virtual=True) |
|
349 |
return |
|
350 |
||
351 |
def register_Ns3Ipv4GlobalRouting_methods(root_module, cls): |
|
352 |
## ipv4-global-routing.h: ns3::Ipv4GlobalRouting::Ipv4GlobalRouting(ns3::Ipv4GlobalRouting const & arg0) [copy constructor] |
|
353 |
cls.add_constructor([param('ns3::Ipv4GlobalRouting const &', 'arg0')]) |
|
354 |
## ipv4-global-routing.h: ns3::Ipv4GlobalRouting::Ipv4GlobalRouting() [constructor] |
|
355 |
cls.add_constructor([]) |
|
356 |
## ipv4-global-routing.h: void ns3::Ipv4GlobalRouting::AddASExternalRouteTo(ns3::Ipv4Address network, ns3::Ipv4Mask networkMask, ns3::Ipv4Address nextHop, uint32_t interface) [member function] |
|
357 |
cls.add_method('AddASExternalRouteTo', |
|
358 |
'void', |
|
359 |
[param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'networkMask'), param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface')]) |
|
360 |
## ipv4-global-routing.h: void ns3::Ipv4GlobalRouting::AddHostRouteTo(ns3::Ipv4Address dest, ns3::Ipv4Address nextHop, uint32_t interface) [member function] |
|
361 |
cls.add_method('AddHostRouteTo', |
|
362 |
'void', |
|
363 |
[param('ns3::Ipv4Address', 'dest'), param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface')]) |
|
364 |
## ipv4-global-routing.h: void ns3::Ipv4GlobalRouting::AddHostRouteTo(ns3::Ipv4Address dest, uint32_t interface) [member function] |
|
365 |
cls.add_method('AddHostRouteTo', |
|
366 |
'void', |
|
367 |
[param('ns3::Ipv4Address', 'dest'), param('uint32_t', 'interface')]) |
|
368 |
## ipv4-global-routing.h: void ns3::Ipv4GlobalRouting::AddNetworkRouteTo(ns3::Ipv4Address network, ns3::Ipv4Mask networkMask, ns3::Ipv4Address nextHop, uint32_t interface) [member function] |
|
369 |
cls.add_method('AddNetworkRouteTo', |
|
370 |
'void', |
|
371 |
[param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'networkMask'), param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface')]) |
|
372 |
## ipv4-global-routing.h: void ns3::Ipv4GlobalRouting::AddNetworkRouteTo(ns3::Ipv4Address network, ns3::Ipv4Mask networkMask, uint32_t interface) [member function] |
|
373 |
cls.add_method('AddNetworkRouteTo', |
|
374 |
'void', |
|
375 |
[param('ns3::Ipv4Address', 'network'), param('ns3::Ipv4Mask', 'networkMask'), param('uint32_t', 'interface')]) |
|
376 |
## ipv4-global-routing.h: uint32_t ns3::Ipv4GlobalRouting::GetNRoutes() [member function] |
|
377 |
cls.add_method('GetNRoutes', |
|
378 |
'uint32_t', |
|
379 |
[]) |
|
380 |
## ipv4-global-routing.h: ns3::Ipv4RoutingTableEntry * ns3::Ipv4GlobalRouting::GetRoute(uint32_t i) [member function] |
|
381 |
cls.add_method('GetRoute', |
|
382 |
'ns3::Ipv4RoutingTableEntry *', |
|
383 |
[param('uint32_t', 'i')]) |
|
384 |
## ipv4-global-routing.h: static ns3::TypeId ns3::Ipv4GlobalRouting::GetTypeId() [member function] |
|
385 |
cls.add_method('GetTypeId', |
|
386 |
'ns3::TypeId', |
|
387 |
[], |
|
388 |
is_static=True) |
|
389 |
## ipv4-global-routing.h: void ns3::Ipv4GlobalRouting::NotifyAddAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function] |
|
390 |
cls.add_method('NotifyAddAddress', |
|
391 |
'void', |
|
392 |
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')], |
|
393 |
is_virtual=True) |
|
394 |
## ipv4-global-routing.h: void ns3::Ipv4GlobalRouting::NotifyInterfaceDown(uint32_t interface) [member function] |
|
395 |
cls.add_method('NotifyInterfaceDown', |
|
396 |
'void', |
|
397 |
[param('uint32_t', 'interface')], |
|
398 |
is_virtual=True) |
|
399 |
## ipv4-global-routing.h: void ns3::Ipv4GlobalRouting::NotifyInterfaceUp(uint32_t interface) [member function] |
|
400 |
cls.add_method('NotifyInterfaceUp', |
|
401 |
'void', |
|
402 |
[param('uint32_t', 'interface')], |
|
403 |
is_virtual=True) |
|
404 |
## ipv4-global-routing.h: void ns3::Ipv4GlobalRouting::NotifyRemoveAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function] |
|
405 |
cls.add_method('NotifyRemoveAddress', |
|
406 |
'void', |
|
407 |
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')], |
|
408 |
is_virtual=True) |
|
409 |
## ipv4-global-routing.h: void ns3::Ipv4GlobalRouting::RemoveRoute(uint32_t i) [member function] |
|
410 |
cls.add_method('RemoveRoute', |
|
411 |
'void', |
|
412 |
[param('uint32_t', 'i')]) |
|
5753
8c105b521d1b
Python: rescan; need new 'section precedence' API from PyBindGen; other PBG bug fixes pulled from new version.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
5348
diff
changeset
|
413 |
## ipv4-global-routing.h: bool ns3::Ipv4GlobalRouting::RouteInput(ns3::Ptr<ns3::Packet const> p, ns3::Ipv4Header const & header, ns3::Ptr<const ns3::NetDevice> idev, ns3::Callback<void, ns3::Ptr<ns3::Ipv4Route>, ns3::Ptr<ns3::Packet const>, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb, ns3::Callback<void,ns3::Ptr<ns3::Ipv4MulticastRoute>,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback<void,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback<void, ns3::Ptr<ns3::Packet const>, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function] |
5348 | 414 |
cls.add_method('RouteInput', |
415 |
'bool', |
|
416 |
[param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')], |
|
417 |
is_virtual=True) |
|
418 |
## ipv4-global-routing.h: ns3::Ptr<ns3::Ipv4Route> ns3::Ipv4GlobalRouting::RouteOutput(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Header const & header, uint32_t oif, ns3::Socket::SocketErrno & sockerr) [member function] |
|
419 |
cls.add_method('RouteOutput', |
|
420 |
'ns3::Ptr< ns3::Ipv4Route >', |
|
421 |
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('uint32_t', 'oif'), param('ns3::Socket::SocketErrno &', 'sockerr')], |
|
422 |
is_virtual=True) |
|
423 |
## ipv4-global-routing.h: void ns3::Ipv4GlobalRouting::SetIpv4(ns3::Ptr<ns3::Ipv4> ipv4) [member function] |
|
424 |
cls.add_method('SetIpv4', |
|
425 |
'void', |
|
426 |
[param('ns3::Ptr< ns3::Ipv4 >', 'ipv4')], |
|
427 |
is_virtual=True) |
|
428 |
## ipv4-global-routing.h: void ns3::Ipv4GlobalRouting::DoDispose() [member function] |
|
429 |
cls.add_method('DoDispose', |
|
430 |
'void', |
|
431 |
[], |
|
432 |
visibility='protected', is_virtual=True) |
|
433 |
return |
|
434 |
||
435 |
def register_functions(root_module): |
|
436 |
module = root_module |
|
437 |
register_functions_ns3_Config(module.get_submodule('Config'), root_module) |
|
438 |
register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) |
|
439 |
register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) |
|
5753
8c105b521d1b
Python: rescan; need new 'section precedence' API from PyBindGen; other PBG bug fixes pulled from new version.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
5348
diff
changeset
|
440 |
register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) |
5348 | 441 |
register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) |
442 |
register_functions_ns3_flame(module.get_submodule('flame'), root_module) |
|
443 |
register_functions_ns3_internal(module.get_submodule('internal'), root_module) |
|
444 |
register_functions_ns3_olsr(module.get_submodule('olsr'), root_module) |
|
445 |
return |
|
446 |
||
447 |
def register_functions_ns3_Config(module, root_module): |
|
448 |
return |
|
449 |
||
450 |
def register_functions_ns3_TimeStepPrecision(module, root_module): |
|
451 |
return |
|
452 |
||
453 |
def register_functions_ns3_addressUtils(module, root_module): |
|
454 |
return |
|
455 |
||
5753
8c105b521d1b
Python: rescan; need new 'section precedence' API from PyBindGen; other PBG bug fixes pulled from new version.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
5348
diff
changeset
|
456 |
def register_functions_ns3_aodv(module, root_module): |
8c105b521d1b
Python: rescan; need new 'section precedence' API from PyBindGen; other PBG bug fixes pulled from new version.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
5348
diff
changeset
|
457 |
return |
8c105b521d1b
Python: rescan; need new 'section precedence' API from PyBindGen; other PBG bug fixes pulled from new version.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
5348
diff
changeset
|
458 |
|
5348 | 459 |
def register_functions_ns3_dot11s(module, root_module): |
460 |
return |
|
461 |
||
462 |
def register_functions_ns3_flame(module, root_module): |
|
463 |
return |
|
464 |
||
465 |
def register_functions_ns3_internal(module, root_module): |
|
466 |
return |
|
467 |
||
468 |
def register_functions_ns3_olsr(module, root_module): |
|
469 |
return |
|
470 |