6534
|
1 |
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
|
|
2 |
|
|
3 |
def register_types(module):
|
|
4 |
root_module = module.get_root()
|
|
5 |
|
|
6 |
## ipv4-nix-vector-routing.h: ns3::Ipv4NixVectorRouting [class]
|
|
7 |
module.add_class('Ipv4NixVectorRouting', parent=root_module['ns3::Ipv4RoutingProtocol'])
|
|
8 |
typehandlers.add_type_alias('std::map< ns3::Ipv4Address, ns3::Ptr< ns3::NixVector >, std::less< ns3::Ipv4Address >, std::allocator< std::pair< ns3::Ipv4Address const, ns3::Ptr< ns3::NixVector > > > >', 'ns3::NixMap_t')
|
|
9 |
typehandlers.add_type_alias('std::map< ns3::Ipv4Address, ns3::Ptr< ns3::NixVector >, std::less< ns3::Ipv4Address >, std::allocator< std::pair< ns3::Ipv4Address const, ns3::Ptr< ns3::NixVector > > > >*', 'ns3::NixMap_t*')
|
|
10 |
typehandlers.add_type_alias('std::map< ns3::Ipv4Address, ns3::Ptr< ns3::NixVector >, std::less< ns3::Ipv4Address >, std::allocator< std::pair< ns3::Ipv4Address const, ns3::Ptr< ns3::NixVector > > > >&', 'ns3::NixMap_t&')
|
|
11 |
typehandlers.add_type_alias('std::map< ns3::Ipv4Address, ns3::Ptr< ns3::Ipv4Route >, std::less< ns3::Ipv4Address >, std::allocator< std::pair< ns3::Ipv4Address const, ns3::Ptr< ns3::Ipv4Route > > > >', 'ns3::Ipv4RouteMap_t')
|
|
12 |
typehandlers.add_type_alias('std::map< ns3::Ipv4Address, ns3::Ptr< ns3::Ipv4Route >, std::less< ns3::Ipv4Address >, std::allocator< std::pair< ns3::Ipv4Address const, ns3::Ptr< ns3::Ipv4Route > > > >*', 'ns3::Ipv4RouteMap_t*')
|
|
13 |
typehandlers.add_type_alias('std::map< ns3::Ipv4Address, ns3::Ptr< ns3::Ipv4Route >, std::less< ns3::Ipv4Address >, std::allocator< std::pair< ns3::Ipv4Address const, ns3::Ptr< ns3::Ipv4Route > > > >&', 'ns3::Ipv4RouteMap_t&')
|
|
14 |
|
|
15 |
## Register a nested module for the namespace Config
|
|
16 |
|
|
17 |
nested_module = module.add_cpp_namespace('Config')
|
|
18 |
register_types_ns3_Config(nested_module)
|
|
19 |
|
|
20 |
|
|
21 |
## Register a nested module for the namespace FatalImpl
|
|
22 |
|
|
23 |
nested_module = module.add_cpp_namespace('FatalImpl')
|
|
24 |
register_types_ns3_FatalImpl(nested_module)
|
|
25 |
|
|
26 |
|
|
27 |
## Register a nested module for the namespace addressUtils
|
|
28 |
|
|
29 |
nested_module = module.add_cpp_namespace('addressUtils')
|
|
30 |
register_types_ns3_addressUtils(nested_module)
|
|
31 |
|
|
32 |
|
|
33 |
## Register a nested module for the namespace aodv
|
|
34 |
|
|
35 |
nested_module = module.add_cpp_namespace('aodv')
|
|
36 |
register_types_ns3_aodv(nested_module)
|
|
37 |
|
|
38 |
|
|
39 |
## Register a nested module for the namespace dot11s
|
|
40 |
|
|
41 |
nested_module = module.add_cpp_namespace('dot11s')
|
|
42 |
register_types_ns3_dot11s(nested_module)
|
|
43 |
|
|
44 |
|
6718
|
45 |
## Register a nested module for the namespace dsdv
|
|
46 |
|
|
47 |
nested_module = module.add_cpp_namespace('dsdv')
|
|
48 |
register_types_ns3_dsdv(nested_module)
|
|
49 |
|
|
50 |
|
6534
|
51 |
## Register a nested module for the namespace flame
|
|
52 |
|
|
53 |
nested_module = module.add_cpp_namespace('flame')
|
|
54 |
register_types_ns3_flame(nested_module)
|
|
55 |
|
|
56 |
|
|
57 |
## Register a nested module for the namespace internal
|
|
58 |
|
|
59 |
nested_module = module.add_cpp_namespace('internal')
|
|
60 |
register_types_ns3_internal(nested_module)
|
|
61 |
|
|
62 |
|
|
63 |
## Register a nested module for the namespace olsr
|
|
64 |
|
|
65 |
nested_module = module.add_cpp_namespace('olsr')
|
|
66 |
register_types_ns3_olsr(nested_module)
|
|
67 |
|
|
68 |
|
|
69 |
def register_types_ns3_Config(module):
|
|
70 |
root_module = module.get_root()
|
|
71 |
|
|
72 |
|
|
73 |
def register_types_ns3_FatalImpl(module):
|
|
74 |
root_module = module.get_root()
|
|
75 |
|
|
76 |
|
|
77 |
def register_types_ns3_addressUtils(module):
|
|
78 |
root_module = module.get_root()
|
|
79 |
|
|
80 |
|
|
81 |
def register_types_ns3_aodv(module):
|
|
82 |
root_module = module.get_root()
|
|
83 |
|
|
84 |
|
|
85 |
def register_types_ns3_dot11s(module):
|
|
86 |
root_module = module.get_root()
|
|
87 |
|
|
88 |
|
6718
|
89 |
def register_types_ns3_dsdv(module):
|
|
90 |
root_module = module.get_root()
|
|
91 |
|
|
92 |
|
6534
|
93 |
def register_types_ns3_flame(module):
|
|
94 |
root_module = module.get_root()
|
|
95 |
|
|
96 |
|
|
97 |
def register_types_ns3_internal(module):
|
|
98 |
root_module = module.get_root()
|
|
99 |
|
|
100 |
|
|
101 |
def register_types_ns3_olsr(module):
|
|
102 |
root_module = module.get_root()
|
|
103 |
|
|
104 |
|
|
105 |
def register_methods(root_module):
|
|
106 |
register_Ns3Ipv4NixVectorRouting_methods(root_module, root_module['ns3::Ipv4NixVectorRouting'])
|
|
107 |
return
|
|
108 |
|
|
109 |
def register_Ns3Ipv4NixVectorRouting_methods(root_module, cls):
|
|
110 |
## ipv4-nix-vector-routing.h: ns3::Ipv4NixVectorRouting::Ipv4NixVectorRouting(ns3::Ipv4NixVectorRouting const & arg0) [copy constructor]
|
|
111 |
cls.add_constructor([param('ns3::Ipv4NixVectorRouting const &', 'arg0')])
|
|
112 |
## ipv4-nix-vector-routing.h: ns3::Ipv4NixVectorRouting::Ipv4NixVectorRouting() [constructor]
|
|
113 |
cls.add_constructor([])
|
|
114 |
## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::FlushGlobalNixRoutingCache() [member function]
|
|
115 |
cls.add_method('FlushGlobalNixRoutingCache',
|
|
116 |
'void',
|
|
117 |
[])
|
|
118 |
## ipv4-nix-vector-routing.h: static ns3::TypeId ns3::Ipv4NixVectorRouting::GetTypeId() [member function]
|
|
119 |
cls.add_method('GetTypeId',
|
|
120 |
'ns3::TypeId',
|
|
121 |
[],
|
|
122 |
is_static=True)
|
|
123 |
## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::SetNode(ns3::Ptr<ns3::Node> node) [member function]
|
|
124 |
cls.add_method('SetNode',
|
|
125 |
'void',
|
|
126 |
[param('ns3::Ptr< ns3::Node >', 'node')])
|
|
127 |
## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::DoDispose() [member function]
|
|
128 |
cls.add_method('DoDispose',
|
|
129 |
'void',
|
|
130 |
[],
|
|
131 |
visibility='private', is_virtual=True)
|
|
132 |
## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::NotifyAddAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
|
|
133 |
cls.add_method('NotifyAddAddress',
|
|
134 |
'void',
|
|
135 |
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')],
|
|
136 |
visibility='private', is_virtual=True)
|
|
137 |
## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::NotifyInterfaceDown(uint32_t interface) [member function]
|
|
138 |
cls.add_method('NotifyInterfaceDown',
|
|
139 |
'void',
|
|
140 |
[param('uint32_t', 'interface')],
|
|
141 |
visibility='private', is_virtual=True)
|
|
142 |
## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::NotifyInterfaceUp(uint32_t interface) [member function]
|
|
143 |
cls.add_method('NotifyInterfaceUp',
|
|
144 |
'void',
|
|
145 |
[param('uint32_t', 'interface')],
|
|
146 |
visibility='private', is_virtual=True)
|
|
147 |
## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::NotifyRemoveAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
|
|
148 |
cls.add_method('NotifyRemoveAddress',
|
|
149 |
'void',
|
|
150 |
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')],
|
|
151 |
visibility='private', is_virtual=True)
|
6702
|
152 |
## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::PrintRoutingTable(ns3::Ptr<ns3::OutputStreamWrapper> stream) const [member function]
|
|
153 |
cls.add_method('PrintRoutingTable',
|
|
154 |
'void',
|
|
155 |
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream')],
|
|
156 |
is_const=True, visibility='private', is_virtual=True)
|
6534
|
157 |
## ipv4-nix-vector-routing.h: bool ns3::Ipv4NixVectorRouting::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]
|
|
158 |
cls.add_method('RouteInput',
|
|
159 |
'bool',
|
|
160 |
[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')],
|
|
161 |
visibility='private', is_virtual=True)
|
|
162 |
## ipv4-nix-vector-routing.h: ns3::Ptr<ns3::Ipv4Route> ns3::Ipv4NixVectorRouting::RouteOutput(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Header const & header, ns3::Ptr<ns3::NetDevice> oif, ns3::Socket::SocketErrno & sockerr) [member function]
|
|
163 |
cls.add_method('RouteOutput',
|
|
164 |
'ns3::Ptr< ns3::Ipv4Route >',
|
|
165 |
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice >', 'oif'), param('ns3::Socket::SocketErrno &', 'sockerr')],
|
|
166 |
visibility='private', is_virtual=True)
|
|
167 |
## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::SetIpv4(ns3::Ptr<ns3::Ipv4> ipv4) [member function]
|
|
168 |
cls.add_method('SetIpv4',
|
|
169 |
'void',
|
|
170 |
[param('ns3::Ptr< ns3::Ipv4 >', 'ipv4')],
|
|
171 |
visibility='private', is_virtual=True)
|
|
172 |
return
|
|
173 |
|
|
174 |
def register_functions(root_module):
|
|
175 |
module = root_module
|
|
176 |
register_functions_ns3_Config(module.get_submodule('Config'), root_module)
|
|
177 |
register_functions_ns3_FatalImpl(module.get_submodule('FatalImpl'), root_module)
|
|
178 |
register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module)
|
|
179 |
register_functions_ns3_aodv(module.get_submodule('aodv'), root_module)
|
|
180 |
register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module)
|
6718
|
181 |
register_functions_ns3_dsdv(module.get_submodule('dsdv'), root_module)
|
6534
|
182 |
register_functions_ns3_flame(module.get_submodule('flame'), root_module)
|
|
183 |
register_functions_ns3_internal(module.get_submodule('internal'), root_module)
|
|
184 |
register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
|
|
185 |
return
|
|
186 |
|
|
187 |
def register_functions_ns3_Config(module, root_module):
|
|
188 |
return
|
|
189 |
|
|
190 |
def register_functions_ns3_FatalImpl(module, root_module):
|
|
191 |
return
|
|
192 |
|
|
193 |
def register_functions_ns3_addressUtils(module, root_module):
|
|
194 |
return
|
|
195 |
|
|
196 |
def register_functions_ns3_aodv(module, root_module):
|
|
197 |
return
|
|
198 |
|
|
199 |
def register_functions_ns3_dot11s(module, root_module):
|
|
200 |
return
|
|
201 |
|
6718
|
202 |
def register_functions_ns3_dsdv(module, root_module):
|
|
203 |
return
|
|
204 |
|
6534
|
205 |
def register_functions_ns3_flame(module, root_module):
|
|
206 |
return
|
|
207 |
|
|
208 |
def register_functions_ns3_internal(module, root_module):
|
|
209 |
return
|
|
210 |
|
|
211 |
def register_functions_ns3_olsr(module, root_module):
|
|
212 |
return
|
|
213 |
|