bindings/python/apidefs/gcc-LP64/ns3_module_nix_vector_routing.py
author Craig Dowell <craigdo@ee.washington.edu>
Thu, 28 Jan 2010 01:08:27 -0800
changeset 6029 096af1414c37
parent 6028 96fb92f73f3d
child 6055 18ed08fb4c4a
permissions -rw-r--r--
tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5249
85cde7d987ed Python: allow multiple api definitions directories, one per data model.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     1
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
85cde7d987ed Python: allow multiple api definitions directories, one per data model.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     2
85cde7d987ed Python: allow multiple api definitions directories, one per data model.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     3
def register_types(module):
85cde7d987ed Python: allow multiple api definitions directories, one per data model.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     4
    root_module = module.get_root()
85cde7d987ed Python: allow multiple api definitions directories, one per data model.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
diff changeset
     5
    
6029
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
     6
    ## ipv4-nix-vector-routing.h: ns3::Ipv4NixVectorRouting [class]
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
     7
    module.add_class('Ipv4NixVectorRouting', parent=root_module['ns3::Ipv4RoutingProtocol'])
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
     8
    typehandlers.add_type_alias('std::map< ns3::Ipv4Address, ns3::Ptr< ns3::NixVector >, std::less< ns3::Ipv4Address >, std::allocator< std::pair< ns3::Ipv4Address const, ns3::Ptr< ns3::NixVector > > > >', 'ns3::NixMap_t')
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
     9
    typehandlers.add_type_alias('std::map< ns3::Ipv4Address, ns3::Ptr< ns3::NixVector >, std::less< ns3::Ipv4Address >, std::allocator< std::pair< ns3::Ipv4Address const, ns3::Ptr< ns3::NixVector > > > >*', 'ns3::NixMap_t*')
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    10
    typehandlers.add_type_alias('std::map< ns3::Ipv4Address, ns3::Ptr< ns3::NixVector >, std::less< ns3::Ipv4Address >, std::allocator< std::pair< ns3::Ipv4Address const, ns3::Ptr< ns3::NixVector > > > >&', 'ns3::NixMap_t&')
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    11
    typehandlers.add_type_alias('std::map< ns3::Ipv4Address, ns3::Ptr< ns3::Ipv4Route >, std::less< ns3::Ipv4Address >, std::allocator< std::pair< ns3::Ipv4Address const, ns3::Ptr< ns3::Ipv4Route > > > >', 'ns3::Ipv4RouteMap_t')
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    12
    typehandlers.add_type_alias('std::map< ns3::Ipv4Address, ns3::Ptr< ns3::Ipv4Route >, std::less< ns3::Ipv4Address >, std::allocator< std::pair< ns3::Ipv4Address const, ns3::Ptr< ns3::Ipv4Route > > > >*', 'ns3::Ipv4RouteMap_t*')
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    13
    typehandlers.add_type_alias('std::map< ns3::Ipv4Address, ns3::Ptr< ns3::Ipv4Route >, std::less< ns3::Ipv4Address >, std::allocator< std::pair< ns3::Ipv4Address const, ns3::Ptr< ns3::Ipv4Route > > > >&', 'ns3::Ipv4RouteMap_t&')
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    14
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    15
    ## Register a nested module for the namespace Config
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    16
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    17
    nested_module = module.add_cpp_namespace('Config')
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    18
    register_types_ns3_Config(nested_module)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    19
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    20
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    21
    ## Register a nested module for the namespace TimeStepPrecision
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    22
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    23
    nested_module = module.add_cpp_namespace('TimeStepPrecision')
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    24
    register_types_ns3_TimeStepPrecision(nested_module)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    25
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    26
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    27
    ## Register a nested module for the namespace addressUtils
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    28
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    29
    nested_module = module.add_cpp_namespace('addressUtils')
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    30
    register_types_ns3_addressUtils(nested_module)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    31
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    32
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    33
    ## Register a nested module for the namespace aodv
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    34
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    35
    nested_module = module.add_cpp_namespace('aodv')
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    36
    register_types_ns3_aodv(nested_module)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    37
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    38
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    39
    ## Register a nested module for the namespace dot11s
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    40
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    41
    nested_module = module.add_cpp_namespace('dot11s')
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    42
    register_types_ns3_dot11s(nested_module)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    43
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    44
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    45
    ## Register a nested module for the namespace flame
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    46
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    47
    nested_module = module.add_cpp_namespace('flame')
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    48
    register_types_ns3_flame(nested_module)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    49
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    50
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    51
    ## Register a nested module for the namespace internal
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    52
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    53
    nested_module = module.add_cpp_namespace('internal')
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    54
    register_types_ns3_internal(nested_module)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    55
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    56
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    57
    ## Register a nested module for the namespace olsr
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    58
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    59
    nested_module = module.add_cpp_namespace('olsr')
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    60
    register_types_ns3_olsr(nested_module)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    61
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    62
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    63
def register_types_ns3_Config(module):
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    64
    root_module = module.get_root()
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    65
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    66
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    67
def register_types_ns3_TimeStepPrecision(module):
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    68
    root_module = module.get_root()
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    69
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    70
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    71
def register_types_ns3_addressUtils(module):
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    72
    root_module = module.get_root()
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    73
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    74
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    75
def register_types_ns3_aodv(module):
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    76
    root_module = module.get_root()
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    77
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    78
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    79
def register_types_ns3_dot11s(module):
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    80
    root_module = module.get_root()
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    81
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    82
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    83
def register_types_ns3_flame(module):
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    84
    root_module = module.get_root()
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    85
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    86
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    87
def register_types_ns3_internal(module):
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    88
    root_module = module.get_root()
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    89
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    90
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    91
def register_types_ns3_olsr(module):
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    92
    root_module = module.get_root()
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    93
    
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    94
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    95
def register_methods(root_module):
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    96
    register_Ns3Ipv4NixVectorRouting_methods(root_module, root_module['ns3::Ipv4NixVectorRouting'])
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    97
    return
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    98
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
    99
def register_Ns3Ipv4NixVectorRouting_methods(root_module, cls):
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   100
    ## ipv4-nix-vector-routing.h: ns3::Ipv4NixVectorRouting::Ipv4NixVectorRouting(ns3::Ipv4NixVectorRouting const & arg0) [copy constructor]
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   101
    cls.add_constructor([param('ns3::Ipv4NixVectorRouting const &', 'arg0')])
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   102
    ## ipv4-nix-vector-routing.h: ns3::Ipv4NixVectorRouting::Ipv4NixVectorRouting() [constructor]
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   103
    cls.add_constructor([])
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   104
    ## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::FlushGlobalNixRoutingCache() [member function]
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   105
    cls.add_method('FlushGlobalNixRoutingCache', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   106
                   'void', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   107
                   [])
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   108
    ## ipv4-nix-vector-routing.h: static ns3::TypeId ns3::Ipv4NixVectorRouting::GetTypeId() [member function]
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   109
    cls.add_method('GetTypeId', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   110
                   'ns3::TypeId', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   111
                   [], 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   112
                   is_static=True)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   113
    ## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::SetNode(ns3::Ptr<ns3::Node> arg0) [member function]
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   114
    cls.add_method('SetNode', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   115
                   'void', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   116
                   [param('ns3::Ptr< ns3::Node >', 'arg0')])
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   117
    ## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::DoDispose() [member function]
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   118
    cls.add_method('DoDispose', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   119
                   'void', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   120
                   [], 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   121
                   visibility='private', is_virtual=True)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   122
    ## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::NotifyAddAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   123
    cls.add_method('NotifyAddAddress', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   124
                   'void', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   125
                   [param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')], 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   126
                   visibility='private', is_virtual=True)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   127
    ## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::NotifyInterfaceDown(uint32_t interface) [member function]
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   128
    cls.add_method('NotifyInterfaceDown', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   129
                   'void', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   130
                   [param('uint32_t', 'interface')], 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   131
                   visibility='private', is_virtual=True)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   132
    ## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::NotifyInterfaceUp(uint32_t interface) [member function]
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   133
    cls.add_method('NotifyInterfaceUp', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   134
                   'void', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   135
                   [param('uint32_t', 'interface')], 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   136
                   visibility='private', is_virtual=True)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   137
    ## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::NotifyRemoveAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   138
    cls.add_method('NotifyRemoveAddress', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   139
                   'void', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   140
                   [param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')], 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   141
                   visibility='private', is_virtual=True)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   142
    ## ipv4-nix-vector-routing.h: bool ns3::Ipv4NixVectorRouting::RouteInput(ns3::Ptr<ns3::Packet const> p, ns3::Ipv4Header const & header, ns3::Ptr<const ns3::NetDevice> idev, ns3::Callback<void, ns3::Ptr<ns3::Ipv4Route>, ns3::Ptr<ns3::Packet const>, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb, ns3::Callback<void,ns3::Ptr<ns3::Ipv4MulticastRoute>,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback<void,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback<void, ns3::Ptr<ns3::Packet const>, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function]
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   143
    cls.add_method('RouteInput', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   144
                   'bool', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   145
                   [param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')], 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   146
                   visibility='private', is_virtual=True)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   147
    ## ipv4-nix-vector-routing.h: ns3::Ptr<ns3::Ipv4Route> ns3::Ipv4NixVectorRouting::RouteOutput(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Header const & header, ns3::Ptr<ns3::NetDevice> oif, ns3::Socket::SocketErrno & sockerr) [member function]
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   148
    cls.add_method('RouteOutput', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   149
                   'ns3::Ptr< ns3::Ipv4Route >', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   150
                   [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice >', 'oif'), param('ns3::Socket::SocketErrno &', 'sockerr')], 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   151
                   visibility='private', is_virtual=True)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   152
    ## ipv4-nix-vector-routing.h: void ns3::Ipv4NixVectorRouting::SetIpv4(ns3::Ptr<ns3::Ipv4> ipv4) [member function]
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   153
    cls.add_method('SetIpv4', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   154
                   'void', 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   155
                   [param('ns3::Ptr< ns3::Ipv4 >', 'ipv4')], 
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   156
                   visibility='private', is_virtual=True)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   157
    return
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   158
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   159
def register_functions(root_module):
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   160
    module = root_module
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   161
    register_functions_ns3_Config(module.get_submodule('Config'), root_module)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   162
    register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   163
    register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   164
    register_functions_ns3_aodv(module.get_submodule('aodv'), root_module)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   165
    register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   166
    register_functions_ns3_flame(module.get_submodule('flame'), root_module)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   167
    register_functions_ns3_internal(module.get_submodule('internal'), root_module)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   168
    register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   169
    return
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   170
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   171
def register_functions_ns3_Config(module, root_module):
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   172
    return
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   173
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   174
def register_functions_ns3_TimeStepPrecision(module, root_module):
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   175
    return
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   176
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   177
def register_functions_ns3_addressUtils(module, root_module):
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   178
    return
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   179
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   180
def register_functions_ns3_aodv(module, root_module):
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   181
    return
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   182
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   183
def register_functions_ns3_dot11s(module, root_module):
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   184
    return
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   185
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   186
def register_functions_ns3_flame(module, root_module):
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   187
    return
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   188
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   189
def register_functions_ns3_internal(module, root_module):
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   190
    return
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   191
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   192
def register_functions_ns3_olsr(module, root_module):
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   193
    return
096af1414c37 tell pybindgen not to disable inheritance on classes that end with Helper, and rescan
Craig Dowell <craigdo@ee.washington.edu>
parents: 6028
diff changeset
   194