merge with HEAD
This commit is contained in:
@@ -13,6 +13,14 @@ def register_types(module):
|
||||
module.add_class('DataRate')
|
||||
## packet.h: ns3::Packet [class]
|
||||
module.add_class('Packet', memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## packet-metadata.h: ns3::PacketMetadata [class]
|
||||
module.add_class('PacketMetadata')
|
||||
## packet-metadata.h: ns3::PacketMetadata::Item [struct]
|
||||
module.add_class('Item', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## packet-metadata.h: ns3::PacketMetadata::Item [enumeration]
|
||||
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'])
|
||||
## packet-metadata.h: ns3::PacketMetadata::ItemIterator [class]
|
||||
module.add_class('ItemIterator', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## tag.h: ns3::Tag [class]
|
||||
module.add_class('Tag', parent=root_module['ns3::ObjectBase'])
|
||||
## tag-buffer.h: ns3::TagBuffer [class]
|
||||
@@ -91,6 +99,9 @@ def register_methods(root_module):
|
||||
register_Ns3BufferIterator_methods(root_module, root_module['ns3::Buffer::Iterator'])
|
||||
register_Ns3DataRate_methods(root_module, root_module['ns3::DataRate'])
|
||||
register_Ns3Packet_methods(root_module, root_module['ns3::Packet'])
|
||||
register_Ns3PacketMetadata_methods(root_module, root_module['ns3::PacketMetadata'])
|
||||
register_Ns3PacketMetadataItem_methods(root_module, root_module['ns3::PacketMetadata::Item'])
|
||||
register_Ns3PacketMetadataItemIterator_methods(root_module, root_module['ns3::PacketMetadata::ItemIterator'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
|
||||
register_Ns3TagIterator_methods(root_module, root_module['ns3::TagIterator'])
|
||||
@@ -394,6 +405,11 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::Packet >',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h: uint32_t ns3::Packet::CopyData(uint8_t * buffer, uint32_t size) const [member function]
|
||||
cls.add_method('CopyData',
|
||||
'uint32_t',
|
||||
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')],
|
||||
is_const=True)
|
||||
## packet.h: ns3::Ptr<ns3::Packet> ns3::Packet::CreateFragment(uint32_t start, uint32_t length) const [member function]
|
||||
cls.add_method('CreateFragment',
|
||||
'ns3::Ptr< ns3::Packet >',
|
||||
@@ -489,6 +505,119 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketMetadata_methods(root_module, cls):
|
||||
## packet-metadata.h: static void ns3::PacketMetadata::Enable() [member function]
|
||||
cls.add_method('Enable',
|
||||
'void',
|
||||
[],
|
||||
is_static=True)
|
||||
## packet-metadata.h: static void ns3::PacketMetadata::EnableChecking() [member function]
|
||||
cls.add_method('EnableChecking',
|
||||
'void',
|
||||
[],
|
||||
is_static=True)
|
||||
## packet-metadata.h: ns3::PacketMetadata::PacketMetadata(uint32_t uid, uint32_t size) [constructor]
|
||||
cls.add_constructor([param('uint32_t', 'uid'), param('uint32_t', 'size')])
|
||||
## packet-metadata.h: ns3::PacketMetadata::PacketMetadata(ns3::PacketMetadata const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketMetadata const &', 'o')])
|
||||
## packet-metadata.h: void ns3::PacketMetadata::AddHeader(ns3::Header const & header, uint32_t size) [member function]
|
||||
cls.add_method('AddHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header'), param('uint32_t', 'size')])
|
||||
## packet-metadata.h: void ns3::PacketMetadata::RemoveHeader(ns3::Header const & header, uint32_t size) [member function]
|
||||
cls.add_method('RemoveHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header'), param('uint32_t', 'size')])
|
||||
## packet-metadata.h: void ns3::PacketMetadata::AddTrailer(ns3::Trailer const & trailer, uint32_t size) [member function]
|
||||
cls.add_method('AddTrailer',
|
||||
'void',
|
||||
[param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')])
|
||||
## packet-metadata.h: void ns3::PacketMetadata::RemoveTrailer(ns3::Trailer const & trailer, uint32_t size) [member function]
|
||||
cls.add_method('RemoveTrailer',
|
||||
'void',
|
||||
[param('ns3::Trailer const &', 'trailer'), param('uint32_t', 'size')])
|
||||
## packet-metadata.h: ns3::PacketMetadata ns3::PacketMetadata::CreateFragment(uint32_t start, uint32_t end) const [member function]
|
||||
cls.add_method('CreateFragment',
|
||||
'ns3::PacketMetadata',
|
||||
[param('uint32_t', 'start'), param('uint32_t', 'end')],
|
||||
is_const=True)
|
||||
## packet-metadata.h: void ns3::PacketMetadata::AddAtEnd(ns3::PacketMetadata const & o) [member function]
|
||||
cls.add_method('AddAtEnd',
|
||||
'void',
|
||||
[param('ns3::PacketMetadata const &', 'o')])
|
||||
## packet-metadata.h: void ns3::PacketMetadata::AddPaddingAtEnd(uint32_t end) [member function]
|
||||
cls.add_method('AddPaddingAtEnd',
|
||||
'void',
|
||||
[param('uint32_t', 'end')])
|
||||
## packet-metadata.h: void ns3::PacketMetadata::RemoveAtStart(uint32_t start) [member function]
|
||||
cls.add_method('RemoveAtStart',
|
||||
'void',
|
||||
[param('uint32_t', 'start')])
|
||||
## packet-metadata.h: void ns3::PacketMetadata::RemoveAtEnd(uint32_t end) [member function]
|
||||
cls.add_method('RemoveAtEnd',
|
||||
'void',
|
||||
[param('uint32_t', 'end')])
|
||||
## packet-metadata.h: uint32_t ns3::PacketMetadata::GetUid() const [member function]
|
||||
cls.add_method('GetUid',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-metadata.h: uint32_t ns3::PacketMetadata::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-metadata.h: void ns3::PacketMetadata::Serialize(ns3::Buffer::Iterator i, uint32_t size) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator', 'i'), param('uint32_t', 'size')],
|
||||
is_const=True)
|
||||
## packet-metadata.h: uint32_t ns3::PacketMetadata::Deserialize(ns3::Buffer::Iterator i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'uint32_t',
|
||||
[param('ns3::Buffer::Iterator', 'i')])
|
||||
## packet-metadata.h: ns3::PacketMetadata::ItemIterator ns3::PacketMetadata::BeginItem(ns3::Buffer buffer) const [member function]
|
||||
cls.add_method('BeginItem',
|
||||
'ns3::PacketMetadata::ItemIterator',
|
||||
[param('ns3::Buffer', 'buffer')],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketMetadataItem_methods(root_module, cls):
|
||||
## packet-metadata.h: ns3::PacketMetadata::Item::isFragment [variable]
|
||||
cls.add_instance_attribute('isFragment', 'bool', is_const=False)
|
||||
## packet-metadata.h: ns3::PacketMetadata::Item::tid [variable]
|
||||
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
|
||||
## packet-metadata.h: ns3::PacketMetadata::Item::currentSize [variable]
|
||||
cls.add_instance_attribute('currentSize', 'uint32_t', is_const=False)
|
||||
## packet-metadata.h: ns3::PacketMetadata::Item::currentTrimedFromStart [variable]
|
||||
cls.add_instance_attribute('currentTrimedFromStart', 'uint32_t', is_const=False)
|
||||
## packet-metadata.h: ns3::PacketMetadata::Item::currentTrimedFromEnd [variable]
|
||||
cls.add_instance_attribute('currentTrimedFromEnd', 'uint32_t', is_const=False)
|
||||
## packet-metadata.h: ns3::PacketMetadata::Item::current [variable]
|
||||
cls.add_instance_attribute('current', 'ns3::Buffer::Iterator', is_const=False)
|
||||
## packet-metadata.h: ns3::PacketMetadata::Item::Item(ns3::PacketMetadata::Item const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketMetadata::Item const &', 'arg0')])
|
||||
## packet-metadata.h: ns3::PacketMetadata::Item::Item() [constructor]
|
||||
cls.add_constructor([])
|
||||
return
|
||||
|
||||
def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
|
||||
## packet-metadata.h: ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata::ItemIterator const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketMetadata::ItemIterator const &', 'arg0')])
|
||||
## packet-metadata.h: ns3::PacketMetadata::ItemIterator::ItemIterator(ns3::PacketMetadata const * metadata, ns3::Buffer buffer) [constructor]
|
||||
cls.add_constructor([param('ns3::PacketMetadata const *', 'metadata'), param('ns3::Buffer', 'buffer')])
|
||||
## packet-metadata.h: bool ns3::PacketMetadata::ItemIterator::HasNext() const [member function]
|
||||
cls.add_method('HasNext',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-metadata.h: ns3::PacketMetadata::Item ns3::PacketMetadata::ItemIterator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::PacketMetadata::Item',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
## tag.h: ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
|
||||
@@ -91,6 +91,10 @@ def register_types(module):
|
||||
module.add_class('BooleanChecker', parent=root_module['ns3::AttributeChecker'])
|
||||
## boolean.h: ns3::BooleanValue [class]
|
||||
module.add_class('BooleanValue', parent=root_module['ns3::AttributeValue'])
|
||||
## callback.h: ns3::CallbackChecker [class]
|
||||
module.add_class('CallbackChecker', parent=root_module['ns3::AttributeChecker'])
|
||||
## callback.h: ns3::CallbackValue [class]
|
||||
module.add_class('CallbackValue', parent=root_module['ns3::AttributeValue'])
|
||||
## random-variable.h: ns3::ConstantVariable [class]
|
||||
module.add_class('ConstantVariable', parent=root_module['ns3::RandomVariable'])
|
||||
## random-variable.h: ns3::DeterministicVariable [class]
|
||||
@@ -236,6 +240,8 @@ def register_methods(root_module):
|
||||
register_Ns3AttributeValue_methods(root_module, root_module['ns3::AttributeValue'])
|
||||
register_Ns3BooleanChecker_methods(root_module, root_module['ns3::BooleanChecker'])
|
||||
register_Ns3BooleanValue_methods(root_module, root_module['ns3::BooleanValue'])
|
||||
register_Ns3CallbackChecker_methods(root_module, root_module['ns3::CallbackChecker'])
|
||||
register_Ns3CallbackValue_methods(root_module, root_module['ns3::CallbackValue'])
|
||||
register_Ns3ConstantVariable_methods(root_module, root_module['ns3::ConstantVariable'])
|
||||
register_Ns3DeterministicVariable_methods(root_module, root_module['ns3::DeterministicVariable'])
|
||||
register_Ns3DoubleValue_methods(root_module, root_module['ns3::DoubleValue'])
|
||||
@@ -945,11 +951,6 @@ def register_Ns3TypeId_methods(root_module, cls):
|
||||
'ns3::TypeId',
|
||||
[param('std::string', 'name')],
|
||||
is_static=True)
|
||||
## type-id.h: static bool ns3::TypeId::LookupByNameFailSafe(std::string name, ns3::TypeId * tid) [member function]
|
||||
cls.add_method('LookupByNameFailSafe',
|
||||
'bool',
|
||||
[param('std::string', 'name'), param('ns3::TypeId *', 'tid', transfer_ownership=False)],
|
||||
is_static=True)
|
||||
## type-id.h: ns3::Ptr<ns3::TraceSourceAccessor const> ns3::TypeId::LookupTraceSourceByName(std::string name) const [member function]
|
||||
cls.add_method('LookupTraceSourceByName',
|
||||
'ns3::Ptr< ns3::TraceSourceAccessor const >',
|
||||
@@ -1155,6 +1156,41 @@ def register_Ns3BooleanValue_methods(root_module, cls):
|
||||
[param('bool', 'value')])
|
||||
return
|
||||
|
||||
def register_Ns3CallbackChecker_methods(root_module, cls):
|
||||
## callback.h: ns3::CallbackChecker::CallbackChecker(ns3::CallbackChecker const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::CallbackChecker const &', 'arg0')])
|
||||
## callback.h: ns3::CallbackChecker::CallbackChecker() [constructor]
|
||||
cls.add_constructor([])
|
||||
return
|
||||
|
||||
def register_Ns3CallbackValue_methods(root_module, cls):
|
||||
## callback.h: ns3::CallbackValue::CallbackValue(ns3::CallbackValue const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::CallbackValue const &', 'arg0')])
|
||||
## callback.h: ns3::CallbackValue::CallbackValue() [constructor]
|
||||
cls.add_constructor([])
|
||||
## callback.h: ns3::CallbackValue::CallbackValue(ns3::CallbackBase const & base) [constructor]
|
||||
cls.add_constructor([param('ns3::CallbackBase const &', 'base')])
|
||||
## callback.h: void ns3::CallbackValue::Set(ns3::CallbackBase base) [member function]
|
||||
cls.add_method('Set',
|
||||
'void',
|
||||
[param('ns3::CallbackBase', 'base')])
|
||||
## callback.h: ns3::Ptr<ns3::AttributeValue> ns3::CallbackValue::Copy() const [member function]
|
||||
cls.add_method('Copy',
|
||||
'ns3::Ptr< ns3::AttributeValue >',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## callback.h: std::string ns3::CallbackValue::SerializeToString(ns3::Ptr<ns3::AttributeChecker const> checker) const [member function]
|
||||
cls.add_method('SerializeToString',
|
||||
'std::string',
|
||||
[param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
|
||||
is_const=True, is_virtual=True)
|
||||
## callback.h: bool ns3::CallbackValue::DeserializeFromString(std::string value, ns3::Ptr<ns3::AttributeChecker const> checker) [member function]
|
||||
cls.add_method('DeserializeFromString',
|
||||
'bool',
|
||||
[param('std::string', 'value'), param('ns3::Ptr< ns3::AttributeChecker const >', 'checker')],
|
||||
is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3ConstantVariable_methods(root_module, cls):
|
||||
## random-variable.h: ns3::ConstantVariable::ConstantVariable(ns3::ConstantVariable const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::ConstantVariable const &', 'arg0')])
|
||||
@@ -1831,7 +1867,7 @@ def register_Ns3TracedValue__Unsigned_int_methods(root_module, cls):
|
||||
cls.add_method('ConnectWithoutContext',
|
||||
'void',
|
||||
[param('ns3::CallbackBase const &', 'cb')])
|
||||
## traced-value.h: void ns3::TracedValue<unsigned int>::Connect(ns3::CallbackBase const & cb, std::string path) [member function]
|
||||
## traced-value.h: void ns3::TracedValue<unsigned int>::Connect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
|
||||
cls.add_method('Connect',
|
||||
'void',
|
||||
[param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
|
||||
@@ -1839,7 +1875,7 @@ def register_Ns3TracedValue__Unsigned_int_methods(root_module, cls):
|
||||
cls.add_method('DisconnectWithoutContext',
|
||||
'void',
|
||||
[param('ns3::CallbackBase const &', 'cb')])
|
||||
## traced-value.h: void ns3::TracedValue<unsigned int>::Disconnect(ns3::CallbackBase const & cb, std::string path) [member function]
|
||||
## traced-value.h: void ns3::TracedValue<unsigned int>::Disconnect(ns3::CallbackBase const & cb, std::basic_string<char,std::char_traits<char>,std::allocator<char> > path) [member function]
|
||||
cls.add_method('Disconnect',
|
||||
'void',
|
||||
[param('ns3::CallbackBase const &', 'cb'), param('std::string', 'path')])
|
||||
@@ -1874,7 +1910,7 @@ def register_functions(root_module):
|
||||
module.add_function('TypeNameGet',
|
||||
'std::string',
|
||||
[],
|
||||
template_parameters=['long long'])
|
||||
template_parameters=['long'])
|
||||
## type-name.h: extern std::string ns3::TypeNameGet() [free function]
|
||||
module.add_function('TypeNameGet',
|
||||
'std::string',
|
||||
@@ -1894,7 +1930,7 @@ def register_functions(root_module):
|
||||
module.add_function('TypeNameGet',
|
||||
'std::string',
|
||||
[],
|
||||
template_parameters=['unsigned long long'])
|
||||
template_parameters=['unsigned long'])
|
||||
## type-name.h: extern std::string ns3::TypeNameGet() [free function]
|
||||
module.add_function('TypeNameGet',
|
||||
'std::string',
|
||||
@@ -1910,14 +1946,22 @@ def register_functions(root_module):
|
||||
'std::string',
|
||||
[],
|
||||
template_parameters=['unsigned char'])
|
||||
## log.h: extern void ns3::LogComponentDisable(char const * name, ns3::LogLevel level) [free function]
|
||||
module.add_function('LogComponentDisable',
|
||||
'void',
|
||||
[param('char const *', 'name'), param('ns3::LogLevel', 'level')])
|
||||
## string.h: extern ns3::Ptr<ns3::AttributeChecker const> ns3::MakeStringChecker() [free function]
|
||||
module.add_function('MakeStringChecker',
|
||||
'ns3::Ptr< ns3::AttributeChecker const >',
|
||||
[])
|
||||
## enum.h: extern ns3::Ptr<ns3::AttributeChecker const> ns3::MakeEnumChecker(int v1, std::string n1, int v2=0, std::string n2="", int v3=0, std::string n3="", int v4=0, std::string n4="", int v5=0, std::string n5="", int v6=0, std::string n6="", int v7=0, std::string n7="", int v8=0, std::string n8="", int v9=0, std::string n9="", int v10=0, std::string n10="", int v11=0, std::string n11="", int v12=0, std::string n12="") [free function]
|
||||
module.add_function('MakeEnumChecker',
|
||||
'ns3::Ptr< ns3::AttributeChecker const >',
|
||||
[param('int', 'v1'), param('std::string', 'n1'), param('int', 'v2', default_value='0'), param('std::string', 'n2', default_value='""'), param('int', 'v3', default_value='0'), param('std::string', 'n3', default_value='""'), param('int', 'v4', default_value='0'), param('std::string', 'n4', default_value='""'), param('int', 'v5', default_value='0'), param('std::string', 'n5', default_value='""'), param('int', 'v6', default_value='0'), param('std::string', 'n6', default_value='""'), param('int', 'v7', default_value='0'), param('std::string', 'n7', default_value='""'), param('int', 'v8', default_value='0'), param('std::string', 'n8', default_value='""'), param('int', 'v9', default_value='0'), param('std::string', 'n9', default_value='""'), param('int', 'v10', default_value='0'), param('std::string', 'n10', default_value='""'), param('int', 'v11', default_value='0'), param('std::string', 'n11', default_value='""'), param('int', 'v12', default_value='0'), param('std::string', 'n12', default_value='""')])
|
||||
## log.h: extern void ns3::LogComponentEnableAll(ns3::LogLevel level) [free function]
|
||||
module.add_function('LogComponentEnableAll',
|
||||
'void',
|
||||
[param('ns3::LogLevel', 'level')])
|
||||
## type-id.h: extern ns3::Ptr<ns3::AttributeChecker const> ns3::MakeTypeIdChecker() [free function]
|
||||
module.add_function('MakeTypeIdChecker',
|
||||
'ns3::Ptr< ns3::AttributeChecker const >',
|
||||
[])
|
||||
## ptr.h: extern ns3::Ptr<ns3::PointerValue> ns3::Create() [free function]
|
||||
module.add_function('Create',
|
||||
'ns3::Ptr< ns3::PointerValue >',
|
||||
@@ -1928,14 +1972,6 @@ def register_functions(root_module):
|
||||
'ns3::Ptr< ns3::ObjectVectorValue >',
|
||||
[],
|
||||
template_parameters=['ns3::ObjectVectorValue'])
|
||||
## log.h: extern void ns3::LogComponentEnableAll(ns3::LogLevel level) [free function]
|
||||
module.add_function('LogComponentEnableAll',
|
||||
'void',
|
||||
[param('ns3::LogLevel', 'level')])
|
||||
## type-id.h: extern ns3::Ptr<ns3::AttributeChecker const> ns3::MakeTypeIdChecker() [free function]
|
||||
module.add_function('MakeTypeIdChecker',
|
||||
'ns3::Ptr< ns3::AttributeChecker const >',
|
||||
[])
|
||||
## object-factory.h: extern ns3::Ptr<ns3::AttributeChecker const> ns3::MakeObjectFactoryChecker() [free function]
|
||||
module.add_function('MakeObjectFactoryChecker',
|
||||
'ns3::Ptr< ns3::AttributeChecker const >',
|
||||
@@ -1944,6 +1980,10 @@ def register_functions(root_module):
|
||||
module.add_function('LogComponentDisableAll',
|
||||
'void',
|
||||
[param('ns3::LogLevel', 'level')])
|
||||
## callback.h: extern ns3::Ptr<ns3::AttributeChecker const> ns3::MakeCallbackChecker() [free function]
|
||||
module.add_function('MakeCallbackChecker',
|
||||
'ns3::Ptr< ns3::AttributeChecker const >',
|
||||
[])
|
||||
## breakpoint.h: extern void ns3::BreakpointFallback() [free function]
|
||||
module.add_function('BreakpointFallback',
|
||||
'void',
|
||||
@@ -1952,14 +1992,14 @@ def register_functions(root_module):
|
||||
module.add_function('MakeRandomVariableChecker',
|
||||
'ns3::Ptr< ns3::AttributeChecker const >',
|
||||
[])
|
||||
## log.h: extern void ns3::LogComponentDisable(char const * name, ns3::LogLevel level) [free function]
|
||||
module.add_function('LogComponentDisable',
|
||||
'void',
|
||||
[param('char const *', 'name'), param('ns3::LogLevel', 'level')])
|
||||
## log.h: extern void ns3::LogComponentEnable(char const * name, ns3::LogLevel level) [free function]
|
||||
module.add_function('LogComponentEnable',
|
||||
'void',
|
||||
[param('char const *', 'name'), param('ns3::LogLevel', 'level')])
|
||||
## enum.h: extern ns3::Ptr<ns3::AttributeChecker const> ns3::MakeEnumChecker(int v1, std::string n1, int v2=0, std::string n2="", int v3=0, std::string n3="", int v4=0, std::string n4="", int v5=0, std::string n5="", int v6=0, std::string n6="", int v7=0, std::string n7="", int v8=0, std::string n8="", int v9=0, std::string n9="", int v10=0, std::string n10="", int v11=0, std::string n11="", int v12=0, std::string n12="") [free function]
|
||||
module.add_function('MakeEnumChecker',
|
||||
'ns3::Ptr< ns3::AttributeChecker const >',
|
||||
[param('int', 'v1'), param('std::string', 'n1'), param('int', 'v2', default_value='0'), param('std::string', 'n2', default_value='""'), param('int', 'v3', default_value='0'), param('std::string', 'n3', default_value='""'), param('int', 'v4', default_value='0'), param('std::string', 'n4', default_value='""'), param('int', 'v5', default_value='0'), param('std::string', 'n5', default_value='""'), param('int', 'v6', default_value='0'), param('std::string', 'n6', default_value='""'), param('int', 'v7', default_value='0'), param('std::string', 'n7', default_value='""'), param('int', 'v8', default_value='0'), param('std::string', 'n8', default_value='""'), param('int', 'v9', default_value='0'), param('std::string', 'n9', default_value='""'), param('int', 'v10', default_value='0'), param('std::string', 'n10', default_value='""'), param('int', 'v11', default_value='0'), param('std::string', 'n11', default_value='""'), param('int', 'v12', default_value='0'), param('std::string', 'n12', default_value='""')])
|
||||
register_functions_ns3_internal(module.get_submodule('internal'), root_module)
|
||||
register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
|
||||
register_functions_ns3_Config(module.get_submodule('Config'), root_module)
|
||||
@@ -2017,10 +2057,6 @@ def register_functions_ns3_Config(module, root_module):
|
||||
module.add_function('SetGlobalFailSafe',
|
||||
'bool',
|
||||
[param('std::string', 'name'), param('ns3::AttributeValue const &', 'value')])
|
||||
## config.h: extern void ns3::Config::Disconnect(std::string path, ns3::CallbackBase const & cb) [free function]
|
||||
module.add_function('Disconnect',
|
||||
'void',
|
||||
[param('std::string', 'path'), param('ns3::CallbackBase const &', 'cb')])
|
||||
## config.h: extern uint32_t ns3::Config::GetRootNamespaceObjectN() [free function]
|
||||
module.add_function('GetRootNamespaceObjectN',
|
||||
'uint32_t',
|
||||
@@ -2037,6 +2073,10 @@ def register_functions_ns3_Config(module, root_module):
|
||||
module.add_function('RegisterRootNamespaceObject',
|
||||
'void',
|
||||
[param('ns3::Ptr< ns3::Object >', 'obj')])
|
||||
## config.h: extern void ns3::Config::Disconnect(std::string path, ns3::CallbackBase const & cb) [free function]
|
||||
module.add_function('Disconnect',
|
||||
'void',
|
||||
[param('std::string', 'path'), param('ns3::CallbackBase const &', 'cb')])
|
||||
return
|
||||
|
||||
def register_functions_ns3_olsr(module, root_module):
|
||||
|
||||
@@ -150,21 +150,12 @@ def register_Ns3StaticSpeedHelper_methods(root_module, cls):
|
||||
cls.add_constructor([])
|
||||
## static-speed-helper.h: ns3::StaticSpeedHelper::StaticSpeedHelper(ns3::Vector const & position) [constructor]
|
||||
cls.add_constructor([param('ns3::Vector const &', 'position')])
|
||||
## static-speed-helper.h: ns3::StaticSpeedHelper::StaticSpeedHelper(ns3::Vector const & position, ns3::Vector const & speed) [constructor]
|
||||
cls.add_constructor([param('ns3::Vector const &', 'position'), param('ns3::Vector const &', 'speed')])
|
||||
## static-speed-helper.h: void ns3::StaticSpeedHelper::InitializePosition(ns3::Vector const & position) [member function]
|
||||
cls.add_method('InitializePosition',
|
||||
## static-speed-helper.h: ns3::StaticSpeedHelper::StaticSpeedHelper(ns3::Vector const & position, ns3::Vector const & vel) [constructor]
|
||||
cls.add_constructor([param('ns3::Vector const &', 'position'), param('ns3::Vector const &', 'vel')])
|
||||
## static-speed-helper.h: void ns3::StaticSpeedHelper::SetPosition(ns3::Vector const & position) [member function]
|
||||
cls.add_method('SetPosition',
|
||||
'void',
|
||||
[param('ns3::Vector const &', 'position')])
|
||||
## static-speed-helper.h: void ns3::StaticSpeedHelper::Reset(ns3::Vector const & speed) [member function]
|
||||
cls.add_method('Reset',
|
||||
'void',
|
||||
[param('ns3::Vector const &', 'speed')])
|
||||
## static-speed-helper.h: ns3::Vector ns3::StaticSpeedHelper::GetCurrentPosition(ns3::Rectangle const & bounds) const [member function]
|
||||
cls.add_method('GetCurrentPosition',
|
||||
'ns3::Vector',
|
||||
[param('ns3::Rectangle const &', 'bounds')],
|
||||
is_const=True)
|
||||
## static-speed-helper.h: ns3::Vector ns3::StaticSpeedHelper::GetCurrentPosition() const [member function]
|
||||
cls.add_method('GetCurrentPosition',
|
||||
'ns3::Vector',
|
||||
@@ -175,10 +166,10 @@ def register_Ns3StaticSpeedHelper_methods(root_module, cls):
|
||||
'ns3::Vector',
|
||||
[],
|
||||
is_const=True)
|
||||
## static-speed-helper.h: void ns3::StaticSpeedHelper::SetSpeed(ns3::Vector const & speed) [member function]
|
||||
cls.add_method('SetSpeed',
|
||||
## static-speed-helper.h: void ns3::StaticSpeedHelper::SetVelocity(ns3::Vector const & vel) [member function]
|
||||
cls.add_method('SetVelocity',
|
||||
'void',
|
||||
[param('ns3::Vector const &', 'speed')])
|
||||
[param('ns3::Vector const &', 'vel')])
|
||||
## static-speed-helper.h: void ns3::StaticSpeedHelper::Pause() [member function]
|
||||
cls.add_method('Pause',
|
||||
'void',
|
||||
@@ -187,6 +178,16 @@ def register_Ns3StaticSpeedHelper_methods(root_module, cls):
|
||||
cls.add_method('Unpause',
|
||||
'void',
|
||||
[])
|
||||
## static-speed-helper.h: void ns3::StaticSpeedHelper::UpdateWithBounds(ns3::Rectangle const & rectangle) const [member function]
|
||||
cls.add_method('UpdateWithBounds',
|
||||
'void',
|
||||
[param('ns3::Rectangle const &', 'rectangle')],
|
||||
is_const=True)
|
||||
## static-speed-helper.h: void ns3::StaticSpeedHelper::Update() const [member function]
|
||||
cls.add_method('Update',
|
||||
'void',
|
||||
[],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3Vector_methods(root_module, cls):
|
||||
@@ -631,8 +632,8 @@ def register_Ns3StaticSpeedMobilityModel_methods(root_module, cls):
|
||||
is_static=True)
|
||||
## static-speed-mobility-model.h: ns3::StaticSpeedMobilityModel::StaticSpeedMobilityModel() [constructor]
|
||||
cls.add_constructor([])
|
||||
## static-speed-mobility-model.h: void ns3::StaticSpeedMobilityModel::SetSpeed(ns3::Vector const & speed) [member function]
|
||||
cls.add_method('SetSpeed',
|
||||
## static-speed-mobility-model.h: void ns3::StaticSpeedMobilityModel::SetVelocity(ns3::Vector const & speed) [member function]
|
||||
cls.add_method('SetVelocity',
|
||||
'void',
|
||||
[param('ns3::Vector const &', 'speed')])
|
||||
## static-speed-mobility-model.h: ns3::Vector ns3::StaticSpeedMobilityModel::DoGetPosition() const [member function]
|
||||
|
||||
@@ -1251,9 +1251,9 @@ def register_Ns3Socket_methods(root_module, cls):
|
||||
cls.add_method('SetAcceptCallback',
|
||||
'void',
|
||||
[param('ns3::Callback< bool, ns3::Ptr< ns3::Socket >, ns3::Address const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'connectionRequest'), param('ns3::Callback< void, ns3::Ptr< ns3::Socket >, ns3::Address const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'newConnectionCreated')])
|
||||
## socket.h: bool ns3::Socket::SetDataSentCallback(ns3::Callback<void, ns3::Ptr<ns3::Socket>, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty> dataSent) [member function]
|
||||
## socket.h: void ns3::Socket::SetDataSentCallback(ns3::Callback<void, ns3::Ptr<ns3::Socket>, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty> dataSent) [member function]
|
||||
cls.add_method('SetDataSentCallback',
|
||||
'bool',
|
||||
'void',
|
||||
[param('ns3::Callback< void, ns3::Ptr< ns3::Socket >, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'dataSent')])
|
||||
## socket.h: void ns3::Socket::SetSendCallback(ns3::Callback<void, ns3::Ptr<ns3::Socket>, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty> sendCb) [member function]
|
||||
cls.add_method('SetSendCallback',
|
||||
@@ -1293,10 +1293,10 @@ def register_Ns3Socket_methods(root_module, cls):
|
||||
'int',
|
||||
[param('ns3::Address const &', 'address')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## socket.h: int ns3::Socket::Listen(uint32_t queueLimit) [member function]
|
||||
## socket.h: int ns3::Socket::Listen() [member function]
|
||||
cls.add_method('Listen',
|
||||
'int',
|
||||
[param('uint32_t', 'queueLimit')],
|
||||
[],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## socket.h: uint32_t ns3::Socket::GetTxAvailable() const [member function]
|
||||
cls.add_method('GetTxAvailable',
|
||||
@@ -1356,6 +1356,11 @@ def register_Ns3Socket_methods(root_module, cls):
|
||||
cls.add_method('RecvFrom',
|
||||
'int',
|
||||
[param('uint8_t *', 'buf'), param('uint32_t', 'size'), param('uint32_t', 'flags'), param('ns3::Address &', 'fromAddress')])
|
||||
## socket.h: int ns3::Socket::GetSockName(ns3::Address & address) const [member function]
|
||||
cls.add_method('GetSockName',
|
||||
'int',
|
||||
[param('ns3::Address &', 'address')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## socket.h: void ns3::Socket::NotifyConnectionSucceeded() [member function]
|
||||
cls.add_method('NotifyConnectionSucceeded',
|
||||
'void',
|
||||
@@ -2581,18 +2586,10 @@ def register_Ns3SimpleNetDevice_methods(root_module, cls):
|
||||
|
||||
def register_functions(root_module):
|
||||
module = root_module
|
||||
## address-utils.h: extern void ns3::ReadFrom(ns3::Buffer::Iterator & i, ns3::Mac48Address & ad) [free function]
|
||||
module.add_function('ReadFrom',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator &', 'i'), param('ns3::Mac48Address &', 'ad')])
|
||||
## address-utils.h: extern void ns3::ReadFrom(ns3::Buffer::Iterator & i, ns3::Address & ad, uint32_t len) [free function]
|
||||
module.add_function('ReadFrom',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator &', 'i'), param('ns3::Address &', 'ad'), param('uint32_t', 'len')])
|
||||
## address-utils.h: extern void ns3::ReadFrom(ns3::Buffer::Iterator & i, ns3::Ipv4Address & ad) [free function]
|
||||
module.add_function('ReadFrom',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator &', 'i'), param('ns3::Ipv4Address &', 'ad')])
|
||||
## mac48-address.h: extern ns3::Ptr<ns3::AttributeChecker const> ns3::MakeMac48AddressChecker() [free function]
|
||||
module.add_function('MakeMac48AddressChecker',
|
||||
'ns3::Ptr< ns3::AttributeChecker const >',
|
||||
[])
|
||||
## ipv4-address.h: extern ns3::Ptr<ns3::AttributeChecker const> ns3::MakeIpv4AddressChecker() [free function]
|
||||
module.add_function('MakeIpv4AddressChecker',
|
||||
'ns3::Ptr< ns3::AttributeChecker const >',
|
||||
@@ -2617,10 +2614,18 @@ def register_functions(root_module):
|
||||
module.add_function('MakeIpv4MaskChecker',
|
||||
'ns3::Ptr< ns3::AttributeChecker const >',
|
||||
[])
|
||||
## mac48-address.h: extern ns3::Ptr<ns3::AttributeChecker const> ns3::MakeMac48AddressChecker() [free function]
|
||||
module.add_function('MakeMac48AddressChecker',
|
||||
'ns3::Ptr< ns3::AttributeChecker const >',
|
||||
[])
|
||||
## address-utils.h: extern void ns3::ReadFrom(ns3::Buffer::Iterator & i, ns3::Mac48Address & ad) [free function]
|
||||
module.add_function('ReadFrom',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator &', 'i'), param('ns3::Mac48Address &', 'ad')])
|
||||
## address-utils.h: extern void ns3::ReadFrom(ns3::Buffer::Iterator & i, ns3::Address & ad, uint32_t len) [free function]
|
||||
module.add_function('ReadFrom',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator &', 'i'), param('ns3::Address &', 'ad'), param('uint32_t', 'len')])
|
||||
## address-utils.h: extern void ns3::ReadFrom(ns3::Buffer::Iterator & i, ns3::Ipv4Address & ad) [free function]
|
||||
module.add_function('ReadFrom',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator &', 'i'), param('ns3::Ipv4Address &', 'ad')])
|
||||
register_functions_ns3_internal(module.get_submodule('internal'), root_module)
|
||||
register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
|
||||
register_functions_ns3_Config(module.get_submodule('Config'), root_module)
|
||||
|
||||
@@ -507,16 +507,16 @@ def register_Ns3WifiRemoteStation_methods(root_module, cls):
|
||||
'bool',
|
||||
[param('ns3::Ptr< ns3::Packet const >', 'packet')],
|
||||
is_virtual=True)
|
||||
## wifi-remote-station-manager.h: uint32_t ns3::WifiRemoteStation::GetNFragments(ns3::Ptr<const ns3::Packet> packet) [member function]
|
||||
cls.add_method('GetNFragments',
|
||||
'uint32_t',
|
||||
[param('ns3::Ptr< ns3::Packet const >', 'packet')],
|
||||
is_virtual=True)
|
||||
## wifi-remote-station-manager.h: uint32_t ns3::WifiRemoteStation::GetFragmentSize(ns3::Ptr<const ns3::Packet> packet, uint32_t fragmentNumber) [member function]
|
||||
cls.add_method('GetFragmentSize',
|
||||
'uint32_t',
|
||||
[param('ns3::Ptr< ns3::Packet const >', 'packet'), param('uint32_t', 'fragmentNumber')],
|
||||
is_virtual=True)
|
||||
## wifi-remote-station-manager.h: uint32_t ns3::WifiRemoteStation::GetFragmentOffset(ns3::Ptr<const ns3::Packet> packet, uint32_t fragmentNumber) [member function]
|
||||
cls.add_method('GetFragmentOffset',
|
||||
'uint32_t',
|
||||
[param('ns3::Ptr< ns3::Packet const >', 'packet'), param('uint32_t', 'fragmentNumber')],
|
||||
is_virtual=True)
|
||||
## wifi-remote-station-manager.h: bool ns3::WifiRemoteStation::IsLastFragment(ns3::Ptr<const ns3::Packet> packet, uint32_t fragmentNumber) [member function]
|
||||
cls.add_method('IsLastFragment',
|
||||
'bool',
|
||||
|
||||
@@ -188,3 +188,35 @@ error:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
PyObject *
|
||||
_wrap_TypeId_LookupByNameFailSafe(PyNs3TypeId *PYBINDGEN_UNUSED(dummy), PyObject *args, PyObject *kwargs,
|
||||
PyObject **return_exception)
|
||||
{
|
||||
bool ok;
|
||||
const char *name;
|
||||
Py_ssize_t name_len;
|
||||
ns3::TypeId tid;
|
||||
PyNs3TypeId *py_tid;
|
||||
const char *keywords[] = {"name", NULL};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs, (char *) "s#", (char **) keywords, &name, &name_len)) {
|
||||
PyObject *exc_type, *traceback;
|
||||
PyErr_Fetch(&exc_type, return_exception, &traceback);
|
||||
Py_XDECREF(exc_type);
|
||||
Py_XDECREF(traceback);
|
||||
return NULL;
|
||||
}
|
||||
ok = ns3::TypeId::LookupByNameFailSafe(std::string(name, name_len), &tid);
|
||||
if (!ok)
|
||||
{
|
||||
PyErr_Format(PyExc_KeyError, "The ns3 type with name `%s' is not registered", name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
py_tid = PyObject_New(PyNs3TypeId, &PyNs3TypeId_Type);
|
||||
py_tid->obj = new ns3::TypeId (tid);
|
||||
PyNs3TypeId_wrapper_registry[(void *) py_tid->obj] = (PyObject *) py_tid;
|
||||
|
||||
return (PyObject *) py_tid;
|
||||
}
|
||||
|
||||
@@ -85,6 +85,7 @@ def main():
|
||||
|
||||
ns3modulegen_core_customizations.Simulator_customizations(root_module)
|
||||
ns3modulegen_core_customizations.CommandLine_customizations(root_module)
|
||||
ns3modulegen_core_customizations.TypeId_customizations(root_module)
|
||||
|
||||
|
||||
for local_module in LOCAL_MODULES:
|
||||
|
||||
@@ -424,6 +424,7 @@ static int %(WRAPPER_NAME)s (%(PYSTRUCT)s *self, PyObject *args, PyObject *kwarg
|
||||
return -1;
|
||||
}
|
||||
%(CONSTRUCT_CODE)s
|
||||
PyNs3ObjectBase_wrapper_registry[(void *) self->obj] = (PyObject *) self;
|
||||
return 0;
|
||||
}
|
||||
''' % dict(WRAPPER_NAME=wrapper_name, PYSTRUCT=cls.pystruct, CLASS_NAME=cls.full_name,
|
||||
@@ -517,3 +518,10 @@ def Attribute_customizations(module):
|
||||
and param.default_value_type is None:
|
||||
param.default_value_type = 'ns3::EmptyAttributeValue'
|
||||
|
||||
|
||||
def TypeId_customizations(module):
|
||||
TypeId = module['ns3::TypeId']
|
||||
TypeId.add_custom_method_wrapper("LookupByNameFailSafe", "_wrap_TypeId_LookupByNameFailSafe",
|
||||
flags=["METH_VARARGS", "METH_KEYWORDS", "METH_STATIC"])
|
||||
|
||||
|
||||
|
||||
@@ -48,9 +48,6 @@ type_annotations = {
|
||||
'decref_method': 'Unref',
|
||||
'peekref_method': 'GetReferenceCount',
|
||||
},
|
||||
'::ns3::PacketMetadata': {
|
||||
'ignore': None,
|
||||
},
|
||||
'::ns3::AttributeChecker': {
|
||||
'automatic_type_narrowing': 'true',
|
||||
'allow_subclassing': 'false',
|
||||
@@ -73,7 +70,7 @@ type_annotations = {
|
||||
'params': {'info':{'transfer_ownership': 'false'}}
|
||||
},
|
||||
'static bool ns3::TypeId::LookupByNameFailSafe(std::string name, ns3::TypeId * tid) [member function]': {
|
||||
'params': {'tid': {'transfer_ownership': 'false'}}
|
||||
'ignore': None, # manually wrapped in
|
||||
},
|
||||
'bool ns3::TraceSourceAccessor::ConnectWithoutContext(ns3::ObjectBase * obj, ns3::CallbackBase const & cb) const [member function]': {
|
||||
'params': {'obj': {'transfer_ownership':'false'}}
|
||||
|
||||
@@ -22,7 +22,7 @@ else:
|
||||
os.environ['PYTHONPATH'] = LOCAL_PYBINDGEN_PATH
|
||||
|
||||
## https://launchpad.net/pybindgen/
|
||||
REQUIRED_PYBINDGEN_VERSION = (0, 9, 0, 598)
|
||||
REQUIRED_PYBINDGEN_VERSION = (0, 9, 0, 600)
|
||||
REQUIRED_PYGCCXML_VERSION = (0, 9, 5)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user