author | Gustavo J. A. M. Carneiro <gjc@inescporto.pt> |
Tue, 02 Sep 2008 11:12:42 +0100 | |
changeset 3574 | b6804efbe16b |
parent 3567 | 728eb3f583b3 |
child 3584 | 4eb48239b4dc |
permissions | -rw-r--r-- |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
1 |
from pybindgen import Module, FileCodeSink, param, retval, cppclass |
3408 | 2 |
|
3 |
def register_types(module): |
|
4 |
root_module = module.get_root() |
|
5 |
||
6 |
## gnuplot.h: ns3::Gnuplot [class] |
|
7 |
module.add_class('Gnuplot') |
|
8 |
## event-garbage-collector.h: ns3::EventGarbageCollector [class] |
|
9 |
module.add_class('EventGarbageCollector') |
|
10 |
## gnuplot.h: ns3::GnuplotDataset [class] |
|
11 |
module.add_class('GnuplotDataset') |
|
12 |
## gnuplot.h: ns3::GnuplotDataset::Style [enumeration] |
|
13 |
module.add_enum('Style', ['LINES', 'POINTS', 'LINES_POINTS', 'DOTS', 'IMPULSES', 'STEPS', 'FSTEPS', 'HISTEPS'], outer_class=root_module['ns3::GnuplotDataset']) |
|
14 |
## gnuplot.h: ns3::GnuplotDataset::ErrorBars [enumeration] |
|
15 |
module.add_enum('ErrorBars', ['NONE', 'X', 'Y', 'XY'], outer_class=root_module['ns3::GnuplotDataset']) |
|
16 |
## gtk-config-store.h: ns3::GtkConfigStore [class] |
|
17 |
module.add_class('GtkConfigStore') |
|
18 |
## config-store.h: ns3::ConfigStore [class] |
|
3457 | 19 |
module.add_class('ConfigStore', parent=root_module['ns3::ObjectBase']) |
3408 | 20 |
## delay-jitter-estimation.h: ns3::DelayJitterEstimation [class] |
21 |
module.add_class('DelayJitterEstimation') |
|
22 |
||
23 |
## Register a nested module for the namespace internal |
|
24 |
||
25 |
nested_module = module.add_cpp_namespace('internal') |
|
26 |
register_types_ns3_internal(nested_module) |
|
27 |
||
28 |
||
29 |
## Register a nested module for the namespace TimeStepPrecision |
|
30 |
||
31 |
nested_module = module.add_cpp_namespace('TimeStepPrecision') |
|
32 |
register_types_ns3_TimeStepPrecision(nested_module) |
|
33 |
||
34 |
||
35 |
## Register a nested module for the namespace Config |
|
36 |
||
37 |
nested_module = module.add_cpp_namespace('Config') |
|
38 |
register_types_ns3_Config(nested_module) |
|
39 |
||
40 |
||
41 |
## Register a nested module for the namespace olsr |
|
42 |
||
43 |
nested_module = module.add_cpp_namespace('olsr') |
|
44 |
register_types_ns3_olsr(nested_module) |
|
45 |
||
46 |
||
47 |
def register_types_ns3_internal(module): |
|
48 |
root_module = module.get_root() |
|
49 |
||
50 |
||
51 |
def register_types_ns3_TimeStepPrecision(module): |
|
52 |
root_module = module.get_root() |
|
53 |
||
54 |
||
55 |
def register_types_ns3_Config(module): |
|
56 |
root_module = module.get_root() |
|
57 |
||
58 |
||
59 |
def register_types_ns3_olsr(module): |
|
60 |
root_module = module.get_root() |
|
61 |
||
62 |
||
63 |
def register_methods(root_module): |
|
64 |
register_Ns3Gnuplot_methods(root_module, root_module['ns3::Gnuplot']) |
|
65 |
register_Ns3EventGarbageCollector_methods(root_module, root_module['ns3::EventGarbageCollector']) |
|
66 |
register_Ns3GnuplotDataset_methods(root_module, root_module['ns3::GnuplotDataset']) |
|
67 |
register_Ns3GtkConfigStore_methods(root_module, root_module['ns3::GtkConfigStore']) |
|
68 |
register_Ns3ConfigStore_methods(root_module, root_module['ns3::ConfigStore']) |
|
69 |
register_Ns3DelayJitterEstimation_methods(root_module, root_module['ns3::DelayJitterEstimation']) |
|
70 |
return |
|
71 |
||
72 |
def register_Ns3Gnuplot_methods(root_module, cls): |
|
3567
728eb3f583b3
Require new PyBindGen (now ignores the badly scanned anonymous containers that cause problems on cygwin) and rescan API.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3544
diff
changeset
|
73 |
## gnuplot.h: ns3::Gnuplot::Gnuplot(ns3::Gnuplot const & arg0) [copy constructor] |
3574
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
74 |
cls.add_constructor([param('ns3::Gnuplot const &', 'arg0')]) |
3408 | 75 |
## gnuplot.h: ns3::Gnuplot::Gnuplot(std::string pngFilename) [constructor] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
76 |
cls.add_constructor([param('std::string', 'pngFilename')]) |
3408 | 77 |
## gnuplot.h: void ns3::Gnuplot::SetLegend(std::string xLegend, std::string yLegend) [member function] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
78 |
cls.add_method('SetLegend', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
79 |
'void', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
80 |
[param('std::string', 'xLegend'), param('std::string', 'yLegend')]) |
3408 | 81 |
## gnuplot.h: void ns3::Gnuplot::AddDataset(ns3::GnuplotDataset const & dataset) [member function] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
82 |
cls.add_method('AddDataset', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
83 |
'void', |
3574
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
84 |
[param('ns3::GnuplotDataset const &', 'dataset')]) |
3408 | 85 |
## gnuplot.h: void ns3::Gnuplot::GenerateOutput(std::ostream & os) [member function] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
86 |
cls.add_method('GenerateOutput', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
87 |
'void', |
3574
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
88 |
[param('std::ostream &', 'os')]) |
3408 | 89 |
return |
90 |
||
91 |
def register_Ns3EventGarbageCollector_methods(root_module, cls): |
|
3567
728eb3f583b3
Require new PyBindGen (now ignores the badly scanned anonymous containers that cause problems on cygwin) and rescan API.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3544
diff
changeset
|
92 |
## event-garbage-collector.h: ns3::EventGarbageCollector::EventGarbageCollector(ns3::EventGarbageCollector const & arg0) [copy constructor] |
3574
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
93 |
cls.add_constructor([param('ns3::EventGarbageCollector const &', 'arg0')]) |
3408 | 94 |
## event-garbage-collector.h: ns3::EventGarbageCollector::EventGarbageCollector() [constructor] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
95 |
cls.add_constructor([]) |
3408 | 96 |
## event-garbage-collector.h: void ns3::EventGarbageCollector::Track(ns3::EventId event) [member function] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
97 |
cls.add_method('Track', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
98 |
'void', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
99 |
[param('ns3::EventId', 'event')]) |
3408 | 100 |
return |
101 |
||
102 |
def register_Ns3GnuplotDataset_methods(root_module, cls): |
|
3567
728eb3f583b3
Require new PyBindGen (now ignores the badly scanned anonymous containers that cause problems on cygwin) and rescan API.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3544
diff
changeset
|
103 |
## gnuplot.h: ns3::GnuplotDataset::GnuplotDataset(ns3::GnuplotDataset const & arg0) [copy constructor] |
3574
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
104 |
cls.add_constructor([param('ns3::GnuplotDataset const &', 'arg0')]) |
3408 | 105 |
## gnuplot.h: ns3::GnuplotDataset::GnuplotDataset() [constructor] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
106 |
cls.add_constructor([]) |
3408 | 107 |
## gnuplot.h: ns3::GnuplotDataset::GnuplotDataset(std::string title) [constructor] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
108 |
cls.add_constructor([param('std::string', 'title')]) |
3408 | 109 |
## gnuplot.h: void ns3::GnuplotDataset::SetStyle(ns3::GnuplotDataset::Style style) [member function] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
110 |
cls.add_method('SetStyle', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
111 |
'void', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
112 |
[param('ns3::GnuplotDataset::Style', 'style')]) |
3408 | 113 |
## gnuplot.h: void ns3::GnuplotDataset::SetErrorBars(ns3::GnuplotDataset::ErrorBars errorBars) [member function] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
114 |
cls.add_method('SetErrorBars', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
115 |
'void', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
116 |
[param('ns3::GnuplotDataset::ErrorBars', 'errorBars')]) |
3408 | 117 |
## gnuplot.h: void ns3::GnuplotDataset::Add(double x, double y) [member function] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
118 |
cls.add_method('Add', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
119 |
'void', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
120 |
[param('double', 'x'), param('double', 'y')]) |
3408 | 121 |
## gnuplot.h: void ns3::GnuplotDataset::Add(double x, double y, double errorDelta) [member function] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
122 |
cls.add_method('Add', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
123 |
'void', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
124 |
[param('double', 'x'), param('double', 'y'), param('double', 'errorDelta')]) |
3408 | 125 |
return |
126 |
||
127 |
def register_Ns3GtkConfigStore_methods(root_module, cls): |
|
3567
728eb3f583b3
Require new PyBindGen (now ignores the badly scanned anonymous containers that cause problems on cygwin) and rescan API.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3544
diff
changeset
|
128 |
## gtk-config-store.h: ns3::GtkConfigStore::GtkConfigStore(ns3::GtkConfigStore const & arg0) [copy constructor] |
3574
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
129 |
cls.add_constructor([param('ns3::GtkConfigStore const &', 'arg0')]) |
3408 | 130 |
## gtk-config-store.h: ns3::GtkConfigStore::GtkConfigStore() [constructor] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
131 |
cls.add_constructor([]) |
3408 | 132 |
## gtk-config-store.h: void ns3::GtkConfigStore::Configure() [member function] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
133 |
cls.add_method('Configure', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
134 |
'void', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
135 |
[]) |
3408 | 136 |
return |
137 |
||
138 |
def register_Ns3ConfigStore_methods(root_module, cls): |
|
3567
728eb3f583b3
Require new PyBindGen (now ignores the badly scanned anonymous containers that cause problems on cygwin) and rescan API.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3544
diff
changeset
|
139 |
## config-store.h: ns3::ConfigStore::ConfigStore(ns3::ConfigStore const & arg0) [copy constructor] |
3574
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
140 |
cls.add_constructor([param('ns3::ConfigStore const &', 'arg0')]) |
3408 | 141 |
## config-store.h: static ns3::TypeId ns3::ConfigStore::GetTypeId() [member function] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
142 |
cls.add_method('GetTypeId', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
143 |
'ns3::TypeId', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
144 |
[], |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
145 |
is_static=True) |
3408 | 146 |
## config-store.h: ns3::TypeId ns3::ConfigStore::GetInstanceTypeId() const [member function] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
147 |
cls.add_method('GetInstanceTypeId', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
148 |
'ns3::TypeId', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
149 |
[], |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
150 |
is_const=True, is_virtual=True) |
3408 | 151 |
## config-store.h: ns3::ConfigStore::ConfigStore() [constructor] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
152 |
cls.add_constructor([]) |
3408 | 153 |
## config-store.h: void ns3::ConfigStore::Configure() [member function] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
154 |
cls.add_method('Configure', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
155 |
'void', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
156 |
[]) |
3408 | 157 |
return |
158 |
||
159 |
def register_Ns3DelayJitterEstimation_methods(root_module, cls): |
|
3567
728eb3f583b3
Require new PyBindGen (now ignores the badly scanned anonymous containers that cause problems on cygwin) and rescan API.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3544
diff
changeset
|
160 |
## delay-jitter-estimation.h: ns3::DelayJitterEstimation::DelayJitterEstimation(ns3::DelayJitterEstimation const & arg0) [copy constructor] |
3574
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
161 |
cls.add_constructor([param('ns3::DelayJitterEstimation const &', 'arg0')]) |
3408 | 162 |
## delay-jitter-estimation.h: ns3::DelayJitterEstimation::DelayJitterEstimation() [constructor] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
163 |
cls.add_constructor([]) |
3408 | 164 |
## delay-jitter-estimation.h: static void ns3::DelayJitterEstimation::PrepareTx(ns3::Ptr<const ns3::Packet> packet) [member function] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
165 |
cls.add_method('PrepareTx', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
166 |
'void', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
167 |
[param('ns3::Ptr< const ns3::Packet >', 'packet')], |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
168 |
is_static=True) |
3408 | 169 |
## delay-jitter-estimation.h: void ns3::DelayJitterEstimation::RecordRx(ns3::Ptr<const ns3::Packet> packet) [member function] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
170 |
cls.add_method('RecordRx', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
171 |
'void', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
172 |
[param('ns3::Ptr< const ns3::Packet >', 'packet')]) |
3408 | 173 |
## delay-jitter-estimation.h: ns3::Time ns3::DelayJitterEstimation::GetLastDelay() const [member function] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
174 |
cls.add_method('GetLastDelay', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
175 |
'ns3::Time', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
176 |
[], |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
177 |
is_const=True) |
3408 | 178 |
## delay-jitter-estimation.h: ns3::Time ns3::DelayJitterEstimation::GetLastJitter() const [member function] |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
179 |
cls.add_method('GetLastJitter', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
180 |
'ns3::Time', |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
181 |
[], |
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
182 |
is_const=True) |
3408 | 183 |
return |
184 |
||
185 |
def register_functions(root_module): |
|
186 |
module = root_module |
|
187 |
register_functions_ns3_internal(module.get_submodule('internal'), root_module) |
|
188 |
register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) |
|
189 |
register_functions_ns3_Config(module.get_submodule('Config'), root_module) |
|
190 |
register_functions_ns3_olsr(module.get_submodule('olsr'), root_module) |
|
191 |
return |
|
192 |
||
193 |
def register_functions_ns3_internal(module, root_module): |
|
194 |
return |
|
195 |
||
196 |
def register_functions_ns3_TimeStepPrecision(module, root_module): |
|
197 |
return |
|
198 |
||
199 |
def register_functions_ns3_Config(module, root_module): |
|
200 |
return |
|
201 |
||
202 |
def register_functions_ns3_olsr(module, root_module): |
|
203 |
return |
|
204 |