4574
|
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-list-routing.h: ns3::Ipv4ListRouting [class]
|
|
7 |
module.add_class('Ipv4ListRouting', parent=root_module['ns3::Ipv4RoutingProtocol'])
|
|
8 |
|
|
9 |
## Register a nested module for the namespace Config
|
|
10 |
|
|
11 |
nested_module = module.add_cpp_namespace('Config')
|
|
12 |
register_types_ns3_Config(nested_module)
|
|
13 |
|
|
14 |
|
|
15 |
## Register a nested module for the namespace TimeStepPrecision
|
|
16 |
|
|
17 |
nested_module = module.add_cpp_namespace('TimeStepPrecision')
|
|
18 |
register_types_ns3_TimeStepPrecision(nested_module)
|
|
19 |
|
|
20 |
|
|
21 |
## Register a nested module for the namespace addressUtils
|
|
22 |
|
|
23 |
nested_module = module.add_cpp_namespace('addressUtils')
|
|
24 |
register_types_ns3_addressUtils(nested_module)
|
|
25 |
|
|
26 |
|
|
27 |
## Register a nested module for the namespace internal
|
|
28 |
|
|
29 |
nested_module = module.add_cpp_namespace('internal')
|
|
30 |
register_types_ns3_internal(nested_module)
|
|
31 |
|
|
32 |
|
|
33 |
## Register a nested module for the namespace olsr
|
|
34 |
|
|
35 |
nested_module = module.add_cpp_namespace('olsr')
|
|
36 |
register_types_ns3_olsr(nested_module)
|
|
37 |
|
|
38 |
|
|
39 |
def register_types_ns3_Config(module):
|
|
40 |
root_module = module.get_root()
|
|
41 |
|
|
42 |
|
|
43 |
def register_types_ns3_TimeStepPrecision(module):
|
|
44 |
root_module = module.get_root()
|
|
45 |
|
|
46 |
|
|
47 |
def register_types_ns3_addressUtils(module):
|
|
48 |
root_module = module.get_root()
|
|
49 |
|
|
50 |
|
|
51 |
def register_types_ns3_internal(module):
|
|
52 |
root_module = module.get_root()
|
|
53 |
|
|
54 |
|
|
55 |
def register_types_ns3_olsr(module):
|
|
56 |
root_module = module.get_root()
|
|
57 |
|
|
58 |
|
|
59 |
def register_methods(root_module):
|
|
60 |
register_Ns3Ipv4ListRouting_methods(root_module, root_module['ns3::Ipv4ListRouting'])
|
|
61 |
return
|
|
62 |
|
|
63 |
def register_Ns3Ipv4ListRouting_methods(root_module, cls):
|
|
64 |
## ipv4-list-routing.h: ns3::Ipv4ListRouting::Ipv4ListRouting(ns3::Ipv4ListRouting const & arg0) [copy constructor]
|
|
65 |
cls.add_constructor([param('ns3::Ipv4ListRouting const &', 'arg0')])
|
|
66 |
## ipv4-list-routing.h: static ns3::TypeId ns3::Ipv4ListRouting::GetTypeId() [member function]
|
|
67 |
cls.add_method('GetTypeId',
|
|
68 |
'ns3::TypeId',
|
|
69 |
[],
|
|
70 |
is_static=True)
|
|
71 |
## ipv4-list-routing.h: ns3::Ipv4ListRouting::Ipv4ListRouting() [constructor]
|
|
72 |
cls.add_constructor([])
|
|
73 |
## ipv4-list-routing.h: void ns3::Ipv4ListRouting::AddRoutingProtocol(ns3::Ptr<ns3::Ipv4RoutingProtocol> routingProtocol, int16_t priority) [member function]
|
|
74 |
cls.add_method('AddRoutingProtocol',
|
|
75 |
'void',
|
|
76 |
[param('ns3::Ptr< ns3::Ipv4RoutingProtocol >', 'routingProtocol'), param('int16_t', 'priority')],
|
|
77 |
is_virtual=True)
|
|
78 |
## ipv4-list-routing.h: uint32_t ns3::Ipv4ListRouting::GetNRoutingProtocols() const [member function]
|
|
79 |
cls.add_method('GetNRoutingProtocols',
|
|
80 |
'uint32_t',
|
|
81 |
[],
|
|
82 |
is_const=True, is_virtual=True)
|
|
83 |
## ipv4-list-routing.h: ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::Ipv4ListRouting::GetRoutingProtocol(uint32_t index, int16_t & priority) const [member function]
|
|
84 |
cls.add_method('GetRoutingProtocol',
|
|
85 |
'ns3::Ptr< ns3::Ipv4RoutingProtocol >',
|
|
86 |
[param('uint32_t', 'index'), param('int16_t &', 'priority')],
|
|
87 |
is_const=True, is_virtual=True)
|
|
88 |
## ipv4-list-routing.h: ns3::Ptr<ns3::Ipv4Route> ns3::Ipv4ListRouting::RouteOutput(ns3::Ipv4Header const & header, uint32_t oif, ns3::Socket::SocketErrno & sockerr) [member function]
|
|
89 |
cls.add_method('RouteOutput',
|
|
90 |
'ns3::Ptr< ns3::Ipv4Route >',
|
|
91 |
[param('ns3::Ipv4Header const &', 'header'), param('uint32_t', 'oif'), param('ns3::Socket::SocketErrno &', 'sockerr')],
|
|
92 |
is_virtual=True)
|
|
93 |
## ipv4-list-routing.h: bool ns3::Ipv4ListRouting::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<const ns3::Packet>,const ns3::Ipv4Header&,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<const ns3::Packet>,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ecb) [member function]
|
|
94 |
cls.add_method('RouteInput',
|
|
95 |
'bool',
|
|
96 |
[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::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')],
|
|
97 |
is_virtual=True)
|
|
98 |
## ipv4-list-routing.h: void ns3::Ipv4ListRouting::NotifyInterfaceUp(uint32_t interface) [member function]
|
|
99 |
cls.add_method('NotifyInterfaceUp',
|
|
100 |
'void',
|
|
101 |
[param('uint32_t', 'interface')],
|
|
102 |
is_virtual=True)
|
|
103 |
## ipv4-list-routing.h: void ns3::Ipv4ListRouting::NotifyInterfaceDown(uint32_t interface) [member function]
|
|
104 |
cls.add_method('NotifyInterfaceDown',
|
|
105 |
'void',
|
|
106 |
[param('uint32_t', 'interface')],
|
|
107 |
is_virtual=True)
|
|
108 |
## ipv4-list-routing.h: void ns3::Ipv4ListRouting::NotifyAddAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
|
|
109 |
cls.add_method('NotifyAddAddress',
|
|
110 |
'void',
|
|
111 |
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')],
|
|
112 |
is_virtual=True)
|
|
113 |
## ipv4-list-routing.h: void ns3::Ipv4ListRouting::NotifyRemoveAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
|
|
114 |
cls.add_method('NotifyRemoveAddress',
|
|
115 |
'void',
|
|
116 |
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')],
|
|
117 |
is_virtual=True)
|
|
118 |
## ipv4-list-routing.h: void ns3::Ipv4ListRouting::SetIpv4(ns3::Ptr<ns3::Ipv4> ipv4) [member function]
|
|
119 |
cls.add_method('SetIpv4',
|
|
120 |
'void',
|
|
121 |
[param('ns3::Ptr< ns3::Ipv4 >', 'ipv4')],
|
|
122 |
is_virtual=True)
|
|
123 |
## ipv4-list-routing.h: ns3::Ptr<ns3::Ipv4StaticRouting> ns3::Ipv4ListRouting::GetStaticRouting() const [member function]
|
|
124 |
cls.add_method('GetStaticRouting',
|
|
125 |
'ns3::Ptr< ns3::Ipv4StaticRouting >',
|
|
126 |
[],
|
|
127 |
is_const=True, is_virtual=True)
|
|
128 |
## ipv4-list-routing.h: void ns3::Ipv4ListRouting::DoDispose() [member function]
|
|
129 |
cls.add_method('DoDispose',
|
|
130 |
'void',
|
|
131 |
[],
|
|
132 |
visibility='protected', is_virtual=True)
|
|
133 |
return
|
|
134 |
|
|
135 |
def register_functions(root_module):
|
|
136 |
module = root_module
|
|
137 |
register_functions_ns3_Config(module.get_submodule('Config'), root_module)
|
|
138 |
register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
|
|
139 |
register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module)
|
|
140 |
register_functions_ns3_internal(module.get_submodule('internal'), root_module)
|
|
141 |
register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
|
|
142 |
return
|
|
143 |
|
|
144 |
def register_functions_ns3_Config(module, root_module):
|
|
145 |
return
|
|
146 |
|
|
147 |
def register_functions_ns3_TimeStepPrecision(module, root_module):
|
|
148 |
return
|
|
149 |
|
|
150 |
def register_functions_ns3_addressUtils(module, root_module):
|
|
151 |
return
|
|
152 |
|
|
153 |
def register_functions_ns3_internal(module, root_module):
|
|
154 |
return
|
|
155 |
|
|
156 |
def register_functions_ns3_olsr(module, root_module):
|
|
157 |
return
|
|
158 |
|