LEFT | RIGHT |
1 from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandler
s | 1 from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandler
s |
2 | 2 |
3 def register_types(module): | 3 def register_types(module): |
4 root_module = module.get_root() | 4 root_module = module.get_root() |
5 ···· | 5 ···· |
6 ## distributed-simulator-impl.h: ns3::LbtsMessage [class] | 6 ## distributed-simulator-impl.h: ns3::LbtsMessage [class] |
7 module.add_class('LbtsMessage') | 7 module.add_class('LbtsMessage') |
8 ## mpi-interface.h: ns3::MPIInterface [class] | 8 ## mpi-interface.h: ns3::MpiInterface [class] |
9 module.add_class('MPIInterface') | 9 module.add_class('MpiInterface') |
10 ## mpi-interface.h: ns3::SentBuffer [class] | 10 ## mpi-interface.h: ns3::SentBuffer [class] |
11 module.add_class('SentBuffer') | 11 module.add_class('SentBuffer') |
12 ## distributed-simulator-impl.h: ns3::DistributedSimulatorImpl [class] | 12 ## distributed-simulator-impl.h: ns3::DistributedSimulatorImpl [class] |
13 module.add_class('DistributedSimulatorImpl', parent=root_module['ns3::Simula
torImpl']) | 13 module.add_class('DistributedSimulatorImpl', parent=root_module['ns3::Simula
torImpl']) |
14 ···· | 14 ···· |
15 ## Register a nested module for the namespace Config | 15 ## Register a nested module for the namespace Config |
16 ···· | 16 ···· |
17 nested_module = module.add_cpp_namespace('Config') | 17 nested_module = module.add_cpp_namespace('Config') |
18 register_types_ns3_Config(nested_module) | 18 register_types_ns3_Config(nested_module) |
19 ···· | 19 ···· |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 def register_types_ns3_internal(module): | 87 def register_types_ns3_internal(module): |
88 root_module = module.get_root() | 88 root_module = module.get_root() |
89 ···· | 89 ···· |
90 | 90 |
91 def register_types_ns3_olsr(module): | 91 def register_types_ns3_olsr(module): |
92 root_module = module.get_root() | 92 root_module = module.get_root() |
93 ···· | 93 ···· |
94 | 94 |
95 def register_methods(root_module): | 95 def register_methods(root_module): |
96 register_Ns3LbtsMessage_methods(root_module, root_module['ns3::LbtsMessage']
) | 96 register_Ns3LbtsMessage_methods(root_module, root_module['ns3::LbtsMessage']
) |
97 register_Ns3MPIInterface_methods(root_module, root_module['ns3::MPIInterface
']) | 97 register_Ns3MpiInterface_methods(root_module, root_module['ns3::MpiInterface
']) |
98 register_Ns3SentBuffer_methods(root_module, root_module['ns3::SentBuffer']) | 98 register_Ns3SentBuffer_methods(root_module, root_module['ns3::SentBuffer']) |
99 register_Ns3DistributedSimulatorImpl_methods(root_module, root_module['ns3::
DistributedSimulatorImpl']) | 99 register_Ns3DistributedSimulatorImpl_methods(root_module, root_module['ns3::
DistributedSimulatorImpl']) |
100 return | 100 return |
101 | 101 |
102 def register_Ns3LbtsMessage_methods(root_module, cls): | 102 def register_Ns3LbtsMessage_methods(root_module, cls): |
103 ## distributed-simulator-impl.h: ns3::LbtsMessage::LbtsMessage(ns3::LbtsMess
age const & arg0) [copy constructor] | 103 ## distributed-simulator-impl.h: ns3::LbtsMessage::LbtsMessage(ns3::LbtsMess
age const & arg0) [copy constructor] |
104 cls.add_constructor([param('ns3::LbtsMessage const &', 'arg0')]) | 104 cls.add_constructor([param('ns3::LbtsMessage const &', 'arg0')]) |
105 ## distributed-simulator-impl.h: ns3::LbtsMessage::LbtsMessage() [constructo
r] | 105 ## distributed-simulator-impl.h: ns3::LbtsMessage::LbtsMessage() [constructo
r] |
106 cls.add_constructor([]) | 106 cls.add_constructor([]) |
107 ## distributed-simulator-impl.h: ns3::LbtsMessage::LbtsMessage(uint32_t rxc,
uint32_t txc, uint32_t id, ns3::Time const & t) [constructor] | 107 ## distributed-simulator-impl.h: ns3::LbtsMessage::LbtsMessage(uint32_t rxc,
uint32_t txc, uint32_t id, ns3::Time const & t) [constructor] |
108 cls.add_constructor([param('uint32_t', 'rxc'), param('uint32_t', 'txc'), par
am('uint32_t', 'id'), param('ns3::Time const &', 't')]) | 108 cls.add_constructor([param('uint32_t', 'rxc'), param('uint32_t', 'txc'), par
am('uint32_t', 'id'), param('ns3::Time const &', 't')]) |
109 ## distributed-simulator-impl.h: uint32_t ns3::LbtsMessage::GetMyId() [membe
r function] | 109 ## distributed-simulator-impl.h: uint32_t ns3::LbtsMessage::GetMyId() [membe
r function] |
110 cls.add_method('GetMyId',· | 110 cls.add_method('GetMyId',· |
111 'uint32_t',· | 111 'uint32_t',· |
112 []) | 112 []) |
113 ## distributed-simulator-impl.h: uint32_t ns3::LbtsMessage::GetRxCount() [me
mber function] | 113 ## distributed-simulator-impl.h: uint32_t ns3::LbtsMessage::GetRxCount() [me
mber function] |
114 cls.add_method('GetRxCount',· | 114 cls.add_method('GetRxCount',· |
115 'uint32_t',· | 115 'uint32_t',· |
116 []) | 116 []) |
117 ## distributed-simulator-impl.h: ns3::Time ns3::LbtsMessage::GetSmallestTime
() [member function] | 117 ## distributed-simulator-impl.h: ns3::Time ns3::LbtsMessage::GetSmallestTime
() [member function] |
118 cls.add_method('GetSmallestTime',· | 118 cls.add_method('GetSmallestTime',· |
119 'ns3::Time',· | 119 'ns3::Time',· |
120 []) | 120 []) |
121 ## distributed-simulator-impl.h: uint32_t ns3::LbtsMessage::GetTxCount() [me
mber function] | 121 ## distributed-simulator-impl.h: uint32_t ns3::LbtsMessage::GetTxCount() [me
mber function] |
122 cls.add_method('GetTxCount',· | 122 cls.add_method('GetTxCount',· |
123 'uint32_t',· | 123 'uint32_t',· |
124 []) | 124 []) |
125 return | 125 return |
126 | 126 |
127 def register_Ns3MPIInterface_methods(root_module, cls): | 127 def register_Ns3MpiInterface_methods(root_module, cls): |
128 ## mpi-interface.h: ns3::MPIInterface::MPIInterface() [constructor] | 128 ## mpi-interface.h: ns3::MpiInterface::MpiInterface() [constructor] |
129 cls.add_constructor([]) | 129 cls.add_constructor([]) |
130 ## mpi-interface.h: ns3::MPIInterface::MPIInterface(ns3::MPIInterface const
& arg0) [copy constructor] | 130 ## mpi-interface.h: ns3::MpiInterface::MpiInterface(ns3::MpiInterface const
& arg0) [copy constructor] |
131 cls.add_constructor([param('ns3::MPIInterface const &', 'arg0')]) | 131 cls.add_constructor([param('ns3::MpiInterface const &', 'arg0')]) |
132 ## mpi-interface.h: static void ns3::MPIInterface::Destroy() [member functio
n] | 132 ## mpi-interface.h: static void ns3::MpiInterface::Destroy() [member functio
n] |
133 cls.add_method('Destroy',· | 133 cls.add_method('Destroy',· |
134 'void',· | 134 'void',· |
135 [],· | 135 [],· |
136 is_static=True) | 136 is_static=True) |
137 ## mpi-interface.h: static void ns3::MPIInterface::Enable(int * arg0, char *
* * arg1) [member function] | 137 ## mpi-interface.h: static void ns3::MpiInterface::Enable(int * arg0, char *
* * arg1) [member function] |
138 cls.add_method('Enable',· | 138 cls.add_method('Enable',· |
139 'void',· | 139 'void',· |
140 [param('int *', 'arg0'), param('char * * *', 'arg1')],· | 140 [param('int *', 'arg0'), param('char * * *', 'arg1')],· |
141 is_static=True) | 141 is_static=True) |
142 ## mpi-interface.h: static uint32_t ns3::MPIInterface::GetRxCount() [member
function] | 142 ## mpi-interface.h: static uint32_t ns3::MpiInterface::GetRxCount() [member
function] |
143 cls.add_method('GetRxCount',· | 143 cls.add_method('GetRxCount',· |
144 'uint32_t',· | 144 'uint32_t',· |
145 [],· | 145 [],· |
146 is_static=True) | 146 is_static=True) |
147 ## mpi-interface.h: static uint32_t ns3::MPIInterface::GetTxCount() [member
function] | 147 ## mpi-interface.h: static uint32_t ns3::MpiInterface::GetSize() [member fun
ction] |
| 148 cls.add_method('GetSize',· |
| 149 'uint32_t',· |
| 150 [],· |
| 151 is_static=True) |
| 152 ## mpi-interface.h: static uint32_t ns3::MpiInterface::GetSystemId() [member
function] |
| 153 cls.add_method('GetSystemId',· |
| 154 'uint32_t',· |
| 155 [],· |
| 156 is_static=True) |
| 157 ## mpi-interface.h: static uint32_t ns3::MpiInterface::GetTxCount() [member
function] |
148 cls.add_method('GetTxCount',· | 158 cls.add_method('GetTxCount',· |
149 'uint32_t',· | 159 'uint32_t',· |
150 [],· | 160 [],· |
151 is_static=True) | 161 is_static=True) |
152 ## mpi-interface.h: static bool ns3::MPIInterface::IsEnabled() [member funct
ion] | 162 ## mpi-interface.h: static bool ns3::MpiInterface::IsEnabled() [member funct
ion] |
153 cls.add_method('IsEnabled',· | 163 cls.add_method('IsEnabled',· |
154 'bool',· | 164 'bool',· |
155 [],· | 165 [],· |
156 is_static=True) | 166 is_static=True) |
157 ## mpi-interface.h: static uint32_t ns3::MPIInterface::Rank() [member functi
on] | 167 ## mpi-interface.h: static void ns3::MpiInterface::ReceiveMessages() [member
function] |
158 cls.add_method('Rank',· | |
159 'uint32_t',· | |
160 [],· | |
161 is_static=True) | |
162 ## mpi-interface.h: static void ns3::MPIInterface::ReceiveMessages() [member
function] | |
163 cls.add_method('ReceiveMessages',· | 168 cls.add_method('ReceiveMessages',· |
164 'void',· | 169 'void',· |
165 [],· | 170 [],· |
166 is_static=True) | 171 is_static=True) |
167 ## mpi-interface.h: static void ns3::MPIInterface::SendPacket(ns3::Ptr<ns3::
Packet> arg0, ns3::Time const & arg1, uint32_t arg2, uint32_t arg3) [member func
tion] | 172 ## mpi-interface.h: static void ns3::MpiInterface::SendPacket(ns3::Ptr<ns3::
Packet> arg0, ns3::Time const & arg1, uint32_t arg2, uint32_t arg3) [member func
tion] |
168 cls.add_method('SendPacket',· | 173 cls.add_method('SendPacket',· |
169 'void',· | 174 'void',· |
170 [param('ns3::Ptr< ns3::Packet >', 'arg0'), param('ns3::Time c
onst &', 'arg1'), param('uint32_t', 'arg2'), param('uint32_t', 'arg3')],· | 175 [param('ns3::Ptr< ns3::Packet >', 'arg0'), param('ns3::Time c
onst &', 'arg1'), param('uint32_t', 'arg2'), param('uint32_t', 'arg3')],· |
171 is_static=True) | 176 is_static=True) |
172 ## mpi-interface.h: static uint32_t ns3::MPIInterface::Size() [member functi
on] | 177 ## mpi-interface.h: static void ns3::MpiInterface::TestSendComplete() [membe
r function] |
173 cls.add_method('Size',· | |
174 'uint32_t',· | |
175 [],· | |
176 is_static=True) | |
177 ## mpi-interface.h: static void ns3::MPIInterface::TestSendComplete() [membe
r function] | |
178 cls.add_method('TestSendComplete',· | 178 cls.add_method('TestSendComplete',· |
179 'void',· | 179 'void',· |
180 [],· | 180 [],· |
181 is_static=True) | 181 is_static=True) |
182 return | 182 return |
183 | 183 |
184 def register_Ns3SentBuffer_methods(root_module, cls): | 184 def register_Ns3SentBuffer_methods(root_module, cls): |
185 ## mpi-interface.h: ns3::SentBuffer::SentBuffer(ns3::SentBuffer const & arg0
) [copy constructor] | 185 ## mpi-interface.h: ns3::SentBuffer::SentBuffer(ns3::SentBuffer const & arg0
) [copy constructor] |
186 cls.add_constructor([param('ns3::SentBuffer const &', 'arg0')]) | 186 cls.add_constructor([param('ns3::SentBuffer const &', 'arg0')]) |
187 ## mpi-interface.h: ns3::SentBuffer::SentBuffer() [constructor] | 187 ## mpi-interface.h: ns3::SentBuffer::SentBuffer() [constructor] |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 | 346 |
347 def register_functions_ns3_flame(module, root_module): | 347 def register_functions_ns3_flame(module, root_module): |
348 return | 348 return |
349 | 349 |
350 def register_functions_ns3_internal(module, root_module): | 350 def register_functions_ns3_internal(module, root_module): |
351 return | 351 return |
352 | 352 |
353 def register_functions_ns3_olsr(module, root_module): | 353 def register_functions_ns3_olsr(module, root_module): |
354 return | 354 return |
355 | 355 |
LEFT | RIGHT |