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 |
|
|
7 |
## Register a nested module for the namespace Config
|
|
8 |
|
|
9 |
nested_module = module.add_cpp_namespace('Config')
|
|
10 |
register_types_ns3_Config(nested_module)
|
|
11 |
|
|
12 |
|
|
13 |
## Register a nested module for the namespace TimeStepPrecision
|
|
14 |
|
|
15 |
nested_module = module.add_cpp_namespace('TimeStepPrecision')
|
|
16 |
register_types_ns3_TimeStepPrecision(nested_module)
|
|
17 |
|
|
18 |
|
|
19 |
## Register a nested module for the namespace addressUtils
|
|
20 |
|
|
21 |
nested_module = module.add_cpp_namespace('addressUtils')
|
|
22 |
register_types_ns3_addressUtils(nested_module)
|
|
23 |
|
|
24 |
|
|
25 |
## Register a nested module for the namespace dot11s
|
|
26 |
|
|
27 |
nested_module = module.add_cpp_namespace('dot11s')
|
|
28 |
register_types_ns3_dot11s(nested_module)
|
|
29 |
|
|
30 |
|
|
31 |
## Register a nested module for the namespace flame
|
|
32 |
|
|
33 |
nested_module = module.add_cpp_namespace('flame')
|
|
34 |
register_types_ns3_flame(nested_module)
|
|
35 |
|
|
36 |
|
|
37 |
## Register a nested module for the namespace internal
|
|
38 |
|
|
39 |
nested_module = module.add_cpp_namespace('internal')
|
|
40 |
register_types_ns3_internal(nested_module)
|
|
41 |
|
|
42 |
|
|
43 |
## Register a nested module for the namespace olsr
|
|
44 |
|
|
45 |
nested_module = module.add_cpp_namespace('olsr')
|
|
46 |
register_types_ns3_olsr(nested_module)
|
|
47 |
|
|
48 |
|
|
49 |
def register_types_ns3_Config(module):
|
|
50 |
root_module = module.get_root()
|
|
51 |
|
|
52 |
|
|
53 |
def register_types_ns3_TimeStepPrecision(module):
|
|
54 |
root_module = module.get_root()
|
|
55 |
|
|
56 |
|
|
57 |
def register_types_ns3_addressUtils(module):
|
|
58 |
root_module = module.get_root()
|
|
59 |
|
|
60 |
|
|
61 |
def register_types_ns3_dot11s(module):
|
|
62 |
root_module = module.get_root()
|
|
63 |
|
|
64 |
|
|
65 |
def register_types_ns3_flame(module):
|
|
66 |
root_module = module.get_root()
|
|
67 |
|
|
68 |
## flame-protocol.h: ns3::flame::FlameProtocol [class]
|
|
69 |
module.add_class('FlameProtocol', parent=root_module['ns3::MeshL2RoutingProtocol'])
|
|
70 |
## flame-protocol.h: ns3::flame::FlameTag [class]
|
|
71 |
module.add_class('FlameTag', parent=root_module['ns3::Tag'])
|
|
72 |
|
|
73 |
def register_types_ns3_internal(module):
|
|
74 |
root_module = module.get_root()
|
|
75 |
|
|
76 |
|
|
77 |
def register_types_ns3_olsr(module):
|
|
78 |
root_module = module.get_root()
|
|
79 |
|
|
80 |
|
|
81 |
def register_methods(root_module):
|
|
82 |
register_Ns3FlameFlameProtocol_methods(root_module, root_module['ns3::flame::FlameProtocol'])
|
|
83 |
register_Ns3FlameFlameTag_methods(root_module, root_module['ns3::flame::FlameTag'])
|
|
84 |
return
|
|
85 |
|
|
86 |
def register_Ns3FlameFlameProtocol_methods(root_module, cls):
|
|
87 |
## flame-protocol.h: ns3::flame::FlameProtocol::FlameProtocol() [constructor]
|
|
88 |
cls.add_constructor([])
|
|
89 |
## flame-protocol.h: void ns3::flame::FlameProtocol::DoDispose() [member function]
|
|
90 |
cls.add_method('DoDispose',
|
|
91 |
'void',
|
|
92 |
[],
|
|
93 |
is_virtual=True)
|
|
94 |
## flame-protocol.h: ns3::Mac48Address ns3::flame::FlameProtocol::GetAddress() [member function]
|
|
95 |
cls.add_method('GetAddress',
|
|
96 |
'ns3::Mac48Address',
|
|
97 |
[])
|
|
98 |
## flame-protocol.h: static ns3::TypeId ns3::flame::FlameProtocol::GetTypeId() [member function]
|
|
99 |
cls.add_method('GetTypeId',
|
|
100 |
'ns3::TypeId',
|
|
101 |
[],
|
|
102 |
is_static=True)
|
|
103 |
## flame-protocol.h: bool ns3::flame::FlameProtocol::Install(ns3::Ptr<ns3::MeshPointDevice> arg0) [member function]
|
|
104 |
cls.add_method('Install',
|
|
105 |
'bool',
|
|
106 |
[param('ns3::Ptr< ns3::MeshPointDevice >', 'arg0')])
|
|
107 |
## flame-protocol.h: bool ns3::flame::FlameProtocol::RemoveRoutingStuff(uint32_t fromIface, ns3::Mac48Address const source, ns3::Mac48Address const destination, ns3::Ptr<ns3::Packet> packet, uint16_t & protocolType) [member function]
|
|
108 |
cls.add_method('RemoveRoutingStuff',
|
|
109 |
'bool',
|
|
110 |
[param('uint32_t', 'fromIface'), param('ns3::Mac48Address const', 'source'), param('ns3::Mac48Address const', 'destination'), param('ns3::Ptr< ns3::Packet >', 'packet'), param('uint16_t &', 'protocolType')],
|
|
111 |
is_virtual=True)
|
|
112 |
## flame-protocol.h: void ns3::flame::FlameProtocol::Report(std::ostream & arg0) const [member function]
|
|
113 |
cls.add_method('Report',
|
|
114 |
'void',
|
|
115 |
[param('std::ostream &', 'arg0')],
|
|
116 |
is_const=True)
|
|
117 |
## flame-protocol.h: bool ns3::flame::FlameProtocol::RequestRoute(uint32_t sourceIface, ns3::Mac48Address const source, ns3::Mac48Address const destination, ns3::Ptr<ns3::Packet const> packet, uint16_t protocolType, ns3::Callback<void, bool, ns3::Ptr<ns3::Packet>, ns3::Mac48Address, ns3::Mac48Address, unsigned short, unsigned int, ns3::empty, ns3::empty, ns3::empty> routeReply) [member function]
|
|
118 |
cls.add_method('RequestRoute',
|
|
119 |
'bool',
|
|
120 |
[param('uint32_t', 'sourceIface'), param('ns3::Mac48Address const', 'source'), param('ns3::Mac48Address const', 'destination'), param('ns3::Ptr< ns3::Packet const >', 'packet'), param('uint16_t', 'protocolType'), param('ns3::Callback< void, bool, ns3::Ptr< ns3::Packet >, ns3::Mac48Address, ns3::Mac48Address, unsigned short, unsigned int, ns3::empty, ns3::empty, ns3::empty >', 'routeReply')],
|
|
121 |
is_virtual=True)
|
|
122 |
## flame-protocol.h: void ns3::flame::FlameProtocol::ResetStats() [member function]
|
|
123 |
cls.add_method('ResetStats',
|
|
124 |
'void',
|
|
125 |
[])
|
|
126 |
return
|
|
127 |
|
|
128 |
def register_Ns3FlameFlameTag_methods(root_module, cls):
|
|
129 |
## flame-protocol.h: ns3::flame::FlameTag::FlameTag(ns3::flame::FlameTag const & arg0) [copy constructor]
|
|
130 |
cls.add_constructor([param('ns3::flame::FlameTag const &', 'arg0')])
|
|
131 |
## flame-protocol.h: ns3::flame::FlameTag::FlameTag(ns3::Mac48Address a=ns3::Mac48Address()) [constructor]
|
|
132 |
cls.add_constructor([param('ns3::Mac48Address', 'a', default_value='ns3::Mac48Address()')])
|
|
133 |
## flame-protocol.h: void ns3::flame::FlameTag::Deserialize(ns3::TagBuffer i) [member function]
|
|
134 |
cls.add_method('Deserialize',
|
|
135 |
'void',
|
|
136 |
[param('ns3::TagBuffer', 'i')],
|
|
137 |
is_virtual=True)
|
|
138 |
## flame-protocol.h: ns3::TypeId ns3::flame::FlameTag::GetInstanceTypeId() const [member function]
|
|
139 |
cls.add_method('GetInstanceTypeId',
|
|
140 |
'ns3::TypeId',
|
|
141 |
[],
|
|
142 |
is_const=True, is_virtual=True)
|
|
143 |
## flame-protocol.h: uint32_t ns3::flame::FlameTag::GetSerializedSize() const [member function]
|
|
144 |
cls.add_method('GetSerializedSize',
|
|
145 |
'uint32_t',
|
|
146 |
[],
|
|
147 |
is_const=True, is_virtual=True)
|
|
148 |
## flame-protocol.h: static ns3::TypeId ns3::flame::FlameTag::GetTypeId() [member function]
|
|
149 |
cls.add_method('GetTypeId',
|
|
150 |
'ns3::TypeId',
|
|
151 |
[],
|
|
152 |
is_static=True)
|
|
153 |
## flame-protocol.h: void ns3::flame::FlameTag::Print(std::ostream & os) const [member function]
|
|
154 |
cls.add_method('Print',
|
|
155 |
'void',
|
|
156 |
[param('std::ostream &', 'os')],
|
|
157 |
is_const=True, is_virtual=True)
|
|
158 |
## flame-protocol.h: void ns3::flame::FlameTag::Serialize(ns3::TagBuffer i) const [member function]
|
|
159 |
cls.add_method('Serialize',
|
|
160 |
'void',
|
|
161 |
[param('ns3::TagBuffer', 'i')],
|
|
162 |
is_const=True, is_virtual=True)
|
|
163 |
## flame-protocol.h: ns3::flame::FlameTag::receiver [variable]
|
|
164 |
cls.add_instance_attribute('receiver', 'ns3::Mac48Address', is_const=False)
|
|
165 |
## flame-protocol.h: ns3::flame::FlameTag::transmitter [variable]
|
|
166 |
cls.add_instance_attribute('transmitter', 'ns3::Mac48Address', is_const=False)
|
|
167 |
return
|
|
168 |
|
|
169 |
def register_functions(root_module):
|
|
170 |
module = root_module
|
|
171 |
register_functions_ns3_Config(module.get_submodule('Config'), root_module)
|
|
172 |
register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
|
|
173 |
register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module)
|
|
174 |
register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module)
|
|
175 |
register_functions_ns3_flame(module.get_submodule('flame'), root_module)
|
|
176 |
register_functions_ns3_internal(module.get_submodule('internal'), root_module)
|
|
177 |
register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
|
|
178 |
return
|
|
179 |
|
|
180 |
def register_functions_ns3_Config(module, root_module):
|
|
181 |
return
|
|
182 |
|
|
183 |
def register_functions_ns3_TimeStepPrecision(module, root_module):
|
|
184 |
return
|
|
185 |
|
|
186 |
def register_functions_ns3_addressUtils(module, root_module):
|
|
187 |
return
|
|
188 |
|
|
189 |
def register_functions_ns3_dot11s(module, root_module):
|
|
190 |
return
|
|
191 |
|
|
192 |
def register_functions_ns3_flame(module, root_module):
|
|
193 |
return
|
|
194 |
|
|
195 |
def register_functions_ns3_internal(module, root_module):
|
|
196 |
return
|
|
197 |
|
|
198 |
def register_functions_ns3_olsr(module, root_module):
|
|
199 |
return
|
|
200 |
|