bindings/python/ns3_module_list_routing.py
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Sat, 04 Jul 2009 08:15:48 +0200
changeset 4654 2eaebe77d66b
parent 4608 13f3a1412f28
permissions -rw-r--r--
Added tag ns-3.5 for changeset c975274c9707
tomh@4574
     1
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
tomh@4574
     2
tomh@4574
     3
def register_types(module):
tomh@4574
     4
    root_module = module.get_root()
tomh@4574
     5
    
tomh@4574
     6
    ## ipv4-list-routing.h: ns3::Ipv4ListRouting [class]
tomh@4574
     7
    module.add_class('Ipv4ListRouting', parent=root_module['ns3::Ipv4RoutingProtocol'])
tomh@4574
     8
    
tomh@4574
     9
    ## Register a nested module for the namespace Config
tomh@4574
    10
    
tomh@4574
    11
    nested_module = module.add_cpp_namespace('Config')
tomh@4574
    12
    register_types_ns3_Config(nested_module)
tomh@4574
    13
    
tomh@4574
    14
    
tomh@4574
    15
    ## Register a nested module for the namespace TimeStepPrecision
tomh@4574
    16
    
tomh@4574
    17
    nested_module = module.add_cpp_namespace('TimeStepPrecision')
tomh@4574
    18
    register_types_ns3_TimeStepPrecision(nested_module)
tomh@4574
    19
    
tomh@4574
    20
    
tomh@4574
    21
    ## Register a nested module for the namespace addressUtils
tomh@4574
    22
    
tomh@4574
    23
    nested_module = module.add_cpp_namespace('addressUtils')
tomh@4574
    24
    register_types_ns3_addressUtils(nested_module)
tomh@4574
    25
    
tomh@4574
    26
    
tomh@4574
    27
    ## Register a nested module for the namespace internal
tomh@4574
    28
    
tomh@4574
    29
    nested_module = module.add_cpp_namespace('internal')
tomh@4574
    30
    register_types_ns3_internal(nested_module)
tomh@4574
    31
    
tomh@4574
    32
    
tomh@4574
    33
    ## Register a nested module for the namespace olsr
tomh@4574
    34
    
tomh@4574
    35
    nested_module = module.add_cpp_namespace('olsr')
tomh@4574
    36
    register_types_ns3_olsr(nested_module)
tomh@4574
    37
    
tomh@4574
    38
tomh@4574
    39
def register_types_ns3_Config(module):
tomh@4574
    40
    root_module = module.get_root()
tomh@4574
    41
    
tomh@4574
    42
tomh@4574
    43
def register_types_ns3_TimeStepPrecision(module):
tomh@4574
    44
    root_module = module.get_root()
tomh@4574
    45
    
tomh@4574
    46
tomh@4574
    47
def register_types_ns3_addressUtils(module):
tomh@4574
    48
    root_module = module.get_root()
tomh@4574
    49
    
tomh@4574
    50
tomh@4574
    51
def register_types_ns3_internal(module):
tomh@4574
    52
    root_module = module.get_root()
tomh@4574
    53
    
tomh@4574
    54
tomh@4574
    55
def register_types_ns3_olsr(module):
tomh@4574
    56
    root_module = module.get_root()
tomh@4574
    57
    
tomh@4574
    58
tomh@4574
    59
def register_methods(root_module):
tomh@4574
    60
    register_Ns3Ipv4ListRouting_methods(root_module, root_module['ns3::Ipv4ListRouting'])
tomh@4574
    61
    return
tomh@4574
    62
tomh@4574
    63
def register_Ns3Ipv4ListRouting_methods(root_module, cls):
tomh@4574
    64
    ## ipv4-list-routing.h: ns3::Ipv4ListRouting::Ipv4ListRouting(ns3::Ipv4ListRouting const & arg0) [copy constructor]
tomh@4574
    65
    cls.add_constructor([param('ns3::Ipv4ListRouting const &', 'arg0')])
tomh@4574
    66
    ## ipv4-list-routing.h: static ns3::TypeId ns3::Ipv4ListRouting::GetTypeId() [member function]
tomh@4574
    67
    cls.add_method('GetTypeId', 
tomh@4574
    68
                   'ns3::TypeId', 
tomh@4574
    69
                   [], 
tomh@4574
    70
                   is_static=True)
tomh@4574
    71
    ## ipv4-list-routing.h: ns3::Ipv4ListRouting::Ipv4ListRouting() [constructor]
tomh@4574
    72
    cls.add_constructor([])
tomh@4574
    73
    ## ipv4-list-routing.h: void ns3::Ipv4ListRouting::AddRoutingProtocol(ns3::Ptr<ns3::Ipv4RoutingProtocol> routingProtocol, int16_t priority) [member function]
tomh@4574
    74
    cls.add_method('AddRoutingProtocol', 
tomh@4574
    75
                   'void', 
tomh@4574
    76
                   [param('ns3::Ptr< ns3::Ipv4RoutingProtocol >', 'routingProtocol'), param('int16_t', 'priority')], 
tomh@4574
    77
                   is_virtual=True)
tomh@4574
    78
    ## ipv4-list-routing.h: uint32_t ns3::Ipv4ListRouting::GetNRoutingProtocols() const [member function]
tomh@4574
    79
    cls.add_method('GetNRoutingProtocols', 
tomh@4574
    80
                   'uint32_t', 
tomh@4574
    81
                   [], 
tomh@4574
    82
                   is_const=True, is_virtual=True)
tomh@4574
    83
    ## ipv4-list-routing.h: ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::Ipv4ListRouting::GetRoutingProtocol(uint32_t index, int16_t & priority) const [member function]
tomh@4574
    84
    cls.add_method('GetRoutingProtocol', 
tomh@4574
    85
                   'ns3::Ptr< ns3::Ipv4RoutingProtocol >', 
tomh@4574
    86
                   [param('uint32_t', 'index'), param('int16_t &', 'priority')], 
tomh@4574
    87
                   is_const=True, is_virtual=True)
mathieu@4604
    88
    ## ipv4-list-routing.h: ns3::Ptr<ns3::Ipv4Route> ns3::Ipv4ListRouting::RouteOutput(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Header const & header, uint32_t oif, ns3::Socket::SocketErrno & sockerr) [member function]
tomh@4574
    89
    cls.add_method('RouteOutput', 
tomh@4574
    90
                   'ns3::Ptr< ns3::Ipv4Route >', 
mathieu@4604
    91
                   [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('uint32_t', 'oif'), param('ns3::Socket::SocketErrno &', 'sockerr')], 
tomh@4574
    92
                   is_virtual=True)
mathieu@4608
    93
    ## ipv4-list-routing.h: bool ns3::Ipv4ListRouting::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<const ns3::Packet>,const ns3::Ipv4Header&,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<const ns3::Packet>,const ns3::Ipv4Header&,ns3::Socket::SocketErrno,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> ecb) [member function]
tomh@4574
    94
    cls.add_method('RouteInput', 
tomh@4574
    95
                   'bool', 
mathieu@4608
    96
                   [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')], 
tomh@4574
    97
                   is_virtual=True)
tomh@4574
    98
    ## ipv4-list-routing.h: void ns3::Ipv4ListRouting::NotifyInterfaceUp(uint32_t interface) [member function]
tomh@4574
    99
    cls.add_method('NotifyInterfaceUp', 
tomh@4574
   100
                   'void', 
tomh@4574
   101
                   [param('uint32_t', 'interface')], 
tomh@4574
   102
                   is_virtual=True)
tomh@4574
   103
    ## ipv4-list-routing.h: void ns3::Ipv4ListRouting::NotifyInterfaceDown(uint32_t interface) [member function]
tomh@4574
   104
    cls.add_method('NotifyInterfaceDown', 
tomh@4574
   105
                   'void', 
tomh@4574
   106
                   [param('uint32_t', 'interface')], 
tomh@4574
   107
                   is_virtual=True)
tomh@4574
   108
    ## ipv4-list-routing.h: void ns3::Ipv4ListRouting::NotifyAddAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
tomh@4574
   109
    cls.add_method('NotifyAddAddress', 
tomh@4574
   110
                   'void', 
tomh@4574
   111
                   [param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')], 
tomh@4574
   112
                   is_virtual=True)
tomh@4574
   113
    ## ipv4-list-routing.h: void ns3::Ipv4ListRouting::NotifyRemoveAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
tomh@4574
   114
    cls.add_method('NotifyRemoveAddress', 
tomh@4574
   115
                   'void', 
tomh@4574
   116
                   [param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')], 
tomh@4574
   117
                   is_virtual=True)
tomh@4574
   118
    ## ipv4-list-routing.h: void ns3::Ipv4ListRouting::SetIpv4(ns3::Ptr<ns3::Ipv4> ipv4) [member function]
tomh@4574
   119
    cls.add_method('SetIpv4', 
tomh@4574
   120
                   'void', 
tomh@4574
   121
                   [param('ns3::Ptr< ns3::Ipv4 >', 'ipv4')], 
tomh@4574
   122
                   is_virtual=True)
tomh@4574
   123
    ## ipv4-list-routing.h: void ns3::Ipv4ListRouting::DoDispose() [member function]
tomh@4574
   124
    cls.add_method('DoDispose', 
tomh@4574
   125
                   'void', 
tomh@4574
   126
                   [], 
tomh@4574
   127
                   visibility='protected', is_virtual=True)
tomh@4574
   128
    return
tomh@4574
   129
tomh@4574
   130
def register_functions(root_module):
tomh@4574
   131
    module = root_module
tomh@4574
   132
    register_functions_ns3_Config(module.get_submodule('Config'), root_module)
tomh@4574
   133
    register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
tomh@4574
   134
    register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module)
tomh@4574
   135
    register_functions_ns3_internal(module.get_submodule('internal'), root_module)
tomh@4574
   136
    register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
tomh@4574
   137
    return
tomh@4574
   138
tomh@4574
   139
def register_functions_ns3_Config(module, root_module):
tomh@4574
   140
    return
tomh@4574
   141
tomh@4574
   142
def register_functions_ns3_TimeStepPrecision(module, root_module):
tomh@4574
   143
    return
tomh@4574
   144
tomh@4574
   145
def register_functions_ns3_addressUtils(module, root_module):
tomh@4574
   146
    return
tomh@4574
   147
tomh@4574
   148
def register_functions_ns3_internal(module, root_module):
tomh@4574
   149
    return
tomh@4574
   150
tomh@4574
   151
def register_functions_ns3_olsr(module, root_module):
tomh@4574
   152
    return
tomh@4574
   153