author | Tom Henderson <tomh@tomh.org> |
Tue, 21 Dec 2010 22:49:48 -0800 | |
changeset 6718 | 87c3097fecef |
parent 6702 | af154b7ea2a2 |
child 6847 | 138f00c56381 |
permissions | -rw-r--r-- |
5249
85cde7d987ed
Python: allow multiple api definitions directories, one per data model.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff
changeset
|
1 |
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers |
85cde7d987ed
Python: allow multiple api definitions directories, one per data model.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff
changeset
|
2 |
|
85cde7d987ed
Python: allow multiple api definitions directories, one per data model.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff
changeset
|
3 |
def register_types(module): |
85cde7d987ed
Python: allow multiple api definitions directories, one per data model.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff
changeset
|
4 |
root_module = module.get_root() |
85cde7d987ed
Python: allow multiple api definitions directories, one per data model.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff
changeset
|
5 |
|
6029
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
6 |
## ipv4-nix-vector-routing.h: ns3::Ipv4NixVectorRouting [class] |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
7 |
module.add_class('Ipv4NixVectorRouting', parent=root_module['ns3::Ipv4RoutingProtocol']) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
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') |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
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*') |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
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&') |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
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') |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
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*') |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
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&') |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
14 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
15 |
## Register a nested module for the namespace Config |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
16 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
17 |
nested_module = module.add_cpp_namespace('Config') |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
18 |
register_types_ns3_Config(nested_module) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
19 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
20 |
|
6375 | 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 |
||
6029
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
27 |
## Register a nested module for the namespace addressUtils |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
28 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
29 |
nested_module = module.add_cpp_namespace('addressUtils') |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
30 |
register_types_ns3_addressUtils(nested_module) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
31 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
32 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
33 |
## Register a nested module for the namespace aodv |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
34 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
35 |
nested_module = module.add_cpp_namespace('aodv') |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
36 |
register_types_ns3_aodv(nested_module) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
37 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
38 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
39 |
## Register a nested module for the namespace dot11s |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
40 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
41 |
nested_module = module.add_cpp_namespace('dot11s') |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
42 |
register_types_ns3_dot11s(nested_module) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
43 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
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 |
||
6029
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
51 |
## Register a nested module for the namespace flame |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
52 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
53 |
nested_module = module.add_cpp_namespace('flame') |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
54 |
register_types_ns3_flame(nested_module) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
55 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
56 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
57 |
## Register a nested module for the namespace internal |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
58 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
59 |
nested_module = module.add_cpp_namespace('internal') |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
60 |
register_types_ns3_internal(nested_module) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
61 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
62 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
63 |
## Register a nested module for the namespace olsr |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
64 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
65 |
nested_module = module.add_cpp_namespace('olsr') |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
66 |
register_types_ns3_olsr(nested_module) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
67 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
68 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
69 |
def register_types_ns3_Config(module): |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
70 |
root_module = module.get_root() |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
71 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
72 |
|
6375 | 73 |
def register_types_ns3_FatalImpl(module): |
74 |
root_module = module.get_root() |
|
75 |
||
76 |
||
6029
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
77 |
def register_types_ns3_addressUtils(module): |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
78 |
root_module = module.get_root() |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
79 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
80 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
81 |
def register_types_ns3_aodv(module): |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
82 |
root_module = module.get_root() |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
83 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
84 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
85 |
def register_types_ns3_dot11s(module): |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
86 |
root_module = module.get_root() |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
87 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
88 |
|
6718 | 89 |
def register_types_ns3_dsdv(module): |
90 |
root_module = module.get_root() |
|
91 |
||
92 |
||
6029
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
93 |
def register_types_ns3_flame(module): |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
94 |
root_module = module.get_root() |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
95 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
96 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
97 |
def register_types_ns3_internal(module): |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
98 |
root_module = module.get_root() |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
99 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
100 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
101 |
def register_types_ns3_olsr(module): |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
102 |
root_module = module.get_root() |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
103 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
104 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
105 |
def register_methods(root_module): |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
106 |
register_Ns3Ipv4NixVectorRouting_methods(root_module, root_module['ns3::Ipv4NixVectorRouting']) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
107 |
return |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
108 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
109 |
def register_Ns3Ipv4NixVectorRouting_methods(root_module, cls): |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
110 |
## ipv4-nix-vector-routing.h: ns3::Ipv4NixVectorRouting::Ipv4NixVectorRouting(ns3::Ipv4NixVectorRouting const & arg0) [copy constructor] |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
111 |
cls.add_constructor([param('ns3::Ipv4NixVectorRouting const &', 'arg0')]) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
112 |
## ipv4-nix-vector-routing.h: ns3::Ipv4NixVectorRouting::Ipv4NixVectorRouting() [constructor] |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
113 |
cls.add_constructor([]) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
114 |
## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::FlushGlobalNixRoutingCache() [member function] |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
115 |
cls.add_method('FlushGlobalNixRoutingCache', |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
116 |
'void', |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
117 |
[]) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
118 |
## ipv4-nix-vector-routing.h: static ns3::TypeId ns3::Ipv4NixVectorRouting::GetTypeId() [member function] |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
119 |
cls.add_method('GetTypeId', |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
120 |
'ns3::TypeId', |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
121 |
[], |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
122 |
is_static=True) |
6055
18ed08fb4c4a
Remove GetTypeId and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6029
diff
changeset
|
123 |
## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::SetNode(ns3::Ptr<ns3::Node> node) [member function] |
6029
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
124 |
cls.add_method('SetNode', |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
125 |
'void', |
6055
18ed08fb4c4a
Remove GetTypeId and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6029
diff
changeset
|
126 |
[param('ns3::Ptr< ns3::Node >', 'node')]) |
6029
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
127 |
## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::DoDispose() [member function] |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
128 |
cls.add_method('DoDispose', |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
129 |
'void', |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
130 |
[], |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
131 |
visibility='private', is_virtual=True) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
132 |
## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::NotifyAddAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function] |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
133 |
cls.add_method('NotifyAddAddress', |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
134 |
'void', |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
135 |
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')], |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
136 |
visibility='private', is_virtual=True) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
137 |
## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::NotifyInterfaceDown(uint32_t interface) [member function] |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
138 |
cls.add_method('NotifyInterfaceDown', |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
139 |
'void', |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
140 |
[param('uint32_t', 'interface')], |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
141 |
visibility='private', is_virtual=True) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
142 |
## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::NotifyInterfaceUp(uint32_t interface) [member function] |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
143 |
cls.add_method('NotifyInterfaceUp', |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
144 |
'void', |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
145 |
[param('uint32_t', 'interface')], |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
146 |
visibility='private', is_virtual=True) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
147 |
## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::NotifyRemoveAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function] |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
148 |
cls.add_method('NotifyRemoveAddress', |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
149 |
'void', |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
150 |
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')], |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
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) |
|
6029
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
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] |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
158 |
cls.add_method('RouteInput', |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
159 |
'bool', |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
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')], |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
161 |
visibility='private', is_virtual=True) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
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] |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
163 |
cls.add_method('RouteOutput', |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
164 |
'ns3::Ptr< ns3::Ipv4Route >', |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
165 |
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice >', 'oif'), param('ns3::Socket::SocketErrno &', 'sockerr')], |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
166 |
visibility='private', is_virtual=True) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
167 |
## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::SetIpv4(ns3::Ptr<ns3::Ipv4> ipv4) [member function] |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
168 |
cls.add_method('SetIpv4', |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
169 |
'void', |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
170 |
[param('ns3::Ptr< ns3::Ipv4 >', 'ipv4')], |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
171 |
visibility='private', is_virtual=True) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
172 |
return |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
173 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
174 |
def register_functions(root_module): |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
175 |
module = root_module |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
176 |
register_functions_ns3_Config(module.get_submodule('Config'), root_module) |
6375 | 177 |
register_functions_ns3_FatalImpl(module.get_submodule('FatalImpl'), root_module) |
6029
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
178 |
register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
179 |
register_functions_ns3_aodv(module.get_submodule('aodv'), root_module) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
180 |
register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module) |
6718 | 181 |
register_functions_ns3_dsdv(module.get_submodule('dsdv'), root_module) |
6029
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
182 |
register_functions_ns3_flame(module.get_submodule('flame'), root_module) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
183 |
register_functions_ns3_internal(module.get_submodule('internal'), root_module) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
184 |
register_functions_ns3_olsr(module.get_submodule('olsr'), root_module) |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
185 |
return |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
186 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
187 |
def register_functions_ns3_Config(module, root_module): |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
188 |
return |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
189 |
|
6375 | 190 |
def register_functions_ns3_FatalImpl(module, root_module): |
191 |
return |
|
192 |
||
6029
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
193 |
def register_functions_ns3_addressUtils(module, root_module): |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
194 |
return |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
195 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
196 |
def register_functions_ns3_aodv(module, root_module): |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
197 |
return |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
198 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
199 |
def register_functions_ns3_dot11s(module, root_module): |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
200 |
return |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
201 |
|
6718 | 202 |
def register_functions_ns3_dsdv(module, root_module): |
203 |
return |
|
204 |
||
6029
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
205 |
def register_functions_ns3_flame(module, root_module): |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
206 |
return |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
207 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
208 |
def register_functions_ns3_internal(module, root_module): |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
209 |
return |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
210 |
|
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
211 |
def register_functions_ns3_olsr(module, root_module): |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
212 |
return |
096af1414c37
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents:
6028
diff
changeset
|
213 |