author | Gustavo J. A. M. Carneiro <gjc@inescporto.pt> |
Fri, 28 Nov 2008 14:45:48 +0000 | |
changeset 3951 | 561a37800333 |
parent 3914 | 18ac5bec5c49 |
child 3972 | a84f2ab246e6 |
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 |
||
3731
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
6 |
## delay-jitter-estimation.h: ns3::DelayJitterEstimation [class] |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
7 |
module.add_class('DelayJitterEstimation') |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
8 |
## event-garbage-collector.h: ns3::EventGarbageCollector [class] |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
9 |
module.add_class('EventGarbageCollector') |
3408 | 10 |
## gnuplot.h: ns3::Gnuplot [class] |
11 |
module.add_class('Gnuplot') |
|
12 |
## gnuplot.h: ns3::GnuplotDataset [class] |
|
13 |
module.add_class('GnuplotDataset') |
|
14 |
## gnuplot.h: ns3::GnuplotDataset::Style [enumeration] |
|
15 |
module.add_enum('Style', ['LINES', 'POINTS', 'LINES_POINTS', 'DOTS', 'IMPULSES', 'STEPS', 'FSTEPS', 'HISTEPS'], outer_class=root_module['ns3::GnuplotDataset']) |
|
16 |
## gnuplot.h: ns3::GnuplotDataset::ErrorBars [enumeration] |
|
17 |
module.add_enum('ErrorBars', ['NONE', 'X', 'Y', 'XY'], outer_class=root_module['ns3::GnuplotDataset']) |
|
3731
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
18 |
## gtk-config-store.h: ns3::GtkConfigStore [class] |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
19 |
module.add_class('GtkConfigStore') |
3408 | 20 |
## config-store.h: ns3::ConfigStore [class] |
3457 | 21 |
module.add_class('ConfigStore', parent=root_module['ns3::ObjectBase']) |
3906
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
22 |
## flow-id-tag.h: ns3::FlowIdTag [class] |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
23 |
module.add_class('FlowIdTag', parent=root_module['ns3::Tag']) |
3408 | 24 |
|
3855
7fdcbeea6c4f
Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3731
diff
changeset
|
25 |
## Register a nested module for the namespace Config |
3408 | 26 |
|
3855
7fdcbeea6c4f
Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3731
diff
changeset
|
27 |
nested_module = module.add_cpp_namespace('Config') |
7fdcbeea6c4f
Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3731
diff
changeset
|
28 |
register_types_ns3_Config(nested_module) |
3408 | 29 |
|
30 |
||
31 |
## Register a nested module for the namespace TimeStepPrecision |
|
32 |
||
33 |
nested_module = module.add_cpp_namespace('TimeStepPrecision') |
|
34 |
register_types_ns3_TimeStepPrecision(nested_module) |
|
35 |
||
36 |
||
3855
7fdcbeea6c4f
Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3731
diff
changeset
|
37 |
## Register a nested module for the namespace internal |
3408 | 38 |
|
3855
7fdcbeea6c4f
Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3731
diff
changeset
|
39 |
nested_module = module.add_cpp_namespace('internal') |
7fdcbeea6c4f
Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3731
diff
changeset
|
40 |
register_types_ns3_internal(nested_module) |
3408 | 41 |
|
42 |
||
43 |
## Register a nested module for the namespace olsr |
|
44 |
||
45 |
nested_module = module.add_cpp_namespace('olsr') |
|
46 |
register_types_ns3_olsr(nested_module) |
|
47 |
||
48 |
||
3855
7fdcbeea6c4f
Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3731
diff
changeset
|
49 |
def register_types_ns3_Config(module): |
3408 | 50 |
root_module = module.get_root() |
51 |
||
52 |
||
53 |
def register_types_ns3_TimeStepPrecision(module): |
|
54 |
root_module = module.get_root() |
|
55 |
||
56 |
||
3855
7fdcbeea6c4f
Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3731
diff
changeset
|
57 |
def register_types_ns3_internal(module): |
3408 | 58 |
root_module = module.get_root() |
59 |
||
60 |
||
61 |
def register_types_ns3_olsr(module): |
|
62 |
root_module = module.get_root() |
|
63 |
||
64 |
||
65 |
def register_methods(root_module): |
|
3731
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
66 |
register_Ns3DelayJitterEstimation_methods(root_module, root_module['ns3::DelayJitterEstimation']) |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
67 |
register_Ns3EventGarbageCollector_methods(root_module, root_module['ns3::EventGarbageCollector']) |
3408 | 68 |
register_Ns3Gnuplot_methods(root_module, root_module['ns3::Gnuplot']) |
3731
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
69 |
register_Ns3GnuplotDataset_methods(root_module, root_module['ns3::GnuplotDataset']) |
3584
4eb48239b4dc
bug 274: bridge must detect compatibility of devices with bridging mode
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3574
diff
changeset
|
70 |
register_Ns3GtkConfigStore_methods(root_module, root_module['ns3::GtkConfigStore']) |
3408 | 71 |
register_Ns3ConfigStore_methods(root_module, root_module['ns3::ConfigStore']) |
3906
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
72 |
register_Ns3FlowIdTag_methods(root_module, root_module['ns3::FlowIdTag']) |
3731
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
73 |
return |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
74 |
|
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
75 |
def register_Ns3DelayJitterEstimation_methods(root_module, cls): |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
76 |
## delay-jitter-estimation.h: ns3::DelayJitterEstimation::DelayJitterEstimation() [constructor] |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
77 |
cls.add_constructor([]) |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
78 |
## delay-jitter-estimation.h: static void ns3::DelayJitterEstimation::PrepareTx(ns3::Ptr<const ns3::Packet> packet) [member function] |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
79 |
cls.add_method('PrepareTx', |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
80 |
'void', |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
81 |
[param('ns3::Ptr< ns3::Packet const >', 'packet')], |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
82 |
is_static=True) |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
83 |
## delay-jitter-estimation.h: void ns3::DelayJitterEstimation::RecordRx(ns3::Ptr<const ns3::Packet> packet) [member function] |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
84 |
cls.add_method('RecordRx', |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
85 |
'void', |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
86 |
[param('ns3::Ptr< ns3::Packet const >', 'packet')]) |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
87 |
## delay-jitter-estimation.h: ns3::Time ns3::DelayJitterEstimation::GetLastDelay() const [member function] |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
88 |
cls.add_method('GetLastDelay', |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
89 |
'ns3::Time', |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
90 |
[], |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
91 |
is_const=True) |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
92 |
## delay-jitter-estimation.h: ns3::Time ns3::DelayJitterEstimation::GetLastJitter() const [member function] |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
93 |
cls.add_method('GetLastJitter', |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
94 |
'ns3::Time', |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
95 |
[], |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
96 |
is_const=True) |
3951
561a37800333
The 'contrib' module actually depends on 'common' too (affects waf --python-scan)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3914
diff
changeset
|
97 |
cls.add_copy_constructor() |
3731
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
98 |
return |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
99 |
|
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
100 |
def register_Ns3EventGarbageCollector_methods(root_module, cls): |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
101 |
## event-garbage-collector.h: ns3::EventGarbageCollector::EventGarbageCollector() [constructor] |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
102 |
cls.add_constructor([]) |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
103 |
## event-garbage-collector.h: void ns3::EventGarbageCollector::Track(ns3::EventId event) [member function] |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
104 |
cls.add_method('Track', |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
105 |
'void', |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
106 |
[param('ns3::EventId', 'event')]) |
3951
561a37800333
The 'contrib' module actually depends on 'common' too (affects waf --python-scan)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3914
diff
changeset
|
107 |
cls.add_copy_constructor() |
3408 | 108 |
return |
109 |
||
110 |
def register_Ns3Gnuplot_methods(root_module, cls): |
|
111 |
## 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
|
112 |
cls.add_constructor([param('std::string', 'pngFilename')]) |
3408 | 113 |
## 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
|
114 |
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
|
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('std::string', 'xLegend'), param('std::string', 'yLegend')]) |
3408 | 117 |
## 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
|
118 |
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
|
119 |
'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
|
120 |
[param('ns3::GnuplotDataset const &', 'dataset')]) |
3408 | 121 |
## 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
|
122 |
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
|
123 |
'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
|
124 |
[param('std::ostream &', 'os')]) |
3951
561a37800333
The 'contrib' module actually depends on 'common' too (affects waf --python-scan)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3914
diff
changeset
|
125 |
cls.add_copy_constructor() |
3408 | 126 |
return |
127 |
||
128 |
def register_Ns3GnuplotDataset_methods(root_module, cls): |
|
129 |
## 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
|
130 |
cls.add_constructor([]) |
3408 | 131 |
## 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
|
132 |
cls.add_constructor([param('std::string', 'title')]) |
3408 | 133 |
## 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
|
134 |
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
|
135 |
'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
|
136 |
[param('ns3::GnuplotDataset::Style', 'style')]) |
3408 | 137 |
## 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
|
138 |
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
|
139 |
'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
|
140 |
[param('ns3::GnuplotDataset::ErrorBars', 'errorBars')]) |
3408 | 141 |
## 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
|
142 |
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
|
143 |
'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
|
144 |
[param('double', 'x'), param('double', 'y')]) |
3408 | 145 |
## 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
|
146 |
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
|
147 |
'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
|
148 |
[param('double', 'x'), param('double', 'y'), param('double', 'errorDelta')]) |
3951
561a37800333
The 'contrib' module actually depends on 'common' too (affects waf --python-scan)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3914
diff
changeset
|
149 |
cls.add_copy_constructor() |
3408 | 150 |
return |
151 |
||
3731
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
152 |
def register_Ns3GtkConfigStore_methods(root_module, cls): |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
153 |
## gtk-config-store.h: ns3::GtkConfigStore::GtkConfigStore() [constructor] |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
154 |
cls.add_constructor([]) |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
155 |
## gtk-config-store.h: void ns3::GtkConfigStore::Configure() [member function] |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
156 |
cls.add_method('Configure', |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
157 |
'void', |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
158 |
[]) |
3951
561a37800333
The 'contrib' module actually depends on 'common' too (affects waf --python-scan)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3914
diff
changeset
|
159 |
cls.add_copy_constructor() |
3731
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
160 |
return |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3584
diff
changeset
|
161 |
|
3408 | 162 |
def register_Ns3ConfigStore_methods(root_module, cls): |
163 |
## 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
|
164 |
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
|
165 |
'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
|
166 |
[], |
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 |
is_static=True) |
3408 | 168 |
## 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
|
169 |
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
|
170 |
'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
|
171 |
[], |
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 |
is_const=True, is_virtual=True) |
3408 | 173 |
## 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
|
174 |
cls.add_constructor([]) |
3408 | 175 |
## 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
|
176 |
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
|
177 |
'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
|
178 |
[]) |
3951
561a37800333
The 'contrib' module actually depends on 'common' too (affects waf --python-scan)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3914
diff
changeset
|
179 |
cls.add_copy_constructor() |
3408 | 180 |
return |
181 |
||
3906
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
182 |
def register_Ns3FlowIdTag_methods(root_module, cls): |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
183 |
## flow-id-tag.h: static ns3::TypeId ns3::FlowIdTag::GetTypeId() [member function] |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
184 |
cls.add_method('GetTypeId', |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
185 |
'ns3::TypeId', |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
186 |
[], |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
187 |
is_static=True) |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
188 |
## flow-id-tag.h: ns3::TypeId ns3::FlowIdTag::GetInstanceTypeId() const [member function] |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
189 |
cls.add_method('GetInstanceTypeId', |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
190 |
'ns3::TypeId', |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
191 |
[], |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
192 |
is_const=True, is_virtual=True) |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
193 |
## flow-id-tag.h: uint32_t ns3::FlowIdTag::GetSerializedSize() const [member function] |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
194 |
cls.add_method('GetSerializedSize', |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
195 |
'uint32_t', |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
196 |
[], |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
197 |
is_const=True, is_virtual=True) |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
198 |
## flow-id-tag.h: void ns3::FlowIdTag::Serialize(ns3::TagBuffer buf) const [member function] |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
199 |
cls.add_method('Serialize', |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
200 |
'void', |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
201 |
[param('ns3::TagBuffer', 'buf')], |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
202 |
is_const=True, is_virtual=True) |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
203 |
## flow-id-tag.h: void ns3::FlowIdTag::Deserialize(ns3::TagBuffer buf) [member function] |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
204 |
cls.add_method('Deserialize', |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
205 |
'void', |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
206 |
[param('ns3::TagBuffer', 'buf')], |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
207 |
is_virtual=True) |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
208 |
## flow-id-tag.h: void ns3::FlowIdTag::Print(std::ostream & os) const [member function] |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
209 |
cls.add_method('Print', |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
210 |
'void', |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
211 |
[param('std::ostream &', 'os')], |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
212 |
is_const=True, is_virtual=True) |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
213 |
## flow-id-tag.h: ns3::FlowIdTag::FlowIdTag() [constructor] |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
214 |
cls.add_constructor([]) |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
215 |
## flow-id-tag.h: ns3::FlowIdTag::FlowIdTag(uint32_t flowId) [constructor] |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
216 |
cls.add_constructor([param('uint32_t', 'flowId')]) |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
217 |
## flow-id-tag.h: void ns3::FlowIdTag::SetFlowId(uint32_t flowId) [member function] |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
218 |
cls.add_method('SetFlowId', |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
219 |
'void', |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
220 |
[param('uint32_t', 'flowId')]) |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
221 |
## flow-id-tag.h: uint32_t ns3::FlowIdTag::GetFlowId() const [member function] |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
222 |
cls.add_method('GetFlowId', |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
223 |
'uint32_t', |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
224 |
[], |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
225 |
is_const=True) |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
226 |
## flow-id-tag.h: static uint32_t ns3::FlowIdTag::AllocateFlowId() [member function] |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
227 |
cls.add_method('AllocateFlowId', |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
228 |
'uint32_t', |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
229 |
[], |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
230 |
is_static=True) |
3951
561a37800333
The 'contrib' module actually depends on 'common' too (affects waf --python-scan)
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3914
diff
changeset
|
231 |
cls.add_copy_constructor() |
3906
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
232 |
return |
01acc159ffb1
merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
233 |
|
3408 | 234 |
def register_functions(root_module): |
235 |
module = root_module |
|
3855
7fdcbeea6c4f
Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3731
diff
changeset
|
236 |
register_functions_ns3_Config(module.get_submodule('Config'), root_module) |
3408 | 237 |
register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) |
3855
7fdcbeea6c4f
Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3731
diff
changeset
|
238 |
register_functions_ns3_internal(module.get_submodule('internal'), root_module) |
3408 | 239 |
register_functions_ns3_olsr(module.get_submodule('olsr'), root_module) |
240 |
return |
|
241 |
||
3855
7fdcbeea6c4f
Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3731
diff
changeset
|
242 |
def register_functions_ns3_Config(module, root_module): |
7fdcbeea6c4f
Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3731
diff
changeset
|
243 |
return |
7fdcbeea6c4f
Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3731
diff
changeset
|
244 |
|
7fdcbeea6c4f
Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3731
diff
changeset
|
245 |
def register_functions_ns3_TimeStepPrecision(module, root_module): |
7fdcbeea6c4f
Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3731
diff
changeset
|
246 |
return |
7fdcbeea6c4f
Python: require new pybindgen and re-scan API to make the list of free functions and namespaces sorted.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3731
diff
changeset
|
247 |
|
3408 | 248 |
def register_functions_ns3_internal(module, root_module): |
249 |
return |
|
250 |
||
251 |
def register_functions_ns3_olsr(module, root_module): |
|
252 |
return |
|
253 |