author | Craig Dowell <craigdo@ee.washington.edu> |
Tue, 26 Aug 2008 15:34:57 -0700 | |
changeset 3560 | 5aa65b1ea001 |
parent 3544 | 3685ab98e4b2 |
child 3567 | 728eb3f583b3 |
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): |
|
73 |
## 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
|
74 |
cls.add_constructor([param('std::string', 'pngFilename')]) |
3408 | 75 |
## 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
|
76 |
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
|
77 |
'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
|
78 |
[param('std::string', 'xLegend'), param('std::string', 'yLegend')]) |
3408 | 79 |
## 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
|
80 |
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
|
81 |
'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
|
82 |
[param('ns3::GnuplotDataset&', 'dataset', is_const=True)]) |
3408 | 83 |
## 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
|
84 |
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
|
85 |
'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
|
86 |
[param('std::ostream&', 'os')]) |
3544
3685ab98e4b2
New PyBindGen version and API rescan: adds missing copy constructors, and generates __copy__ methods so that python's copy.copy() works on our objects.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3468
diff
changeset
|
87 |
cls.add_copy_constructor() |
3408 | 88 |
return |
89 |
||
90 |
def register_Ns3EventGarbageCollector_methods(root_module, cls): |
|
91 |
## 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
|
92 |
cls.add_constructor([]) |
3408 | 93 |
## 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
|
94 |
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
|
95 |
'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
|
96 |
[param('ns3::EventId', 'event')]) |
3544
3685ab98e4b2
New PyBindGen version and API rescan: adds missing copy constructors, and generates __copy__ methods so that python's copy.copy() works on our objects.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3468
diff
changeset
|
97 |
cls.add_copy_constructor() |
3408 | 98 |
return |
99 |
||
100 |
def register_Ns3GnuplotDataset_methods(root_module, cls): |
|
101 |
## 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
|
102 |
cls.add_constructor([]) |
3408 | 103 |
## 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
|
104 |
cls.add_constructor([param('std::string', 'title')]) |
3408 | 105 |
## 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
|
106 |
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
|
107 |
'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
|
108 |
[param('ns3::GnuplotDataset::Style', 'style')]) |
3408 | 109 |
## 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
|
110 |
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
|
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::ErrorBars', 'errorBars')]) |
3408 | 113 |
## 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
|
114 |
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
|
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('double', 'x'), param('double', 'y')]) |
3408 | 117 |
## 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
|
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'), param('double', 'errorDelta')]) |
3544
3685ab98e4b2
New PyBindGen version and API rescan: adds missing copy constructors, and generates __copy__ methods so that python's copy.copy() works on our objects.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3468
diff
changeset
|
121 |
cls.add_copy_constructor() |
3408 | 122 |
return |
123 |
||
124 |
def register_Ns3GtkConfigStore_methods(root_module, cls): |
|
125 |
## 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
|
126 |
cls.add_constructor([]) |
3408 | 127 |
## 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
|
128 |
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
|
129 |
'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
|
130 |
[]) |
3544
3685ab98e4b2
New PyBindGen version and API rescan: adds missing copy constructors, and generates __copy__ methods so that python's copy.copy() works on our objects.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3468
diff
changeset
|
131 |
cls.add_copy_constructor() |
3408 | 132 |
return |
133 |
||
134 |
def register_Ns3ConfigStore_methods(root_module, cls): |
|
135 |
## 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
|
136 |
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
|
137 |
'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
|
138 |
[], |
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
|
139 |
is_static=True) |
3408 | 140 |
## 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
|
141 |
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
|
142 |
'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
|
143 |
[], |
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 |
is_const=True, is_virtual=True) |
3408 | 145 |
## 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
|
146 |
cls.add_constructor([]) |
3408 | 147 |
## 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
|
148 |
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
|
149 |
'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
|
150 |
[]) |
3544
3685ab98e4b2
New PyBindGen version and API rescan: adds missing copy constructors, and generates __copy__ methods so that python's copy.copy() works on our objects.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3468
diff
changeset
|
151 |
cls.add_copy_constructor() |
3408 | 152 |
return |
153 |
||
154 |
def register_Ns3DelayJitterEstimation_methods(root_module, cls): |
|
155 |
## 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
|
156 |
cls.add_constructor([]) |
3408 | 157 |
## 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
|
158 |
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
|
159 |
'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
|
160 |
[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
|
161 |
is_static=True) |
3408 | 162 |
## 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
|
163 |
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
|
164 |
'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
|
165 |
[param('ns3::Ptr< const ns3::Packet >', 'packet')]) |
3408 | 166 |
## 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
|
167 |
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
|
168 |
'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
|
169 |
[], |
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 |
is_const=True) |
3408 | 171 |
## 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
|
172 |
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
|
173 |
'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
|
174 |
[], |
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 |
is_const=True) |
3544
3685ab98e4b2
New PyBindGen version and API rescan: adds missing copy constructors, and generates __copy__ methods so that python's copy.copy() works on our objects.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3468
diff
changeset
|
176 |
cls.add_copy_constructor() |
3408 | 177 |
return |
178 |
||
179 |
def register_functions(root_module): |
|
180 |
module = root_module |
|
181 |
register_functions_ns3_internal(module.get_submodule('internal'), root_module) |
|
182 |
register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) |
|
183 |
register_functions_ns3_Config(module.get_submodule('Config'), root_module) |
|
184 |
register_functions_ns3_olsr(module.get_submodule('olsr'), root_module) |
|
185 |
return |
|
186 |
||
187 |
def register_functions_ns3_internal(module, root_module): |
|
188 |
return |
|
189 |
||
190 |
def register_functions_ns3_TimeStepPrecision(module, root_module): |
|
191 |
return |
|
192 |
||
193 |
def register_functions_ns3_Config(module, root_module): |
|
194 |
return |
|
195 |
||
196 |
def register_functions_ns3_olsr(module, root_module): |
|
197 |
return |
|
198 |