bindings/python/ns3_module_contrib.py
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Fri, 09 Jan 2009 09:54:14 +0100
changeset 4062 343056c3b5d0
parent 3972 a84f2ab246e6
child 4218 debf1a8a96d3
permissions -rw-r--r--
rescan python
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     2
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     3
def register_types(module):
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     4
    root_module = module.get_root()
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     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
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    10
    ## gnuplot.h: ns3::Gnuplot [class]
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    11
    module.add_class('Gnuplot')
4062
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
    12
    ## gnuplot.h: ns3::GnuplotCollection [class]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
    13
    module.add_class('GnuplotCollection')
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    14
    ## gnuplot.h: ns3::GnuplotDataset [class]
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    15
    module.add_class('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
    16
    ## 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
    17
    module.add_class('GtkConfigStore')
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    18
    ## config-store.h: ns3::ConfigStore [class]
3457
2ff6f05b9467 Rescan API
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents: 3408
diff changeset
    19
    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
    20
    ## flow-id-tag.h: ns3::FlowIdTag [class]
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
    21
    module.add_class('FlowIdTag', parent=root_module['ns3::Tag'])
4062
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
    22
    ## gnuplot.h: ns3::Gnuplot2dDataset [class]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
    23
    module.add_class('Gnuplot2dDataset', parent=root_module['ns3::GnuplotDataset'])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
    24
    ## gnuplot.h: ns3::Gnuplot2dDataset::Style [enumeration]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
    25
    module.add_enum('Style', ['LINES', 'POINTS', 'LINES_POINTS', 'DOTS', 'IMPULSES', 'STEPS', 'FSTEPS', 'HISTEPS'], outer_class=root_module['ns3::Gnuplot2dDataset'])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
    26
    ## gnuplot.h: ns3::Gnuplot2dDataset::ErrorBars [enumeration]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
    27
    module.add_enum('ErrorBars', ['NONE', 'X', 'Y', 'XY'], outer_class=root_module['ns3::Gnuplot2dDataset'])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
    28
    ## gnuplot.h: ns3::Gnuplot2dFunction [class]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
    29
    module.add_class('Gnuplot2dFunction', parent=root_module['ns3::GnuplotDataset'])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
    30
    ## gnuplot.h: ns3::Gnuplot3dDataset [class]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
    31
    module.add_class('Gnuplot3dDataset', parent=root_module['ns3::GnuplotDataset'])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
    32
    ## gnuplot.h: ns3::Gnuplot3dFunction [class]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
    33
    module.add_class('Gnuplot3dFunction', parent=root_module['ns3::GnuplotDataset'])
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    34
    
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
    35
    ## Register a nested module for the namespace Config
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    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
    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
    38
    register_types_ns3_Config(nested_module)
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    39
    
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    40
    
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    41
    ## Register a nested module for the namespace TimeStepPrecision
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    42
    
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    43
    nested_module = module.add_cpp_namespace('TimeStepPrecision')
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    44
    register_types_ns3_TimeStepPrecision(nested_module)
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    45
    
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    46
    
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
    47
    ## Register a nested module for the namespace internal
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    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
    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
    50
    register_types_ns3_internal(nested_module)
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    51
    
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    52
    
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    53
    ## Register a nested module for the namespace olsr
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    54
    
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    55
    nested_module = module.add_cpp_namespace('olsr')
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    56
    register_types_ns3_olsr(nested_module)
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    57
    
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    58
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
    59
def register_types_ns3_Config(module):
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    60
    root_module = module.get_root()
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    61
    
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    62
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    63
def register_types_ns3_TimeStepPrecision(module):
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    64
    root_module = module.get_root()
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    65
    
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    66
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
    67
def register_types_ns3_internal(module):
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    68
    root_module = module.get_root()
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    69
    
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    70
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    71
def register_types_ns3_olsr(module):
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    72
    root_module = module.get_root()
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    73
    
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    74
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    75
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
    76
    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
    77
    register_Ns3EventGarbageCollector_methods(root_module, root_module['ns3::EventGarbageCollector'])
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    78
    register_Ns3Gnuplot_methods(root_module, root_module['ns3::Gnuplot'])
4062
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
    79
    register_Ns3GnuplotCollection_methods(root_module, root_module['ns3::GnuplotCollection'])
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
    80
    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
    81
    register_Ns3GtkConfigStore_methods(root_module, root_module['ns3::GtkConfigStore'])
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
    82
    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
    83
    register_Ns3FlowIdTag_methods(root_module, root_module['ns3::FlowIdTag'])
4062
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
    84
    register_Ns3Gnuplot2dDataset_methods(root_module, root_module['ns3::Gnuplot2dDataset'])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
    85
    register_Ns3Gnuplot2dFunction_methods(root_module, root_module['ns3::Gnuplot2dFunction'])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
    86
    register_Ns3Gnuplot3dDataset_methods(root_module, root_module['ns3::Gnuplot3dDataset'])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
    87
    register_Ns3Gnuplot3dFunction_methods(root_module, root_module['ns3::Gnuplot3dFunction'])
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
    88
    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
    89
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
def register_Ns3DelayJitterEstimation_methods(root_module, cls):
3972
a84f2ab246e6 rescan bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 3951
diff changeset
    91
    ## delay-jitter-estimation.h: ns3::DelayJitterEstimation::DelayJitterEstimation(ns3::DelayJitterEstimation const & arg0) [copy constructor]
a84f2ab246e6 rescan bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 3951
diff changeset
    92
    cls.add_constructor([param('ns3::DelayJitterEstimation const &', 'arg0')])
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
    93
    ## 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
    94
    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
    95
    ## 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
    96
    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
    97
                   '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
    98
                   [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
    99
                   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
   100
    ## 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
   101
    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
   102
                   '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
   103
                   [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
   104
    ## 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
   105
    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
   106
                   '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
   107
                   [], 
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
   108
                   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
   109
    ## 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
   110
    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
   111
                   '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
   112
                   [], 
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
   113
                   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
   114
    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
   115
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
   116
def register_Ns3EventGarbageCollector_methods(root_module, cls):
3972
a84f2ab246e6 rescan bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 3951
diff changeset
   117
    ## event-garbage-collector.h: ns3::EventGarbageCollector::EventGarbageCollector(ns3::EventGarbageCollector const & arg0) [copy constructor]
a84f2ab246e6 rescan bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 3951
diff changeset
   118
    cls.add_constructor([param('ns3::EventGarbageCollector const &', 'arg0')])
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
   119
    ## 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
   120
    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
   121
    ## 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
   122
    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
   123
                   '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
   124
                   [param('ns3::EventId', 'event')])
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   125
    return
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   126
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   127
def register_Ns3Gnuplot_methods(root_module, cls):
3972
a84f2ab246e6 rescan bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 3951
diff changeset
   128
    ## gnuplot.h: ns3::Gnuplot::Gnuplot(ns3::Gnuplot const & arg0) [copy constructor]
a84f2ab246e6 rescan bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 3951
diff changeset
   129
    cls.add_constructor([param('ns3::Gnuplot const &', 'arg0')])
4062
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   130
    ## gnuplot.h: ns3::Gnuplot::Gnuplot(std::string const & outputFilename="", std::string const & title="") [constructor]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   131
    cls.add_constructor([param('std::string const &', 'outputFilename', default_value='""'), param('std::string const &', 'title', default_value='""')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   132
    ## gnuplot.h: static std::string ns3::Gnuplot::DetectTerminal(std::string const & filename) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   133
    cls.add_method('DetectTerminal', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   134
                   'std::string', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   135
                   [param('std::string const &', 'filename')], 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   136
                   is_static=True)
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   137
    ## gnuplot.h: void ns3::Gnuplot::SetTerminal(std::string const & terminal) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   138
    cls.add_method('SetTerminal', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   139
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   140
                   [param('std::string const &', 'terminal')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   141
    ## gnuplot.h: void ns3::Gnuplot::SetTitle(std::string const & title) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   142
    cls.add_method('SetTitle', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   143
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   144
                   [param('std::string const &', 'title')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   145
    ## gnuplot.h: void ns3::Gnuplot::SetLegend(std::string const & xLegend, std::string const & 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
   146
    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
   147
                   'void', 
4062
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   148
                   [param('std::string const &', 'xLegend'), param('std::string const &', 'yLegend')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   149
    ## gnuplot.h: void ns3::Gnuplot::SetExtra(std::string const & extra) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   150
    cls.add_method('SetExtra', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   151
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   152
                   [param('std::string const &', 'extra')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   153
    ## gnuplot.h: void ns3::Gnuplot::AppendExtra(std::string const & extra) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   154
    cls.add_method('AppendExtra', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   155
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   156
                   [param('std::string const &', 'extra')])
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   157
    ## 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
   158
    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
   159
                   '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
   160
                   [param('ns3::GnuplotDataset const &', 'dataset')])
4062
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   161
    ## gnuplot.h: void ns3::Gnuplot::GenerateOutput(std::ostream & os) 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
   162
    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
   163
                   'void', 
4062
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   164
                   [param('std::ostream &', 'os')], 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   165
                   is_const=True)
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   166
    return
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   167
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   168
def register_Ns3GnuplotCollection_methods(root_module, cls):
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   169
    ## gnuplot.h: ns3::GnuplotCollection::GnuplotCollection(ns3::GnuplotCollection const & arg0) [copy constructor]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   170
    cls.add_constructor([param('ns3::GnuplotCollection const &', 'arg0')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   171
    ## gnuplot.h: ns3::GnuplotCollection::GnuplotCollection(std::string const & outputFilename) [constructor]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   172
    cls.add_constructor([param('std::string const &', 'outputFilename')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   173
    ## gnuplot.h: void ns3::GnuplotCollection::SetTerminal(std::string const & terminal) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   174
    cls.add_method('SetTerminal', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   175
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   176
                   [param('std::string const &', 'terminal')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   177
    ## gnuplot.h: void ns3::GnuplotCollection::AddPlot(ns3::Gnuplot const & plot) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   178
    cls.add_method('AddPlot', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   179
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   180
                   [param('ns3::Gnuplot const &', 'plot')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   181
    ## gnuplot.h: ns3::Gnuplot & ns3::GnuplotCollection::GetPlot(unsigned int id) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   182
    cls.add_method('GetPlot', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   183
                   'ns3::Gnuplot &', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   184
                   [param('unsigned int', 'id')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   185
    ## gnuplot.h: void ns3::GnuplotCollection::GenerateOutput(std::ostream & os) const [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   186
    cls.add_method('GenerateOutput', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   187
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   188
                   [param('std::ostream &', 'os')], 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   189
                   is_const=True)
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   190
    return
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   191
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   192
def register_Ns3GnuplotDataset_methods(root_module, cls):
4062
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   193
    ## gnuplot.h: ns3::GnuplotDataset::GnuplotDataset(ns3::GnuplotDataset const & original) [copy constructor]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   194
    cls.add_constructor([param('ns3::GnuplotDataset const &', 'original')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   195
    ## gnuplot.h: void ns3::GnuplotDataset::SetTitle(std::string const & title) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   196
    cls.add_method('SetTitle', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   197
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   198
                   [param('std::string const &', 'title')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   199
    ## gnuplot.h: static void ns3::GnuplotDataset::SetDefaultExtra(std::string const & extra) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   200
    cls.add_method('SetDefaultExtra', 
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
   201
                   'void', 
4062
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   202
                   [param('std::string const &', 'extra')], 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   203
                   is_static=True)
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   204
    ## gnuplot.h: void ns3::GnuplotDataset::SetExtra(std::string const & extra) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   205
    cls.add_method('SetExtra', 
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
   206
                   'void', 
4062
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   207
                   [param('std::string const &', 'extra')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   208
    ## gnuplot.h: ns3::GnuplotDataset::GnuplotDataset(ns3::GnuplotDataset::Data * data) [constructor]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   209
    cls.add_constructor([param('ns3::GnuplotDataset::Data *', 'data')], 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   210
                        visibility='protected')
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   211
    return
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   212
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
   213
def register_Ns3GtkConfigStore_methods(root_module, cls):
3972
a84f2ab246e6 rescan bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 3951
diff changeset
   214
    ## gtk-config-store.h: ns3::GtkConfigStore::GtkConfigStore(ns3::GtkConfigStore const & arg0) [copy constructor]
a84f2ab246e6 rescan bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 3951
diff changeset
   215
    cls.add_constructor([param('ns3::GtkConfigStore const &', 'arg0')])
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
   216
    ## 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
   217
    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
   218
    ## 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
   219
    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
   220
                   '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
   221
                   [])
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
   222
    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
   223
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   224
def register_Ns3ConfigStore_methods(root_module, cls):
3972
a84f2ab246e6 rescan bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 3951
diff changeset
   225
    ## config-store.h: ns3::ConfigStore::ConfigStore(ns3::ConfigStore const & arg0) [copy constructor]
a84f2ab246e6 rescan bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 3951
diff changeset
   226
    cls.add_constructor([param('ns3::ConfigStore const &', 'arg0')])
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   227
    ## 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
   228
    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
   229
                   '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
   230
                   [], 
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
   231
                   is_static=True)
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   232
    ## 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
   233
    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
   234
                   '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
   235
                   [], 
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
   236
                   is_const=True, is_virtual=True)
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   237
    ## 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
   238
    cls.add_constructor([])
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   239
    ## 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
   240
    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
   241
                   '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
   242
                   [])
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   243
    return
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   244
3906
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   245
def register_Ns3FlowIdTag_methods(root_module, cls):
3972
a84f2ab246e6 rescan bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 3951
diff changeset
   246
    ## flow-id-tag.h: ns3::FlowIdTag::FlowIdTag(ns3::FlowIdTag const & arg0) [copy constructor]
a84f2ab246e6 rescan bindings
Craig Dowell <craigdo@ee.washington.edu>
parents: 3951
diff changeset
   247
    cls.add_constructor([param('ns3::FlowIdTag const &', 'arg0')])
3906
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   248
    ## 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
   249
    cls.add_method('GetTypeId', 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   250
                   'ns3::TypeId', 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   251
                   [], 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   252
                   is_static=True)
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   253
    ## 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
   254
    cls.add_method('GetInstanceTypeId', 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   255
                   'ns3::TypeId', 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   256
                   [], 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   257
                   is_const=True, is_virtual=True)
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   258
    ## 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
   259
    cls.add_method('GetSerializedSize', 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   260
                   'uint32_t', 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   261
                   [], 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   262
                   is_const=True, is_virtual=True)
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   263
    ## 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
   264
    cls.add_method('Serialize', 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   265
                   'void', 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   266
                   [param('ns3::TagBuffer', 'buf')], 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   267
                   is_const=True, is_virtual=True)
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   268
    ## 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
   269
    cls.add_method('Deserialize', 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   270
                   'void', 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   271
                   [param('ns3::TagBuffer', 'buf')], 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   272
                   is_virtual=True)
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   273
    ## 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
   274
    cls.add_method('Print', 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   275
                   'void', 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   276
                   [param('std::ostream &', 'os')], 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   277
                   is_const=True, is_virtual=True)
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   278
    ## flow-id-tag.h: ns3::FlowIdTag::FlowIdTag() [constructor]
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   279
    cls.add_constructor([])
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   280
    ## 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
   281
    cls.add_constructor([param('uint32_t', 'flowId')])
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   282
    ## 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
   283
    cls.add_method('SetFlowId', 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   284
                   'void', 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   285
                   [param('uint32_t', 'flowId')])
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   286
    ## 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
   287
    cls.add_method('GetFlowId', 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   288
                   'uint32_t', 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   289
                   [], 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   290
                   is_const=True)
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   291
    ## 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
   292
    cls.add_method('AllocateFlowId', 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   293
                   'uint32_t', 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   294
                   [], 
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   295
                   is_static=True)
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   296
    return
01acc159ffb1 merge with HEAD
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3731
diff changeset
   297
4062
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   298
def register_Ns3Gnuplot2dDataset_methods(root_module, cls):
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   299
    ## gnuplot.h: ns3::Gnuplot2dDataset::Gnuplot2dDataset(ns3::Gnuplot2dDataset const & arg0) [copy constructor]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   300
    cls.add_constructor([param('ns3::Gnuplot2dDataset const &', 'arg0')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   301
    ## gnuplot.h: ns3::Gnuplot2dDataset::Gnuplot2dDataset(std::string const & title="Untitled") [constructor]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   302
    cls.add_constructor([param('std::string const &', 'title', default_value='"Untitled"')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   303
    ## gnuplot.h: static void ns3::Gnuplot2dDataset::SetDefaultStyle(ns3::Gnuplot2dDataset::Style style) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   304
    cls.add_method('SetDefaultStyle', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   305
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   306
                   [param('ns3::Gnuplot2dDataset::Style', 'style')], 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   307
                   is_static=True)
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   308
    ## gnuplot.h: void ns3::Gnuplot2dDataset::SetStyle(ns3::Gnuplot2dDataset::Style style) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   309
    cls.add_method('SetStyle', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   310
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   311
                   [param('ns3::Gnuplot2dDataset::Style', 'style')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   312
    ## gnuplot.h: static void ns3::Gnuplot2dDataset::SetDefaultErrorBars(ns3::Gnuplot2dDataset::ErrorBars errorBars) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   313
    cls.add_method('SetDefaultErrorBars', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   314
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   315
                   [param('ns3::Gnuplot2dDataset::ErrorBars', 'errorBars')], 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   316
                   is_static=True)
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   317
    ## gnuplot.h: void ns3::Gnuplot2dDataset::SetErrorBars(ns3::Gnuplot2dDataset::ErrorBars errorBars) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   318
    cls.add_method('SetErrorBars', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   319
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   320
                   [param('ns3::Gnuplot2dDataset::ErrorBars', 'errorBars')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   321
    ## gnuplot.h: void ns3::Gnuplot2dDataset::Add(double x, double y) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   322
    cls.add_method('Add', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   323
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   324
                   [param('double', 'x'), param('double', 'y')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   325
    ## gnuplot.h: void ns3::Gnuplot2dDataset::Add(double x, double y, double errorDelta) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   326
    cls.add_method('Add', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   327
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   328
                   [param('double', 'x'), param('double', 'y'), param('double', 'errorDelta')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   329
    ## gnuplot.h: void ns3::Gnuplot2dDataset::Add(double x, double y, double minY, double maxY) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   330
    cls.add_method('Add', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   331
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   332
                   [param('double', 'x'), param('double', 'y'), param('double', 'minY'), param('double', 'maxY')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   333
    ## gnuplot.h: void ns3::Gnuplot2dDataset::AddEmptyLine() [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   334
    cls.add_method('AddEmptyLine', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   335
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   336
                   [])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   337
    return
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   338
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   339
def register_Ns3Gnuplot2dFunction_methods(root_module, cls):
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   340
    ## gnuplot.h: ns3::Gnuplot2dFunction::Gnuplot2dFunction(ns3::Gnuplot2dFunction const & arg0) [copy constructor]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   341
    cls.add_constructor([param('ns3::Gnuplot2dFunction const &', 'arg0')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   342
    ## gnuplot.h: ns3::Gnuplot2dFunction::Gnuplot2dFunction(std::string const & title="Untitled", std::string const & function="") [constructor]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   343
    cls.add_constructor([param('std::string const &', 'title', default_value='"Untitled"'), param('std::string const &', 'function', default_value='""')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   344
    ## gnuplot.h: void ns3::Gnuplot2dFunction::SetFunction(std::string const & function) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   345
    cls.add_method('SetFunction', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   346
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   347
                   [param('std::string const &', 'function')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   348
    return
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   349
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   350
def register_Ns3Gnuplot3dDataset_methods(root_module, cls):
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   351
    ## gnuplot.h: ns3::Gnuplot3dDataset::Gnuplot3dDataset(ns3::Gnuplot3dDataset const & arg0) [copy constructor]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   352
    cls.add_constructor([param('ns3::Gnuplot3dDataset const &', 'arg0')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   353
    ## gnuplot.h: ns3::Gnuplot3dDataset::Gnuplot3dDataset(std::string const & title="Untitled") [constructor]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   354
    cls.add_constructor([param('std::string const &', 'title', default_value='"Untitled"')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   355
    ## gnuplot.h: static void ns3::Gnuplot3dDataset::SetDefaultStyle(std::string const & style) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   356
    cls.add_method('SetDefaultStyle', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   357
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   358
                   [param('std::string const &', 'style')], 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   359
                   is_static=True)
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   360
    ## gnuplot.h: void ns3::Gnuplot3dDataset::SetStyle(std::string const & style) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   361
    cls.add_method('SetStyle', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   362
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   363
                   [param('std::string const &', 'style')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   364
    ## gnuplot.h: void ns3::Gnuplot3dDataset::Add(double x, double y, double z) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   365
    cls.add_method('Add', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   366
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   367
                   [param('double', 'x'), param('double', 'y'), param('double', 'z')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   368
    ## gnuplot.h: void ns3::Gnuplot3dDataset::AddEmptyLine() [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   369
    cls.add_method('AddEmptyLine', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   370
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   371
                   [])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   372
    return
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   373
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   374
def register_Ns3Gnuplot3dFunction_methods(root_module, cls):
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   375
    ## gnuplot.h: ns3::Gnuplot3dFunction::Gnuplot3dFunction(ns3::Gnuplot3dFunction const & arg0) [copy constructor]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   376
    cls.add_constructor([param('ns3::Gnuplot3dFunction const &', 'arg0')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   377
    ## gnuplot.h: ns3::Gnuplot3dFunction::Gnuplot3dFunction(std::string const & title="Untitled", std::string const & function="") [constructor]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   378
    cls.add_constructor([param('std::string const &', 'title', default_value='"Untitled"'), param('std::string const &', 'function', default_value='""')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   379
    ## gnuplot.h: void ns3::Gnuplot3dFunction::SetFunction(std::string const & function) [member function]
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   380
    cls.add_method('SetFunction', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   381
                   'void', 
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   382
                   [param('std::string const &', 'function')])
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   383
    return
343056c3b5d0 rescan python
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3972
diff changeset
   384
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   385
def register_functions(root_module):
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   386
    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
   387
    register_functions_ns3_Config(module.get_submodule('Config'), root_module)
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   388
    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
   389
    register_functions_ns3_internal(module.get_submodule('internal'), root_module)
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   390
    register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   391
    return
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   392
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
   393
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
   394
    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
   395
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
   396
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
   397
    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
   398
3408
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   399
def register_functions_ns3_internal(module, root_module):
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   400
    return
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   401
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   402
def register_functions_ns3_olsr(module, root_module):
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   403
    return
2cc40b3e4fa5 python bindings
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
   404