bindings/python/ns3_module_contrib.py
changeset 3544 3685ab98e4b2
parent 3468 0bb5275704fc
child 3567 728eb3f583b3
equal deleted inserted replaced
3543:04315a10b9c1 3544:3685ab98e4b2
    82                    [param('ns3::GnuplotDataset&', 'dataset', is_const=True)])
    82                    [param('ns3::GnuplotDataset&', 'dataset', is_const=True)])
    83     ## gnuplot.h: void ns3::Gnuplot::GenerateOutput(std::ostream & os) [member function]
    83     ## gnuplot.h: void ns3::Gnuplot::GenerateOutput(std::ostream & os) [member function]
    84     cls.add_method('GenerateOutput', 
    84     cls.add_method('GenerateOutput', 
    85                    'void', 
    85                    'void', 
    86                    [param('std::ostream&', 'os')])
    86                    [param('std::ostream&', 'os')])
       
    87     cls.add_copy_constructor()
    87     return
    88     return
    88 
    89 
    89 def register_Ns3EventGarbageCollector_methods(root_module, cls):
    90 def register_Ns3EventGarbageCollector_methods(root_module, cls):
    90     ## event-garbage-collector.h: ns3::EventGarbageCollector::EventGarbageCollector() [constructor]
    91     ## event-garbage-collector.h: ns3::EventGarbageCollector::EventGarbageCollector() [constructor]
    91     cls.add_constructor([])
    92     cls.add_constructor([])
    92     ## event-garbage-collector.h: void ns3::EventGarbageCollector::Track(ns3::EventId event) [member function]
    93     ## event-garbage-collector.h: void ns3::EventGarbageCollector::Track(ns3::EventId event) [member function]
    93     cls.add_method('Track', 
    94     cls.add_method('Track', 
    94                    'void', 
    95                    'void', 
    95                    [param('ns3::EventId', 'event')])
    96                    [param('ns3::EventId', 'event')])
       
    97     cls.add_copy_constructor()
    96     return
    98     return
    97 
    99 
    98 def register_Ns3GnuplotDataset_methods(root_module, cls):
   100 def register_Ns3GnuplotDataset_methods(root_module, cls):
    99     ## gnuplot.h: ns3::GnuplotDataset::GnuplotDataset() [constructor]
   101     ## gnuplot.h: ns3::GnuplotDataset::GnuplotDataset() [constructor]
   100     cls.add_constructor([])
   102     cls.add_constructor([])
   114                    [param('double', 'x'), param('double', 'y')])
   116                    [param('double', 'x'), param('double', 'y')])
   115     ## gnuplot.h: void ns3::GnuplotDataset::Add(double x, double y, double errorDelta) [member function]
   117     ## gnuplot.h: void ns3::GnuplotDataset::Add(double x, double y, double errorDelta) [member function]
   116     cls.add_method('Add', 
   118     cls.add_method('Add', 
   117                    'void', 
   119                    'void', 
   118                    [param('double', 'x'), param('double', 'y'), param('double', 'errorDelta')])
   120                    [param('double', 'x'), param('double', 'y'), param('double', 'errorDelta')])
       
   121     cls.add_copy_constructor()
   119     return
   122     return
   120 
   123 
   121 def register_Ns3GtkConfigStore_methods(root_module, cls):
   124 def register_Ns3GtkConfigStore_methods(root_module, cls):
   122     ## gtk-config-store.h: ns3::GtkConfigStore::GtkConfigStore() [constructor]
   125     ## gtk-config-store.h: ns3::GtkConfigStore::GtkConfigStore() [constructor]
   123     cls.add_constructor([])
   126     cls.add_constructor([])
   124     ## gtk-config-store.h: void ns3::GtkConfigStore::Configure() [member function]
   127     ## gtk-config-store.h: void ns3::GtkConfigStore::Configure() [member function]
   125     cls.add_method('Configure', 
   128     cls.add_method('Configure', 
   126                    'void', 
   129                    'void', 
   127                    [])
   130                    [])
       
   131     cls.add_copy_constructor()
   128     return
   132     return
   129 
   133 
   130 def register_Ns3ConfigStore_methods(root_module, cls):
   134 def register_Ns3ConfigStore_methods(root_module, cls):
   131     ## config-store.h: static ns3::TypeId ns3::ConfigStore::GetTypeId() [member function]
   135     ## config-store.h: static ns3::TypeId ns3::ConfigStore::GetTypeId() [member function]
   132     cls.add_method('GetTypeId', 
   136     cls.add_method('GetTypeId', 
   142     cls.add_constructor([])
   146     cls.add_constructor([])
   143     ## config-store.h: void ns3::ConfigStore::Configure() [member function]
   147     ## config-store.h: void ns3::ConfigStore::Configure() [member function]
   144     cls.add_method('Configure', 
   148     cls.add_method('Configure', 
   145                    'void', 
   149                    'void', 
   146                    [])
   150                    [])
       
   151     cls.add_copy_constructor()
   147     return
   152     return
   148 
   153 
   149 def register_Ns3DelayJitterEstimation_methods(root_module, cls):
   154 def register_Ns3DelayJitterEstimation_methods(root_module, cls):
   150     ## delay-jitter-estimation.h: ns3::DelayJitterEstimation::DelayJitterEstimation() [constructor]
   155     ## delay-jitter-estimation.h: ns3::DelayJitterEstimation::DelayJitterEstimation() [constructor]
   151     cls.add_constructor([])
   156     cls.add_constructor([])
   166     ## delay-jitter-estimation.h: ns3::Time ns3::DelayJitterEstimation::GetLastJitter() const [member function]
   171     ## delay-jitter-estimation.h: ns3::Time ns3::DelayJitterEstimation::GetLastJitter() const [member function]
   167     cls.add_method('GetLastJitter', 
   172     cls.add_method('GetLastJitter', 
   168                    'ns3::Time', 
   173                    'ns3::Time', 
   169                    [], 
   174                    [], 
   170                    is_const=True)
   175                    is_const=True)
       
   176     cls.add_copy_constructor()
   171     return
   177     return
   172 
   178 
   173 def register_functions(root_module):
   179 def register_functions(root_module):
   174     module = root_module
   180     module = root_module
   175     register_functions_ns3_internal(module.get_submodule('internal'), root_module)
   181     register_functions_ns3_internal(module.get_submodule('internal'), root_module)