bindings/python/ns3_module_node.py
changeset 3842 545ddf9398ed
parent 3820 c04ecfdce1ef
child 3855 7fdcbeea6c4f
     1.1 --- a/bindings/python/ns3_module_node.py	Wed Oct 29 11:18:39 2008 -0700
     1.2 +++ b/bindings/python/ns3_module_node.py	Wed Nov 05 14:49:21 2008 -0800
     1.3 @@ -100,7 +100,7 @@
     1.4      ## net-device.h: ns3::NetDevice [class]
     1.5      module.add_class('NetDevice', parent=root_module['ns3::Object'])
     1.6      ## net-device.h: ns3::NetDevice::PacketType [enumeration]
     1.7 -    module.add_enum('PacketType', ['PACKET_HOST', 'PACKET_BROADCAST', 'PACKET_MULTICAST', 'PACKET_OTHERHOST'], outer_class=root_module['ns3::NetDevice'])
     1.8 +    module.add_enum('PacketType', ['PACKET_HOST', 'NS3_PACKET_HOST', 'PACKET_BROADCAST', 'NS3_PACKET_BROADCAST', 'PACKET_MULTICAST', 'NS3_PACKET_MULTICAST', 'PACKET_OTHERHOST', 'NS3_PACKET_OTHERHOST'], outer_class=root_module['ns3::NetDevice'])
     1.9      ## node.h: ns3::Node [class]
    1.10      module.add_class('Node', parent=root_module['ns3::Object'])
    1.11      ## packet-socket-factory.h: ns3::PacketSocketFactory [class]
    1.12 @@ -2339,14 +2339,9 @@
    1.13                     'bool', 
    1.14                     [], 
    1.15                     is_pure_virtual=True, is_const=True, is_virtual=True)
    1.16 -    ## net-device.h: ns3::Address ns3::NetDevice::GetMulticast() const [member function]
    1.17 +    ## net-device.h: ns3::Address ns3::NetDevice::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function]
    1.18      cls.add_method('GetMulticast', 
    1.19                     'ns3::Address', 
    1.20 -                   [], 
    1.21 -                   is_pure_virtual=True, is_const=True, is_virtual=True)
    1.22 -    ## net-device.h: ns3::Address ns3::NetDevice::MakeMulticastAddress(ns3::Ipv4Address multicastGroup) const [member function]
    1.23 -    cls.add_method('MakeMulticastAddress', 
    1.24 -                   'ns3::Address', 
    1.25                     [param('ns3::Ipv4Address', 'multicastGroup')], 
    1.26                     is_pure_virtual=True, is_const=True, is_virtual=True)
    1.27      ## net-device.h: bool ns3::NetDevice::IsPointToPoint() const [member function]
    1.28 @@ -2600,14 +2595,9 @@
    1.29                     'bool', 
    1.30                     [], 
    1.31                     is_const=True, is_virtual=True)
    1.32 -    ## simple-net-device.h: ns3::Address ns3::SimpleNetDevice::GetMulticast() const [member function]
    1.33 +    ## simple-net-device.h: ns3::Address ns3::SimpleNetDevice::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function]
    1.34      cls.add_method('GetMulticast', 
    1.35                     'ns3::Address', 
    1.36 -                   [], 
    1.37 -                   is_const=True, is_virtual=True)
    1.38 -    ## simple-net-device.h: ns3::Address ns3::SimpleNetDevice::MakeMulticastAddress(ns3::Ipv4Address multicastGroup) const [member function]
    1.39 -    cls.add_method('MakeMulticastAddress', 
    1.40 -                   'ns3::Address', 
    1.41                     [param('ns3::Ipv4Address', 'multicastGroup')], 
    1.42                     is_const=True, is_virtual=True)
    1.43      ## simple-net-device.h: bool ns3::SimpleNetDevice::IsPointToPoint() const [member function]
    1.44 @@ -2664,18 +2654,10 @@
    1.45  
    1.46  def register_functions(root_module):
    1.47      module = root_module
    1.48 -    ## address-utils.h: extern void ns3::ReadFrom(ns3::Buffer::Iterator & i, ns3::Mac48Address & ad) [free function]
    1.49 -    module.add_function('ReadFrom', 
    1.50 -                        'void', 
    1.51 -                        [param('ns3::Buffer::Iterator &', 'i'), param('ns3::Mac48Address &', 'ad')])
    1.52 -    ## address-utils.h: extern void ns3::ReadFrom(ns3::Buffer::Iterator & i, ns3::Address & ad, uint32_t len) [free function]
    1.53 -    module.add_function('ReadFrom', 
    1.54 -                        'void', 
    1.55 -                        [param('ns3::Buffer::Iterator &', 'i'), param('ns3::Address &', 'ad'), param('uint32_t', 'len')])
    1.56 -    ## address-utils.h: extern void ns3::ReadFrom(ns3::Buffer::Iterator & i, ns3::Ipv4Address & ad) [free function]
    1.57 -    module.add_function('ReadFrom', 
    1.58 -                        'void', 
    1.59 -                        [param('ns3::Buffer::Iterator &', 'i'), param('ns3::Ipv4Address &', 'ad')])
    1.60 +    ## mac48-address.h: extern ns3::Ptr<ns3::AttributeChecker const> ns3::MakeMac48AddressChecker() [free function]
    1.61 +    module.add_function('MakeMac48AddressChecker', 
    1.62 +                        'ns3::Ptr< ns3::AttributeChecker const >', 
    1.63 +                        [])
    1.64      ## ipv4-address.h: extern ns3::Ptr<ns3::AttributeChecker const> ns3::MakeIpv4AddressChecker() [free function]
    1.65      module.add_function('MakeIpv4AddressChecker', 
    1.66                          'ns3::Ptr< ns3::AttributeChecker const >', 
    1.67 @@ -2700,10 +2682,18 @@
    1.68      module.add_function('MakeIpv4MaskChecker', 
    1.69                          'ns3::Ptr< ns3::AttributeChecker const >', 
    1.70                          [])
    1.71 -    ## mac48-address.h: extern ns3::Ptr<ns3::AttributeChecker const> ns3::MakeMac48AddressChecker() [free function]
    1.72 -    module.add_function('MakeMac48AddressChecker', 
    1.73 -                        'ns3::Ptr< ns3::AttributeChecker const >', 
    1.74 -                        [])
    1.75 +    ## address-utils.h: extern void ns3::ReadFrom(ns3::Buffer::Iterator & i, ns3::Mac48Address & ad) [free function]
    1.76 +    module.add_function('ReadFrom', 
    1.77 +                        'void', 
    1.78 +                        [param('ns3::Buffer::Iterator &', 'i'), param('ns3::Mac48Address &', 'ad')])
    1.79 +    ## address-utils.h: extern void ns3::ReadFrom(ns3::Buffer::Iterator & i, ns3::Address & ad, uint32_t len) [free function]
    1.80 +    module.add_function('ReadFrom', 
    1.81 +                        'void', 
    1.82 +                        [param('ns3::Buffer::Iterator &', 'i'), param('ns3::Address &', 'ad'), param('uint32_t', 'len')])
    1.83 +    ## address-utils.h: extern void ns3::ReadFrom(ns3::Buffer::Iterator & i, ns3::Ipv4Address & ad) [free function]
    1.84 +    module.add_function('ReadFrom', 
    1.85 +                        'void', 
    1.86 +                        [param('ns3::Buffer::Iterator &', 'i'), param('ns3::Ipv4Address &', 'ad')])
    1.87      register_functions_ns3_internal(module.get_submodule('internal'), root_module)
    1.88      register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
    1.89      register_functions_ns3_Config(module.get_submodule('Config'), root_module)