bindings/python/ns3_module_point_to_point.py
changeset 3855 7fdcbeea6c4f
parent 3842 545ddf9398ed
child 3861 dacfd1f07538
equal deleted inserted replaced
3853:f04e7f61b1ed 3855:7fdcbeea6c4f
     6     ## point-to-point-channel.h: ns3::PointToPointChannel [class]
     6     ## point-to-point-channel.h: ns3::PointToPointChannel [class]
     7     module.add_class('PointToPointChannel', parent=root_module['ns3::Channel'])
     7     module.add_class('PointToPointChannel', parent=root_module['ns3::Channel'])
     8     ## point-to-point-net-device.h: ns3::PointToPointNetDevice [class]
     8     ## point-to-point-net-device.h: ns3::PointToPointNetDevice [class]
     9     module.add_class('PointToPointNetDevice', parent=root_module['ns3::NetDevice'])
     9     module.add_class('PointToPointNetDevice', parent=root_module['ns3::NetDevice'])
    10     
    10     
       
    11     ## Register a nested module for the namespace Config
       
    12     
       
    13     nested_module = module.add_cpp_namespace('Config')
       
    14     register_types_ns3_Config(nested_module)
       
    15     
       
    16     
       
    17     ## Register a nested module for the namespace TimeStepPrecision
       
    18     
       
    19     nested_module = module.add_cpp_namespace('TimeStepPrecision')
       
    20     register_types_ns3_TimeStepPrecision(nested_module)
       
    21     
       
    22     
    11     ## Register a nested module for the namespace internal
    23     ## Register a nested module for the namespace internal
    12     
    24     
    13     nested_module = module.add_cpp_namespace('internal')
    25     nested_module = module.add_cpp_namespace('internal')
    14     register_types_ns3_internal(nested_module)
    26     register_types_ns3_internal(nested_module)
    15     
    27     
    16     
    28     
    17     ## Register a nested module for the namespace TimeStepPrecision
       
    18     
       
    19     nested_module = module.add_cpp_namespace('TimeStepPrecision')
       
    20     register_types_ns3_TimeStepPrecision(nested_module)
       
    21     
       
    22     
       
    23     ## Register a nested module for the namespace Config
       
    24     
       
    25     nested_module = module.add_cpp_namespace('Config')
       
    26     register_types_ns3_Config(nested_module)
       
    27     
       
    28     
       
    29     ## Register a nested module for the namespace olsr
    29     ## Register a nested module for the namespace olsr
    30     
    30     
    31     nested_module = module.add_cpp_namespace('olsr')
    31     nested_module = module.add_cpp_namespace('olsr')
    32     register_types_ns3_olsr(nested_module)
    32     register_types_ns3_olsr(nested_module)
    33     
    33     
    34 
    34 
       
    35 def register_types_ns3_Config(module):
       
    36     root_module = module.get_root()
       
    37     
       
    38 
       
    39 def register_types_ns3_TimeStepPrecision(module):
       
    40     root_module = module.get_root()
       
    41     
       
    42 
    35 def register_types_ns3_internal(module):
    43 def register_types_ns3_internal(module):
    36     root_module = module.get_root()
       
    37     
       
    38 
       
    39 def register_types_ns3_TimeStepPrecision(module):
       
    40     root_module = module.get_root()
       
    41     
       
    42 
       
    43 def register_types_ns3_Config(module):
       
    44     root_module = module.get_root()
    44     root_module = module.get_root()
    45     
    45     
    46 
    46 
    47 def register_types_ns3_olsr(module):
    47 def register_types_ns3_olsr(module):
    48     root_module = module.get_root()
    48     root_module = module.get_root()
   238     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty> cb) [member function]
   238     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty> cb) [member function]
   239     cls.add_method('SetReceiveCallback', 
   239     cls.add_method('SetReceiveCallback', 
   240                    'void', 
   240                    'void', 
   241                    [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::empty, ns3::empty >', 'cb')], 
   241                    [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::empty, ns3::empty >', 'cb')], 
   242                    is_virtual=True)
   242                    is_virtual=True)
       
   243     ## point-to-point-net-device.h: ns3::Address ns3::PointToPointNetDevice::GetMulticast(ns3::Ipv6Address addr) const [member function]
       
   244     cls.add_method('GetMulticast', 
       
   245                    'ns3::Address', 
       
   246                    [param('ns3::Ipv6Address', 'addr')], 
       
   247                    is_const=True, is_virtual=True)
   243     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetPromiscReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType> cb) [member function]
   248     ## point-to-point-net-device.h: void ns3::PointToPointNetDevice::SetPromiscReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType> cb) [member function]
   244     cls.add_method('SetPromiscReceiveCallback', 
   249     cls.add_method('SetPromiscReceiveCallback', 
   245                    'void', 
   250                    'void', 
   246                    [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType >', 'cb')], 
   251                    [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType >', 'cb')], 
   247                    is_virtual=True)
   252                    is_virtual=True)
   257                    visibility='private', is_virtual=True)
   262                    visibility='private', is_virtual=True)
   258     return
   263     return
   259 
   264 
   260 def register_functions(root_module):
   265 def register_functions(root_module):
   261     module = root_module
   266     module = root_module
       
   267     register_functions_ns3_Config(module.get_submodule('Config'), root_module)
       
   268     register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
   262     register_functions_ns3_internal(module.get_submodule('internal'), root_module)
   269     register_functions_ns3_internal(module.get_submodule('internal'), root_module)
   263     register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
       
   264     register_functions_ns3_Config(module.get_submodule('Config'), root_module)
       
   265     register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
   270     register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
   266     return
   271     return
   267 
   272 
       
   273 def register_functions_ns3_Config(module, root_module):
       
   274     return
       
   275 
       
   276 def register_functions_ns3_TimeStepPrecision(module, root_module):
       
   277     return
       
   278 
   268 def register_functions_ns3_internal(module, root_module):
   279 def register_functions_ns3_internal(module, root_module):
   269     return
   280     return
   270 
   281 
   271 def register_functions_ns3_TimeStepPrecision(module, root_module):
       
   272     return
       
   273 
       
   274 def register_functions_ns3_Config(module, root_module):
       
   275     return
       
   276 
       
   277 def register_functions_ns3_olsr(module, root_module):
   282 def register_functions_ns3_olsr(module, root_module):
   278     return
   283     return
   279 
   284