bindings/python/ns3_module_csma.py
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Sat, 04 Jul 2009 08:15:48 +0200
changeset 4654 2eaebe77d66b
parent 4474 19e2b7ff3482
permissions -rw-r--r--
Added tag ns-3.5 for changeset c975274c9707
     1 from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
     2 
     3 def register_types(module):
     4     root_module = module.get_root()
     5     
     6     ## csma-channel.h: ns3::WireState [enumeration]
     7     module.add_enum('WireState', ['IDLE', 'TRANSMITTING', 'PROPAGATING'])
     8     ## backoff.h: ns3::Backoff [class]
     9     module.add_class('Backoff')
    10     ## csma-channel.h: ns3::CsmaDeviceRec [class]
    11     module.add_class('CsmaDeviceRec')
    12     ## csma-channel.h: ns3::CsmaChannel [class]
    13     module.add_class('CsmaChannel', parent=root_module['ns3::Channel'])
    14     ## csma-net-device.h: ns3::CsmaNetDevice [class]
    15     module.add_class('CsmaNetDevice', parent=root_module['ns3::NetDevice'])
    16     ## csma-net-device.h: ns3::CsmaNetDevice::EncapsulationMode [enumeration]
    17     module.add_enum('EncapsulationMode', ['ILLEGAL', 'DIX', 'LLC'], outer_class=root_module['ns3::CsmaNetDevice'])
    18     
    19     ## Register a nested module for the namespace Config
    20     
    21     nested_module = module.add_cpp_namespace('Config')
    22     register_types_ns3_Config(nested_module)
    23     
    24     
    25     ## Register a nested module for the namespace TimeStepPrecision
    26     
    27     nested_module = module.add_cpp_namespace('TimeStepPrecision')
    28     register_types_ns3_TimeStepPrecision(nested_module)
    29     
    30     
    31     ## Register a nested module for the namespace addressUtils
    32     
    33     nested_module = module.add_cpp_namespace('addressUtils')
    34     register_types_ns3_addressUtils(nested_module)
    35     
    36     
    37     ## Register a nested module for the namespace internal
    38     
    39     nested_module = module.add_cpp_namespace('internal')
    40     register_types_ns3_internal(nested_module)
    41     
    42     
    43     ## Register a nested module for the namespace olsr
    44     
    45     nested_module = module.add_cpp_namespace('olsr')
    46     register_types_ns3_olsr(nested_module)
    47     
    48 
    49 def register_types_ns3_Config(module):
    50     root_module = module.get_root()
    51     
    52 
    53 def register_types_ns3_TimeStepPrecision(module):
    54     root_module = module.get_root()
    55     
    56 
    57 def register_types_ns3_addressUtils(module):
    58     root_module = module.get_root()
    59     
    60 
    61 def register_types_ns3_internal(module):
    62     root_module = module.get_root()
    63     
    64 
    65 def register_types_ns3_olsr(module):
    66     root_module = module.get_root()
    67     
    68 
    69 def register_methods(root_module):
    70     register_Ns3Backoff_methods(root_module, root_module['ns3::Backoff'])
    71     register_Ns3CsmaDeviceRec_methods(root_module, root_module['ns3::CsmaDeviceRec'])
    72     register_Ns3CsmaChannel_methods(root_module, root_module['ns3::CsmaChannel'])
    73     register_Ns3CsmaNetDevice_methods(root_module, root_module['ns3::CsmaNetDevice'])
    74     return
    75 
    76 def register_Ns3Backoff_methods(root_module, cls):
    77     ## backoff.h: ns3::Backoff::m_minSlots [variable]
    78     cls.add_instance_attribute('m_minSlots', 'uint32_t', is_const=False)
    79     ## backoff.h: ns3::Backoff::m_maxSlots [variable]
    80     cls.add_instance_attribute('m_maxSlots', 'uint32_t', is_const=False)
    81     ## backoff.h: ns3::Backoff::m_ceiling [variable]
    82     cls.add_instance_attribute('m_ceiling', 'uint32_t', is_const=False)
    83     ## backoff.h: ns3::Backoff::m_maxRetries [variable]
    84     cls.add_instance_attribute('m_maxRetries', 'uint32_t', is_const=False)
    85     ## backoff.h: ns3::Backoff::m_slotTime [variable]
    86     cls.add_instance_attribute('m_slotTime', 'ns3::Time', is_const=False)
    87     ## backoff.h: ns3::Backoff::Backoff(ns3::Backoff const & arg0) [copy constructor]
    88     cls.add_constructor([param('ns3::Backoff const &', 'arg0')])
    89     ## backoff.h: ns3::Backoff::Backoff() [constructor]
    90     cls.add_constructor([])
    91     ## backoff.h: ns3::Backoff::Backoff(ns3::Time slotTime, uint32_t minSlots, uint32_t maxSlots, uint32_t ceiling, uint32_t maxRetries) [constructor]
    92     cls.add_constructor([param('ns3::Time', 'slotTime'), param('uint32_t', 'minSlots'), param('uint32_t', 'maxSlots'), param('uint32_t', 'ceiling'), param('uint32_t', 'maxRetries')])
    93     ## backoff.h: ns3::Time ns3::Backoff::GetBackoffTime() [member function]
    94     cls.add_method('GetBackoffTime', 
    95                    'ns3::Time', 
    96                    [])
    97     ## backoff.h: void ns3::Backoff::ResetBackoffTime() [member function]
    98     cls.add_method('ResetBackoffTime', 
    99                    'void', 
   100                    [])
   101     ## backoff.h: bool ns3::Backoff::MaxRetriesReached() [member function]
   102     cls.add_method('MaxRetriesReached', 
   103                    'bool', 
   104                    [])
   105     ## backoff.h: void ns3::Backoff::IncrNumRetries() [member function]
   106     cls.add_method('IncrNumRetries', 
   107                    'void', 
   108                    [])
   109     return
   110 
   111 def register_Ns3CsmaDeviceRec_methods(root_module, cls):
   112     ## csma-channel.h: ns3::CsmaDeviceRec::devicePtr [variable]
   113     cls.add_instance_attribute('devicePtr', 'ns3::Ptr< ns3::CsmaNetDevice >', is_const=False)
   114     ## csma-channel.h: ns3::CsmaDeviceRec::active [variable]
   115     cls.add_instance_attribute('active', 'bool', is_const=False)
   116     ## csma-channel.h: ns3::CsmaDeviceRec::CsmaDeviceRec(ns3::CsmaDeviceRec const & arg0) [copy constructor]
   117     cls.add_constructor([param('ns3::CsmaDeviceRec const &', 'arg0')])
   118     ## csma-channel.h: ns3::CsmaDeviceRec::CsmaDeviceRec() [constructor]
   119     cls.add_constructor([])
   120     ## csma-channel.h: ns3::CsmaDeviceRec::CsmaDeviceRec(ns3::Ptr<ns3::CsmaNetDevice> device) [constructor]
   121     cls.add_constructor([param('ns3::Ptr< ns3::CsmaNetDevice >', 'device')])
   122     ## csma-channel.h: bool ns3::CsmaDeviceRec::IsActive() [member function]
   123     cls.add_method('IsActive', 
   124                    'bool', 
   125                    [])
   126     return
   127 
   128 def register_Ns3CsmaChannel_methods(root_module, cls):
   129     ## csma-channel.h: ns3::CsmaChannel::CsmaChannel(ns3::CsmaChannel const & arg0) [copy constructor]
   130     cls.add_constructor([param('ns3::CsmaChannel const &', 'arg0')])
   131     ## csma-channel.h: static ns3::TypeId ns3::CsmaChannel::GetTypeId() [member function]
   132     cls.add_method('GetTypeId', 
   133                    'ns3::TypeId', 
   134                    [], 
   135                    is_static=True)
   136     ## csma-channel.h: ns3::CsmaChannel::CsmaChannel() [constructor]
   137     cls.add_constructor([])
   138     ## csma-channel.h: int32_t ns3::CsmaChannel::Attach(ns3::Ptr<ns3::CsmaNetDevice> device) [member function]
   139     cls.add_method('Attach', 
   140                    'int32_t', 
   141                    [param('ns3::Ptr< ns3::CsmaNetDevice >', 'device')])
   142     ## csma-channel.h: bool ns3::CsmaChannel::Detach(ns3::Ptr<ns3::CsmaNetDevice> device) [member function]
   143     cls.add_method('Detach', 
   144                    'bool', 
   145                    [param('ns3::Ptr< ns3::CsmaNetDevice >', 'device')])
   146     ## csma-channel.h: bool ns3::CsmaChannel::Detach(uint32_t deviceId) [member function]
   147     cls.add_method('Detach', 
   148                    'bool', 
   149                    [param('uint32_t', 'deviceId')])
   150     ## csma-channel.h: bool ns3::CsmaChannel::Reattach(uint32_t deviceId) [member function]
   151     cls.add_method('Reattach', 
   152                    'bool', 
   153                    [param('uint32_t', 'deviceId')])
   154     ## csma-channel.h: bool ns3::CsmaChannel::Reattach(ns3::Ptr<ns3::CsmaNetDevice> device) [member function]
   155     cls.add_method('Reattach', 
   156                    'bool', 
   157                    [param('ns3::Ptr< ns3::CsmaNetDevice >', 'device')])
   158     ## csma-channel.h: bool ns3::CsmaChannel::TransmitStart(ns3::Ptr<ns3::Packet> p, uint32_t srcId) [member function]
   159     cls.add_method('TransmitStart', 
   160                    'bool', 
   161                    [param('ns3::Ptr< ns3::Packet >', 'p'), param('uint32_t', 'srcId')])
   162     ## csma-channel.h: bool ns3::CsmaChannel::TransmitEnd() [member function]
   163     cls.add_method('TransmitEnd', 
   164                    'bool', 
   165                    [])
   166     ## csma-channel.h: void ns3::CsmaChannel::PropagationCompleteEvent() [member function]
   167     cls.add_method('PropagationCompleteEvent', 
   168                    'void', 
   169                    [])
   170     ## csma-channel.h: int32_t ns3::CsmaChannel::GetDeviceNum(ns3::Ptr<ns3::CsmaNetDevice> device) [member function]
   171     cls.add_method('GetDeviceNum', 
   172                    'int32_t', 
   173                    [param('ns3::Ptr< ns3::CsmaNetDevice >', 'device')])
   174     ## csma-channel.h: ns3::WireState ns3::CsmaChannel::GetState() [member function]
   175     cls.add_method('GetState', 
   176                    'ns3::WireState', 
   177                    [])
   178     ## csma-channel.h: bool ns3::CsmaChannel::IsBusy() [member function]
   179     cls.add_method('IsBusy', 
   180                    'bool', 
   181                    [])
   182     ## csma-channel.h: bool ns3::CsmaChannel::IsActive(uint32_t deviceId) [member function]
   183     cls.add_method('IsActive', 
   184                    'bool', 
   185                    [param('uint32_t', 'deviceId')])
   186     ## csma-channel.h: uint32_t ns3::CsmaChannel::GetNumActDevices() [member function]
   187     cls.add_method('GetNumActDevices', 
   188                    'uint32_t', 
   189                    [])
   190     ## csma-channel.h: uint32_t ns3::CsmaChannel::GetNDevices() const [member function]
   191     cls.add_method('GetNDevices', 
   192                    'uint32_t', 
   193                    [], 
   194                    is_const=True, is_virtual=True)
   195     ## csma-channel.h: ns3::Ptr<ns3::NetDevice> ns3::CsmaChannel::GetDevice(uint32_t i) const [member function]
   196     cls.add_method('GetDevice', 
   197                    'ns3::Ptr< ns3::NetDevice >', 
   198                    [param('uint32_t', 'i')], 
   199                    is_const=True, is_virtual=True)
   200     ## csma-channel.h: ns3::Ptr<ns3::CsmaNetDevice> ns3::CsmaChannel::GetCsmaDevice(uint32_t i) const [member function]
   201     cls.add_method('GetCsmaDevice', 
   202                    'ns3::Ptr< ns3::CsmaNetDevice >', 
   203                    [param('uint32_t', 'i')], 
   204                    is_const=True)
   205     ## csma-channel.h: ns3::DataRate ns3::CsmaChannel::GetDataRate() [member function]
   206     cls.add_method('GetDataRate', 
   207                    'ns3::DataRate', 
   208                    [], 
   209                    is_virtual=True)
   210     ## csma-channel.h: ns3::Time ns3::CsmaChannel::GetDelay() [member function]
   211     cls.add_method('GetDelay', 
   212                    'ns3::Time', 
   213                    [], 
   214                    is_virtual=True)
   215     return
   216 
   217 def register_Ns3CsmaNetDevice_methods(root_module, cls):
   218     ## csma-net-device.h: static ns3::TypeId ns3::CsmaNetDevice::GetTypeId() [member function]
   219     cls.add_method('GetTypeId', 
   220                    'ns3::TypeId', 
   221                    [], 
   222                    is_static=True)
   223     ## csma-net-device.h: ns3::CsmaNetDevice::CsmaNetDevice() [constructor]
   224     cls.add_constructor([])
   225     ## csma-net-device.h: void ns3::CsmaNetDevice::SetInterframeGap(ns3::Time t) [member function]
   226     cls.add_method('SetInterframeGap', 
   227                    'void', 
   228                    [param('ns3::Time', 't')])
   229     ## csma-net-device.h: void ns3::CsmaNetDevice::SetBackoffParams(ns3::Time slotTime, uint32_t minSlots, uint32_t maxSlots, uint32_t maxRetries, uint32_t ceiling) [member function]
   230     cls.add_method('SetBackoffParams', 
   231                    'void', 
   232                    [param('ns3::Time', 'slotTime'), param('uint32_t', 'minSlots'), param('uint32_t', 'maxSlots'), param('uint32_t', 'maxRetries'), param('uint32_t', 'ceiling')])
   233     ## csma-net-device.h: bool ns3::CsmaNetDevice::Attach(ns3::Ptr<ns3::CsmaChannel> ch) [member function]
   234     cls.add_method('Attach', 
   235                    'bool', 
   236                    [param('ns3::Ptr< ns3::CsmaChannel >', 'ch')])
   237     ## csma-net-device.h: void ns3::CsmaNetDevice::SetQueue(ns3::Ptr<ns3::Queue> queue) [member function]
   238     cls.add_method('SetQueue', 
   239                    'void', 
   240                    [param('ns3::Ptr< ns3::Queue >', 'queue')])
   241     ## csma-net-device.h: void ns3::CsmaNetDevice::SetReceiveErrorModel(ns3::Ptr<ns3::ErrorModel> em) [member function]
   242     cls.add_method('SetReceiveErrorModel', 
   243                    'void', 
   244                    [param('ns3::Ptr< ns3::ErrorModel >', 'em')])
   245     ## csma-net-device.h: void ns3::CsmaNetDevice::Receive(ns3::Ptr<ns3::Packet> p, ns3::Ptr<ns3::CsmaNetDevice> sender) [member function]
   246     cls.add_method('Receive', 
   247                    'void', 
   248                    [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ptr< ns3::CsmaNetDevice >', 'sender')])
   249     ## csma-net-device.h: bool ns3::CsmaNetDevice::IsSendEnabled() [member function]
   250     cls.add_method('IsSendEnabled', 
   251                    'bool', 
   252                    [])
   253     ## csma-net-device.h: void ns3::CsmaNetDevice::SetSendEnable(bool enable) [member function]
   254     cls.add_method('SetSendEnable', 
   255                    'void', 
   256                    [param('bool', 'enable')])
   257     ## csma-net-device.h: bool ns3::CsmaNetDevice::IsReceiveEnabled() [member function]
   258     cls.add_method('IsReceiveEnabled', 
   259                    'bool', 
   260                    [])
   261     ## csma-net-device.h: void ns3::CsmaNetDevice::SetReceiveEnable(bool enable) [member function]
   262     cls.add_method('SetReceiveEnable', 
   263                    'void', 
   264                    [param('bool', 'enable')])
   265     ## csma-net-device.h: void ns3::CsmaNetDevice::SetFrameSize(uint16_t frameSize) [member function]
   266     cls.add_method('SetFrameSize', 
   267                    'void', 
   268                    [param('uint16_t', 'frameSize')])
   269     ## csma-net-device.h: uint16_t ns3::CsmaNetDevice::GetFrameSize() const [member function]
   270     cls.add_method('GetFrameSize', 
   271                    'uint16_t', 
   272                    [], 
   273                    is_const=True)
   274     ## csma-net-device.h: void ns3::CsmaNetDevice::SetEncapsulationMode(ns3::CsmaNetDevice::EncapsulationMode mode) [member function]
   275     cls.add_method('SetEncapsulationMode', 
   276                    'void', 
   277                    [param('ns3::CsmaNetDevice::EncapsulationMode', 'mode')])
   278     ## csma-net-device.h: ns3::CsmaNetDevice::EncapsulationMode ns3::CsmaNetDevice::GetEncapsulationMode() [member function]
   279     cls.add_method('GetEncapsulationMode', 
   280                    'ns3::CsmaNetDevice::EncapsulationMode', 
   281                    [])
   282     ## csma-net-device.h: void ns3::CsmaNetDevice::SetIfIndex(uint32_t const index) [member function]
   283     cls.add_method('SetIfIndex', 
   284                    'void', 
   285                    [param('uint32_t const', 'index')], 
   286                    is_virtual=True)
   287     ## csma-net-device.h: uint32_t ns3::CsmaNetDevice::GetIfIndex() const [member function]
   288     cls.add_method('GetIfIndex', 
   289                    'uint32_t', 
   290                    [], 
   291                    is_const=True, is_virtual=True)
   292     ## csma-net-device.h: ns3::Ptr<ns3::Channel> ns3::CsmaNetDevice::GetChannel() const [member function]
   293     cls.add_method('GetChannel', 
   294                    'ns3::Ptr< ns3::Channel >', 
   295                    [], 
   296                    is_const=True, is_virtual=True)
   297     ## csma-net-device.h: bool ns3::CsmaNetDevice::SetMtu(uint16_t const mtu) [member function]
   298     cls.add_method('SetMtu', 
   299                    'bool', 
   300                    [param('uint16_t const', 'mtu')], 
   301                    is_virtual=True)
   302     ## csma-net-device.h: uint16_t ns3::CsmaNetDevice::GetMtu() const [member function]
   303     cls.add_method('GetMtu', 
   304                    'uint16_t', 
   305                    [], 
   306                    is_const=True, is_virtual=True)
   307     ## csma-net-device.h: void ns3::CsmaNetDevice::SetAddress(ns3::Address address) [member function]
   308     cls.add_method('SetAddress', 
   309                    'void', 
   310                    [param('ns3::Address', 'address')], 
   311                    is_virtual=True)
   312     ## csma-net-device.h: ns3::Address ns3::CsmaNetDevice::GetAddress() const [member function]
   313     cls.add_method('GetAddress', 
   314                    'ns3::Address', 
   315                    [], 
   316                    is_const=True, is_virtual=True)
   317     ## csma-net-device.h: bool ns3::CsmaNetDevice::IsLinkUp() const [member function]
   318     cls.add_method('IsLinkUp', 
   319                    'bool', 
   320                    [], 
   321                    is_const=True, is_virtual=True)
   322     ## csma-net-device.h: void ns3::CsmaNetDevice::SetLinkChangeCallback(ns3::Callback<void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> callback) [member function]
   323     cls.add_method('SetLinkChangeCallback', 
   324                    'void', 
   325                    [param('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'callback')], 
   326                    is_virtual=True)
   327     ## csma-net-device.h: bool ns3::CsmaNetDevice::IsBroadcast() const [member function]
   328     cls.add_method('IsBroadcast', 
   329                    'bool', 
   330                    [], 
   331                    is_const=True, is_virtual=True)
   332     ## csma-net-device.h: ns3::Address ns3::CsmaNetDevice::GetBroadcast() const [member function]
   333     cls.add_method('GetBroadcast', 
   334                    'ns3::Address', 
   335                    [], 
   336                    is_const=True, is_virtual=True)
   337     ## csma-net-device.h: bool ns3::CsmaNetDevice::IsMulticast() const [member function]
   338     cls.add_method('IsMulticast', 
   339                    'bool', 
   340                    [], 
   341                    is_const=True, is_virtual=True)
   342     ## csma-net-device.h: ns3::Address ns3::CsmaNetDevice::GetMulticast(ns3::Ipv4Address multicastGroup) const [member function]
   343     cls.add_method('GetMulticast', 
   344                    'ns3::Address', 
   345                    [param('ns3::Ipv4Address', 'multicastGroup')], 
   346                    is_const=True, is_virtual=True)
   347     ## csma-net-device.h: bool ns3::CsmaNetDevice::IsPointToPoint() const [member function]
   348     cls.add_method('IsPointToPoint', 
   349                    'bool', 
   350                    [], 
   351                    is_const=True, is_virtual=True)
   352     ## csma-net-device.h: bool ns3::CsmaNetDevice::IsBridge() const [member function]
   353     cls.add_method('IsBridge', 
   354                    'bool', 
   355                    [], 
   356                    is_const=True, is_virtual=True)
   357     ## csma-net-device.h: bool ns3::CsmaNetDevice::Send(ns3::Ptr<ns3::Packet> packet, ns3::Address const & dest, uint16_t protocolNumber) [member function]
   358     cls.add_method('Send', 
   359                    'bool', 
   360                    [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], 
   361                    is_virtual=True)
   362     ## csma-net-device.h: bool ns3::CsmaNetDevice::SendFrom(ns3::Ptr<ns3::Packet> packet, ns3::Address const & source, ns3::Address const & dest, uint16_t protocolNumber) [member function]
   363     cls.add_method('SendFrom', 
   364                    'bool', 
   365                    [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Address const &', 'source'), param('ns3::Address const &', 'dest'), param('uint16_t', 'protocolNumber')], 
   366                    is_virtual=True)
   367     ## csma-net-device.h: ns3::Ptr<ns3::Node> ns3::CsmaNetDevice::GetNode() const [member function]
   368     cls.add_method('GetNode', 
   369                    'ns3::Ptr< ns3::Node >', 
   370                    [], 
   371                    is_const=True, is_virtual=True)
   372     ## csma-net-device.h: void ns3::CsmaNetDevice::SetNode(ns3::Ptr<ns3::Node> node) [member function]
   373     cls.add_method('SetNode', 
   374                    'void', 
   375                    [param('ns3::Ptr< ns3::Node >', 'node')], 
   376                    is_virtual=True)
   377     ## csma-net-device.h: bool ns3::CsmaNetDevice::NeedsArp() const [member function]
   378     cls.add_method('NeedsArp', 
   379                    'bool', 
   380                    [], 
   381                    is_const=True, is_virtual=True)
   382     ## csma-net-device.h: void ns3::CsmaNetDevice::SetReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> cb) [member function]
   383     cls.add_method('SetReceiveCallback', 
   384                    'void', 
   385                    [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'cb')], 
   386                    is_virtual=True)
   387     ## csma-net-device.h: ns3::Address ns3::CsmaNetDevice::GetMulticast(ns3::Ipv6Address addr) const [member function]
   388     cls.add_method('GetMulticast', 
   389                    'ns3::Address', 
   390                    [param('ns3::Ipv6Address', 'addr')], 
   391                    is_const=True, is_virtual=True)
   392     ## csma-net-device.h: void ns3::CsmaNetDevice::SetPromiscReceiveCallback(ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty> cb) [member function]
   393     cls.add_method('SetPromiscReceiveCallback', 
   394                    'void', 
   395                    [param('ns3::Callback< bool, ns3::Ptr< ns3::NetDevice >, ns3::Ptr< ns3::Packet const >, unsigned short, ns3::Address const &, ns3::Address const &, ns3::NetDevice::PacketType, ns3::empty, ns3::empty, ns3::empty >', 'cb')], 
   396                    is_virtual=True)
   397     ## csma-net-device.h: bool ns3::CsmaNetDevice::SupportsSendFrom() const [member function]
   398     cls.add_method('SupportsSendFrom', 
   399                    'bool', 
   400                    [], 
   401                    is_const=True, is_virtual=True)
   402     ## csma-net-device.h: void ns3::CsmaNetDevice::DoDispose() [member function]
   403     cls.add_method('DoDispose', 
   404                    'void', 
   405                    [], 
   406                    visibility='protected', is_virtual=True)
   407     ## csma-net-device.h: ns3::Ptr<ns3::Queue> ns3::CsmaNetDevice::GetQueue() const [member function]
   408     cls.add_method('GetQueue', 
   409                    'ns3::Ptr< ns3::Queue >', 
   410                    [], 
   411                    is_const=True, visibility='protected')
   412     ## csma-net-device.h: void ns3::CsmaNetDevice::AddHeader(ns3::Ptr<ns3::Packet> p, ns3::Mac48Address source, ns3::Mac48Address dest, uint16_t protocolNumber) [member function]
   413     cls.add_method('AddHeader', 
   414                    'void', 
   415                    [param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Mac48Address', 'source'), param('ns3::Mac48Address', 'dest'), param('uint16_t', 'protocolNumber')], 
   416                    visibility='protected')
   417     ## csma-net-device.h: bool ns3::CsmaNetDevice::ProcessHeader(ns3::Ptr<ns3::Packet> p, uint16_t & param) [member function]
   418     cls.add_method('ProcessHeader', 
   419                    'bool', 
   420                    [param('ns3::Ptr< ns3::Packet >', 'p'), param('uint16_t &', 'param')], 
   421                    visibility='protected')
   422     return
   423 
   424 def register_functions(root_module):
   425     module = root_module
   426     register_functions_ns3_Config(module.get_submodule('Config'), root_module)
   427     register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
   428     register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module)
   429     register_functions_ns3_internal(module.get_submodule('internal'), root_module)
   430     register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
   431     return
   432 
   433 def register_functions_ns3_Config(module, root_module):
   434     return
   435 
   436 def register_functions_ns3_TimeStepPrecision(module, root_module):
   437     return
   438 
   439 def register_functions_ns3_addressUtils(module, root_module):
   440     return
   441 
   442 def register_functions_ns3_internal(module, root_module):
   443     return
   444 
   445 def register_functions_ns3_olsr(module, root_module):
   446     return
   447