bindings/python/ns3_module_node.py
changeset 4358 e63305078fe5
parent 4241 c35796bc0b4b
child 4361 5e4790eea56f
equal deleted inserted replaced
4279:7cb2938928d4 4358:e63305078fe5
   131     module.add_class('PacketSocketFactory', parent=root_module['ns3::SocketFactory'])
   131     module.add_class('PacketSocketFactory', parent=root_module['ns3::SocketFactory'])
   132     ## simple-channel.h: ns3::SimpleChannel [class]
   132     ## simple-channel.h: ns3::SimpleChannel [class]
   133     module.add_class('SimpleChannel', parent=root_module['ns3::Channel'])
   133     module.add_class('SimpleChannel', parent=root_module['ns3::Channel'])
   134     ## simple-net-device.h: ns3::SimpleNetDevice [class]
   134     ## simple-net-device.h: ns3::SimpleNetDevice [class]
   135     module.add_class('SimpleNetDevice', parent=root_module['ns3::NetDevice'])
   135     module.add_class('SimpleNetDevice', parent=root_module['ns3::NetDevice'])
       
   136     module.add_container('ns3::olsr::MprSet', 'ns3::Ipv4Address', container_type='set')
       
   137     module.add_container('std::vector< ns3::Ipv4Address >', 'ns3::Ipv4Address', container_type='vector')
   136     
   138     
   137     ## Register a nested module for the namespace Config
   139     ## Register a nested module for the namespace Config
   138     
   140     
   139     nested_module = module.add_cpp_namespace('Config')
   141     nested_module = module.add_cpp_namespace('Config')
   140     register_types_ns3_Config(nested_module)
   142     register_types_ns3_Config(nested_module)
   171     
   173     
   172 
   174 
   173 def register_types_ns3_olsr(module):
   175 def register_types_ns3_olsr(module):
   174     root_module = module.get_root()
   176     root_module = module.get_root()
   175     
   177     
   176     module.add_container('std::vector< ns3::Ipv4Address >', 'ns3::Ipv4Address', container_type='vector')
       
   177 
   178 
   178 def register_methods(root_module):
   179 def register_methods(root_module):
   179     register_Ns3Address_methods(root_module, root_module['ns3::Address'])
   180     register_Ns3Address_methods(root_module, root_module['ns3::Address'])
   180     register_Ns3Inet6SocketAddress_methods(root_module, root_module['ns3::Inet6SocketAddress'])
   181     register_Ns3Inet6SocketAddress_methods(root_module, root_module['ns3::Inet6SocketAddress'])
   181     register_Ns3InetSocketAddress_methods(root_module, root_module['ns3::InetSocketAddress'])
   182     register_Ns3InetSocketAddress_methods(root_module, root_module['ns3::InetSocketAddress'])