1 from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
3 def register_types(module):
4 root_module = module.get_root()
6 ## ppp-header.h: ns3::PppHeader [class]
7 module.add_class('PppHeader', parent=root_module['ns3::Header'])
8 ## point-to-point-channel.h: ns3::PointToPointChannel [class]
9 module.add_class('PointToPointChannel', parent=root_module['ns3::Channel'])
10 ## point-to-point-net-device.h: ns3::PointToPointNetDevice [class]
11 module.add_class('PointToPointNetDevice', parent=root_module['ns3::NetDevice'])
13 ## Register a nested module for the namespace Config
15 nested_module = module.add_cpp_namespace('Config')
16 register_types_ns3_Config(nested_module)
19 ## Register a nested module for the namespace TimeStepPrecision
21 nested_module = module.add_cpp_namespace('TimeStepPrecision')
22 register_types_ns3_TimeStepPrecision(nested_module)
25 ## Register a nested module for the namespace addressUtils
27 nested_module = module.add_cpp_namespace('addressUtils')
28 register_types_ns3_addressUtils(nested_module)
31 ## Register a nested module for the namespace internal
33 nested_module = module.add_cpp_namespace('internal')
34 register_types_ns3_internal(nested_module)
37 ## Register a nested module for the namespace olsr
39 nested_module = module.add_cpp_namespace('olsr')
40 register_types_ns3_olsr(nested_module)
43 def register_types_ns3_Config(module):
44 root_module = module.get_root()
47 def register_types_ns3_TimeStepPrecision(module):
48 root_module = module.get_root()
51 def register_types_ns3_addressUtils(module):
52 root_module = module.get_root()
55 def register_types_ns3_internal(module):
56 root_module = module.get_root()
59 def register_types_ns3_olsr(module):
60 root_module = module.get_root()
63 def register_methods(root_module):
64 register_Ns3PppHeader_methods(root_module, root_module['ns3::PppHeader'])
65 register_Ns3PointToPointChannel_methods(root_module, root_module['ns3::PointToPointChannel'])
66 register_Ns3PointToPointNetDevice_methods(root_module, root_module['ns3::PointToPointNetDevice'])
69 def register_Ns3PppHeader_methods(root_module, cls):
70 ## ppp-header.h: ns3::PppHeader::PppHeader(ns3::PppHeader const & arg0) [copy constructor]
71 cls.add_constructor([param('ns3::PppHeader const &', 'arg0')])
72 ## ppp-header.h: ns3::PppHeader::PppHeader() [constructor]
73 cls.add_constructor([])
74 ## ppp-header.h: static ns3::TypeId ns3::PppHeader::GetTypeId() [member function]
75 cls.add_method('GetTypeId',
79 ## ppp-header.h: ns3::TypeId ns3::PppHeader::GetInstanceTypeId() const [member function]
80 cls.add_method('GetInstanceTypeId',
83 is_const=True, is_virtual=True)
84 ## ppp-header.h: void ns3::PppHeader::Print(std::ostream & os) const [member function]
85 cls.add_method('Print',
87 [param('std::ostream &', 'os')],
88 is_const=True, is_virtual=True)
89 ## ppp-header.h: void ns3::PppHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
90 cls.add_method('Serialize',
92 [param('ns3::Buffer::Iterator', 'start')],
93 is_const=True, is_virtual=True)
94 ## ppp-header.h: uint32_t ns3::PppHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
95 cls.add_method('Deserialize',
97 [param('ns3::Buffer::Iterator', 'start')],
99 ## ppp-header.h: uint32_t ns3::PppHeader::GetSerializedSize() const [member function]
100 cls.add_method('GetSerializedSize',
103 is_const=True, is_virtual=True)
106 def register_Ns3PointToPointChannel_methods(root_module, cls):
107 ## point-to-point-channel.h: ns3::PointToPointChannel::PointToPointChannel(ns3::PointToPointChannel const & arg0) [copy constructor]
108 cls.add_constructor([param('ns3::PointToPointChannel const &', 'arg0')])
109 ## point-to-point-channel.h: static ns3::TypeId ns3::PointToPointChannel::GetTypeId() [member function]
110 cls.add_method('GetTypeId',
114 ## point-to-point-channel.h: ns3::PointToPointChannel::PointToPointChannel() [constructor]
115 cls.add_constructor([])
116 ## point-to-point-channel.h: void ns3::PointToPointChannel::Attach(ns3::Ptr<ns3::PointToPointNetDevice> device) [member function]
117 cls.add_method('Attach',
119 [param('ns3::Ptr< ns3::PointToPointNetDevice >', 'device')])
120 ## point-to-point-channel.h: bool ns3::PointToPointChannel::TransmitStart(ns3::Ptr<ns3::Packet> p, ns3::Ptr<ns3::PointToPointNetDevice> src, ns3::Time txTime) [member function]
121 cls.add_method('TransmitStart',
123 [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ptr< ns3::PointToPointNetDevice >', 'src'), param('ns3::Time', 'txTime')])
124 ## point-to-point-channel.h: uint32_t ns3::PointToPointChannel::GetNDevices() const [member function]
125 cls.add_method('GetNDevices',
128 is_const=True, is_virtual=True)
129 ## point-to-point-channel.h: ns3::Ptr<ns3::PointToPointNetDevice> ns3::PointToPointChannel::GetPointToPointDevice(uint32_t i) const [member function]
130 cls.add_method('GetPointToPointDevice',
131 'ns3::Ptr< ns3::PointToPointNetDevice >',
132 [param('uint32_t', 'i')],
134 ## point-to-point-channel.h: ns3::Ptr<ns3::NetDevice> ns3::PointToPointChannel::GetDevice(uint32_t i) const [member function]
135 cls.add_method('GetDevice',
136 'ns3::Ptr< ns3::NetDevice >',
137 [param('uint32_t', 'i')],
138 is_const=True, is_virtual=True)
141 def register_Ns3PointToPointNetDevice_methods(root_module, cls):
142 ## point-to-point-net-device.h: ns3::PointToPointNetDevice::PointToPointNetDevice(ns3::PointToPointNetDevice const & arg0) [copy constructor]
143 cls.add_constructor([param('ns3::PointToPointNetDevice const &', 'arg0')])
144 ## point-to-point-net-device.h: static ns3::TypeId ns3::PointToPointNetDevice::GetTypeId() [member function]
145 cls.add_method('GetTypeId',
149 ## point-to-point-net-device.h: ns3::PointToPointNetDevice::PointToPointNetDevice() [constructor]
150 cls.add_constructor([])
151 ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetDataRate(ns3::DataRate bps) [member function]
152 cls.add_method('SetDataRate',
154 [param('ns3::DataRate', 'bps')])
155 ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetInterframeGap(ns3::Time t) [member function]
156 cls.add_method('SetInterframeGap',
158 [param('ns3::Time', 't')])
159 ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::Attach(ns3::Ptr<ns3::PointToPointChannel> ch) [member function]
160 cls.add_method('Attach',
162 [param('ns3::Ptr< ns3::PointToPointChannel >', 'ch')])
163 ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetQueue(ns3::Ptr<ns3::Queue> queue) [member function]
164 cls.add_method('SetQueue',
166 [param('ns3::Ptr< ns3::Queue >', 'queue')])
167 ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetReceiveErrorModel(ns3::Ptr<ns3::ErrorModel> em) [member function]
168 cls.add_method('SetReceiveErrorModel',
170 [param('ns3::Ptr< ns3::ErrorModel >', 'em')])
171 ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::Receive(ns3::Ptr<ns3::Packet> p) [member function]
172 cls.add_method('Receive',
174 [param('ns3::Ptr< ns3::Packet >', 'p')])
175 ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetFrameSize(uint16_t frameSize) [member function]
176 cls.add_method('SetFrameSize',
178 [param('uint16_t', 'frameSize')])
179 ## point-to-point-net-device.h: uint16_t ns3::PointToPointNetDevice::GetFrameSize() const [member function]
180 cls.add_method('GetFrameSize',
184 ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetIfIndex(uint32_t const index) [member function]
185 cls.add_method('SetIfIndex',
187 [param('uint32_t const', 'index')],
189 ## point-to-point-net-device.h: uint32_t ns3::PointToPointNetDevice::GetIfIndex() const [member function]
190 cls.add_method('GetIfIndex',
193 is_const=True, is_virtual=True)
194 ## point-to-point-net-device.h: ns3::Ptr<ns3::Channel> ns3::PointToPointNetDevice::GetChannel() const [member function]
195 cls.add_method('GetChannel',
196 'ns3::Ptr< ns3::Channel >',
198 is_const=True, is_virtual=True)
199 ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetAddress(ns3::Address address) [member function]
200 cls.add_method('SetAddress',
202 [param('ns3::Address', 'address')],
204 ## point-to-point-net-device.h: ns3::Address ns3::PointToPointNetDevice::GetAddress() const [member function]
205 cls.add_method('GetAddress',
208 is_const=True, is_virtual=True)
209 ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::SetMtu(uint16_t const mtu) [member function]
210 cls.add_method('SetMtu',
212 [param('uint16_t const', 'mtu')],
214 ## point-to-point-net-device.h: uint16_t ns3::PointToPointNetDevice::GetMtu() const [member function]
215 cls.add_method('GetMtu',
218 is_const=True, is_virtual=True)
219 ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::IsLinkUp() const [member function]
220 cls.add_method('IsLinkUp',
223 is_const=True, is_virtual=True)
224 ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetLinkChangeCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
225 cls.add_method('SetLinkChangeCallback',
227 [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')],
229 ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::IsBroadcast() const [member function]
230 cls.add_method('IsBroadcast',
233 is_const=True, is_virtual=True)
234 ## point-to-point-net-device.h: ns3::Address ns3::PointToPointNetDevice::GetBroadcast() const [member function]
235 cls.add_method('GetBroadcast',
238 is_const=True, is_virtual=True)
239 ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::IsMulticast() const [member function]
240 cls.add_method('IsMulticast',
243 is_const=True, is_virtual=True)
244 ## point-to-point-net-device.h: ns3::Address ns3::PointToPointNetDevice::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function]
245 cls.add_method('GetMulticast',
247 [param('ns3::Ipv4Address', 'multicastGroup')],
248 is_const=True, is_virtual=True)
249 ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::IsPointToPoint() const [member function]
250 cls.add_method('IsPointToPoint',
253 is_const=True, is_virtual=True)
254 ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::IsBridge() const [member function]
255 cls.add_method('IsBridge',
258 is_const=True, is_virtual=True)
259 ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
260 cls.add_method('Send',
262 [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')],
264 ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function]
265 cls.add_method('SendFrom',
267 [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')],
269 ## point-to-point-net-device.h: ns3::Ptr<ns3::Node> ns3::PointToPointNetDevice::GetNode() const [member function]
270 cls.add_method('GetNode',
271 'ns3::Ptr< ns3::Node >',
273 is_const=True, is_virtual=True)
274 ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function]
275 cls.add_method('SetNode',
277 [param('ns3::Ptr< ns3::Node >', 'node')],
279 ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::NeedsArp() const [member function]
280 cls.add_method('NeedsArp',
283 is_const=True, is_virtual=True)
284 ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> cb) [member function]
285 cls.add_method('SetReceiveCallback',
287 [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')],
289 ## point-to-point-net-device.h: ns3::Address ns3::PointToPointNetDevice::GetMulticast(ns3::Ipv6Address addr) const [member function]
290 cls.add_method('GetMulticast',
292 [param('ns3::Ipv6Address', 'addr')],
293 is_const=True, is_virtual=True)
294 ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetPromiscReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> cb) [member function]
295 cls.add_method('SetPromiscReceiveCallback',
297 [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'cb')],
299 ## point-to-point-net-device.h: bool ns3::PointToPointNetDevice::SupportsSendFrom() const [member function]
300 cls.add_method('SupportsSendFrom',
303 is_const=True, is_virtual=True)
304 ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::DoDispose() [member function]
305 cls.add_method('DoDispose',
308 visibility='private', is_virtual=True)
311 def register_functions(root_module):
313 register_functions_ns3_Config(module.get_submodule('Config'), root_module)
314 register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
315 register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module)
316 register_functions_ns3_internal(module.get_submodule('internal'), root_module)
317 register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
320 def register_functions_ns3_Config(module, root_module):
323 def register_functions_ns3_TimeStepPrecision(module, root_module):
326 def register_functions_ns3_addressUtils(module, root_module):
329 def register_functions_ns3_internal(module, root_module):
332 def register_functions_ns3_olsr(module, root_module):