Rescan APIs
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Fri, 11 Jul 2008 18:39:19 +0100
changeset 3416 926ccb845111
parent 3415 5dd595cb7eba
child 3417 06df0787254b
Rescan APIs
bindings/python/ns3_module_common.py
bindings/python/ns3_module_helper.py
bindings/python/ns3_module_internet_stack.py
bindings/python/ns3_module_node.py
--- a/bindings/python/ns3_module_common.py	Fri Jul 11 18:15:52 2008 +0100
+++ b/bindings/python/ns3_module_common.py	Fri Jul 11 18:39:19 2008 +0100
@@ -369,6 +369,8 @@
     cls.add_method('CalculateIpChecksum', 'uint16_t', [param('uint16_t', 'size')])
     ## buffer.h: uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size, uint32_t initialChecksum) [member function]
     cls.add_method('CalculateIpChecksum', 'uint16_t', [param('uint16_t', 'size'), param('uint32_t', 'initialChecksum')])
+    ## buffer.h: uint32_t ns3::Buffer::Iterator::GetSize() const [member function]
+    cls.add_method('GetSize', 'uint32_t', [], is_const=True)
     return
 
 def register_Ns3Chunk_methods(root_module, cls):
--- a/bindings/python/ns3_module_helper.py	Fri Jul 11 18:15:52 2008 +0100
+++ b/bindings/python/ns3_module_helper.py	Fri Jul 11 18:39:19 2008 +0100
@@ -168,6 +168,10 @@
     cls.add_method('SetDeviceAttribute', 'void', [param('std::string', 'name'), param('ns3::AttributeValue&', 'value', is_const=True)])
     ## point-to-point-helper.h: void ns3::PointToPointHelper::SetChannelAttribute(std::string name, ns3::AttributeValue const & value) [member function]
     cls.add_method('SetChannelAttribute', 'void', [param('std::string', 'name'), param('ns3::AttributeValue&', 'value', is_const=True)])
+    ## point-to-point-helper.h: void ns3::PointToPointHelper::SetDeviceParameter(std::string name, ns3::AttributeValue const & value) [member function]
+    cls.add_method('SetDeviceParameter', 'void', [param('std::string', 'name'), param('ns3::AttributeValue&', 'value', is_const=True)])
+    ## point-to-point-helper.h: void ns3::PointToPointHelper::SetChannelParameter(std::string name, ns3::AttributeValue const & value) [member function]
+    cls.add_method('SetChannelParameter', 'void', [param('std::string', 'name'), param('ns3::AttributeValue&', 'value', is_const=True)])
     ## point-to-point-helper.h: static void ns3::PointToPointHelper::EnablePcap(std::string filename, uint32_t nodeid, uint32_t deviceid) [member function]
     cls.add_method('EnablePcap', 'void', [param('std::string', 'filename'), param('uint32_t', 'nodeid'), param('uint32_t', 'deviceid')], is_static=True)
     ## point-to-point-helper.h: static void ns3::PointToPointHelper::EnablePcap(std::string filename, ns3::NetDeviceContainer d) [member function]
@@ -215,6 +219,10 @@
     cls.add_method('SetDeviceAttribute', 'void', [param('std::string', 'n1'), param('ns3::AttributeValue&', 'v1', is_const=True)])
     ## csma-helper.h: void ns3::CsmaHelper::SetChannelAttribute(std::string n1, ns3::AttributeValue const & v1) [member function]
     cls.add_method('SetChannelAttribute', 'void', [param('std::string', 'n1'), param('ns3::AttributeValue&', 'v1', is_const=True)])
+    ## csma-helper.h: void ns3::CsmaHelper::SetDeviceParameter(std::string n1, ns3::AttributeValue const & v1) [member function]
+    cls.add_method('SetDeviceParameter', 'void', [param('std::string', 'n1'), param('ns3::AttributeValue&', 'v1', is_const=True)])
+    ## csma-helper.h: void ns3::CsmaHelper::SetChannelParameter(std::string n1, ns3::AttributeValue const & v1) [member function]
+    cls.add_method('SetChannelParameter', 'void', [param('std::string', 'n1'), param('ns3::AttributeValue&', 'v1', is_const=True)])
     ## csma-helper.h: static void ns3::CsmaHelper::EnablePcap(std::string filename, uint32_t nodeid, uint32_t deviceid) [member function]
     cls.add_method('EnablePcap', 'void', [param('std::string', 'filename'), param('uint32_t', 'nodeid'), param('uint32_t', 'deviceid')], is_static=True)
     ## csma-helper.h: static void ns3::CsmaHelper::EnablePcap(std::string filename, ns3::NetDeviceContainer d) [member function]
--- a/bindings/python/ns3_module_internet_stack.py	Fri Jul 11 18:15:52 2008 +0100
+++ b/bindings/python/ns3_module_internet_stack.py	Fri Jul 11 18:39:19 2008 +0100
@@ -116,8 +116,6 @@
     cls.add_method('GetSourcePort', 'uint16_t', [], is_const=True)
     ## udp-header.h: uint16_t ns3::UdpHeader::GetDestinationPort() const [member function]
     cls.add_method('GetDestinationPort', 'uint16_t', [], is_const=True)
-    ## udp-header.h: void ns3::UdpHeader::SetPayloadSize(uint16_t size) [member function]
-    cls.add_method('SetPayloadSize', 'void', [param('uint16_t', 'size')])
     ## udp-header.h: void ns3::UdpHeader::InitializeChecksum(ns3::Ipv4Address source, ns3::Ipv4Address destination, uint8_t protocol) [member function]
     cls.add_method('InitializeChecksum', 'void', [param('ns3::Ipv4Address', 'source'), param('ns3::Ipv4Address', 'destination'), param('uint8_t', 'protocol')])
     ## udp-header.h: static ns3::TypeId ns3::UdpHeader::GetTypeId() [member function]
@@ -155,8 +153,6 @@
     cls.add_method('SetFlags', 'void', [param('uint8_t', 'flags')])
     ## tcp-header.h: void ns3::TcpHeader::SetWindowSize(uint16_t windowSize) [member function]
     cls.add_method('SetWindowSize', 'void', [param('uint16_t', 'windowSize')])
-    ## tcp-header.h: void ns3::TcpHeader::SetChecksum(uint16_t checksum) [member function]
-    cls.add_method('SetChecksum', 'void', [param('uint16_t', 'checksum')])
     ## tcp-header.h: void ns3::TcpHeader::SetUrgentPointer(uint16_t urgentPointer) [member function]
     cls.add_method('SetUrgentPointer', 'void', [param('uint16_t', 'urgentPointer')])
     ## tcp-header.h: uint16_t ns3::TcpHeader::GetSourcePort() const [member function]
@@ -173,8 +169,6 @@
     cls.add_method('GetFlags', 'uint8_t', [], is_const=True)
     ## tcp-header.h: uint16_t ns3::TcpHeader::GetWindowSize() const [member function]
     cls.add_method('GetWindowSize', 'uint16_t', [], is_const=True)
-    ## tcp-header.h: uint16_t ns3::TcpHeader::GetChecksum() const [member function]
-    cls.add_method('GetChecksum', 'uint16_t', [], is_const=True)
     ## tcp-header.h: uint16_t ns3::TcpHeader::GetUrgentPointer() const [member function]
     cls.add_method('GetUrgentPointer', 'uint16_t', [], is_const=True)
     ## tcp-header.h: void ns3::TcpHeader::InitializeChecksum(ns3::Ipv4Address source, ns3::Ipv4Address destination, uint8_t protocol) [member function]
@@ -191,8 +185,6 @@
     cls.add_method('Serialize', 'void', [param('ns3::Buffer::Iterator', 'start')], is_const=True, is_virtual=True)
     ## tcp-header.h: uint32_t ns3::TcpHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
     cls.add_method('Deserialize', 'uint32_t', [param('ns3::Buffer::Iterator', 'start')], is_virtual=True)
-    ## tcp-header.h: void ns3::TcpHeader::SetPayloadSize(uint16_t size) [member function]
-    cls.add_method('SetPayloadSize', 'void', [param('uint16_t', 'size')])
     ## tcp-header.h: bool ns3::TcpHeader::IsChecksumOk() const [member function]
     cls.add_method('IsChecksumOk', 'bool', [], is_const=True)
     return
--- a/bindings/python/ns3_module_node.py	Fri Jul 11 18:15:52 2008 +0100
+++ b/bindings/python/ns3_module_node.py	Fri Jul 11 18:39:19 2008 +0100
@@ -96,11 +96,11 @@
     ## llc-snap-header.h: ns3::LlcSnapHeader [class]
     module.add_class('LlcSnapHeader', allow_subclassing=True, parent=root_module['ns3::Header'])
     ## udp-socket-factory.h: ns3::UdpSocketFactory [class]
-    module.add_class('UdpSocketFactory', allow_subclassing=True, parent=root_module['ns3::SocketFactory'])
+    module.add_class('UdpSocketFactory', parent=root_module['ns3::SocketFactory'])
     ## simple-net-device.h: ns3::SimpleNetDevice [class]
     module.add_class('SimpleNetDevice', allow_subclassing=True, parent=root_module['ns3::NetDevice'])
     ## tcp-socket-factory.h: ns3::TcpSocketFactory [class]
-    module.add_class('TcpSocketFactory', allow_subclassing=True, parent=root_module['ns3::SocketFactory'])
+    module.add_class('TcpSocketFactory', parent=root_module['ns3::SocketFactory'])
     ## packet-socket-factory.h: ns3::PacketSocketFactory [class]
     module.add_class('PacketSocketFactory', allow_subclassing=True, parent=root_module['ns3::SocketFactory'])
     
@@ -1207,8 +1207,6 @@
 def register_Ns3UdpSocketFactory_methods(root_module, cls):
     ## udp-socket-factory.h: static ns3::TypeId ns3::UdpSocketFactory::GetTypeId() [member function]
     cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
-    ## udp-socket-factory.h: ns3::Ptr<ns3::Socket> ns3::UdpSocketFactory::CreateSocket() [member function]
-    cls.add_method('CreateSocket', 'ns3::Ptr< ns3::Socket >', [], is_pure_virtual=True, is_virtual=True)
     cls.add_constructor([])
     return
 
@@ -1272,8 +1270,6 @@
 def register_Ns3TcpSocketFactory_methods(root_module, cls):
     ## tcp-socket-factory.h: static ns3::TypeId ns3::TcpSocketFactory::GetTypeId() [member function]
     cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
-    ## tcp-socket-factory.h: ns3::Ptr<ns3::Socket> ns3::TcpSocketFactory::CreateSocket() [member function]
-    cls.add_method('CreateSocket', 'ns3::Ptr< ns3::Socket >', [], is_pure_virtual=True, is_virtual=True)
     cls.add_constructor([])
     return