Compare commits
34
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a095a71482 | ||
|
|
cbf897fdbe | ||
|
|
45ac606619 | ||
|
|
30072da131 | ||
|
|
9a81b81adb | ||
|
|
466c0f8f40 | ||
|
|
0bf173475b | ||
|
|
aa3053fe96 | ||
|
|
7884ffb5d4 | ||
|
|
f3c32b923d | ||
|
|
0685d8fee7 | ||
|
|
3f54b67412 | ||
|
|
9471f525b8 | ||
|
|
9ac3cf9430 | ||
|
|
e60eeea998 | ||
|
|
7ab346ca90 | ||
|
|
b75126274e | ||
|
|
ccf76958f8 | ||
|
|
a7209f9860 | ||
|
|
a383915b83 | ||
|
|
a92535572f | ||
|
|
5671f2e891 | ||
|
|
01315c4345 | ||
|
|
3d88ff6fe0 | ||
|
|
b72f308025 | ||
|
|
3fc0d64c9d | ||
|
|
f5e59f07c5 | ||
|
|
6da063954d | ||
|
|
3b44587797 | ||
|
|
df69fc0b70 | ||
|
|
8890ca1e9d | ||
|
|
06f88683a8 | ||
|
|
0bd3edc730 | ||
|
|
a45d03d61e |
No files matched your search
+49
@@ -0,0 +1,49 @@
|
||||
*.pyc
|
||||
.waf*
|
||||
src/NDNabstraction
|
||||
build/
|
||||
doc/html/
|
||||
doc/latex/
|
||||
\.rej$
|
||||
\.orig$
|
||||
\.o$
|
||||
~$
|
||||
^build-dir
|
||||
^build
|
||||
^testpy-output
|
||||
^doc/html
|
||||
^doc/latex
|
||||
.lock-wscript
|
||||
doc/ns3-object.txt
|
||||
doc/introspected-doxygen.h
|
||||
.lock-waf_darwin_build
|
||||
.lock-waf_linux2_build
|
||||
.lock-waf_cygwin_build
|
||||
.lock-waf_freebsd7_build
|
||||
.lock-waf_freebsd8_build
|
||||
.lock-waf_freebsd9_build
|
||||
.waf
|
||||
^doc/introspected-doxygen\.h$
|
||||
.*\.py[co]$
|
||||
\.pcap$
|
||||
\.mob$
|
||||
\.routes$
|
||||
^doc/manual/build
|
||||
^doc/tutorial/build
|
||||
^doc/testing/build
|
||||
^doc/models/build
|
||||
^doc/models/source-temp
|
||||
^doc/manual/figures/.*eps
|
||||
^doc/manual/figures/.*pdf
|
||||
^doc/manual/figures/.*png
|
||||
^bindings/python/pybindgen/
|
||||
ms_print.*
|
||||
massif.*
|
||||
\.patch$
|
||||
\.diff$
|
||||
\.tr$
|
||||
\#[^\#/]+\#$
|
||||
.lock-wscript
|
||||
.lock-wafbuild
|
||||
*~
|
||||
\#*\#
|
||||
@@ -120,24 +120,22 @@ RoutingExperiment::RoutingExperiment ()
|
||||
std::string
|
||||
PrintReceivedPacket (Ptr<Socket> socket, Ptr<Packet> packet)
|
||||
{
|
||||
SocketAddressTag tag;
|
||||
bool found;
|
||||
found = packet->PeekPacketTag (tag);
|
||||
Ptr<const SocketAddressTag> tag = packet->PeekPacketTag<SocketAddressTag> ();
|
||||
std::ostringstream oss;
|
||||
|
||||
oss << Simulator::Now ().GetSeconds () << " " << socket->GetNode ()->GetId ();
|
||||
|
||||
if (found)
|
||||
{
|
||||
InetSocketAddress addr = InetSocketAddress::ConvertFrom (tag.GetAddress ());
|
||||
if (tag != 0)
|
||||
{
|
||||
InetSocketAddress addr = InetSocketAddress::ConvertFrom (tag->GetAddress ());
|
||||
oss << " received one packet from " << addr.GetIpv4 ();
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
oss << " received one packet!";
|
||||
}
|
||||
}
|
||||
return oss.str ();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
RoutingExperiment::ReceivePacket (Ptr<Socket> socket)
|
||||
@@ -148,7 +146,7 @@ RoutingExperiment::ReceivePacket (Ptr<Socket> socket)
|
||||
bytesTotal += packet->GetSize ();
|
||||
packetsReceived += 1;
|
||||
NS_LOG_UNCOND (PrintReceivedPacket (socket, packet));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
callback_classes = [
|
||||
['void', 'ns3::Ptr<ns3::Packet const>', 'ns3::Ipv4Header const&', 'ns3::Socket::SocketErrno', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
|
||||
['void', 'ns3::Ptr<ns3::Ipv4Route>', 'ns3::Ptr<ns3::Packet const>', 'ns3::Ipv4Header const&', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
|
||||
['void', 'ns3::WifiMacHeader const&', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
|
||||
['void', 'ns3::Ipv4Address', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
|
||||
['void', 'ns3::Ptr<ns3::ArpCache const>', 'ns3::Ipv4Address', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
|
||||
['void', 'ns3::Ptr<ns3::Socket>', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
|
||||
['void', 'ns3::Ptr<ns3::Socket>', 'unsigned int', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
|
||||
['void', 'ns3::Ptr<ns3::Socket>', 'ns3::Address const&', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
|
||||
['bool', 'ns3::Ptr<ns3::Socket>', 'ns3::Address const&', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
|
||||
['void', 'ns3::WifiMacHeader const&', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
|
||||
['void', 'ns3::Ipv4Address', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
|
||||
['void', 'ns3::Ptr<ns3::ArpCache const>', 'ns3::Ipv4Address', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
|
||||
['void', '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'],
|
||||
]
|
||||
@@ -120,20 +120,12 @@ def register_types(module):
|
||||
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
|
||||
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
|
||||
module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator [class]
|
||||
module.add_class('PacketTagIterator', import_from_module='ns.network')
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
|
||||
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
|
||||
module.add_class('PacketTagList', import_from_module='ns.network')
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
|
||||
module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Chunk', 'ns3::ObjectBase', 'ns3::DefaultDeleter<ns3::Chunk>'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simulator.h (module 'core'): ns3::Simulator [class]
|
||||
module.add_class('Simulator', destructor_visibility='private', import_from_module='ns.core')
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
|
||||
module.add_class('TagBuffer', import_from_module='ns.network')
|
||||
## timer.h (module 'core'): ns3::Timer [class]
|
||||
@@ -159,7 +151,7 @@ def register_types(module):
|
||||
## aodv-helper.h (module 'aodv'): ns3::AodvHelper [class]
|
||||
module.add_class('AodvHelper', parent=root_module['ns3::Ipv4RoutingHelper'])
|
||||
## chunk.h (module 'network'): ns3::Chunk [class]
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
## header.h (module 'network'): ns3::Header [class]
|
||||
module.add_class('Header', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
|
||||
## ipv4-header.h (module 'internet'): ns3::Ipv4Header [class]
|
||||
@@ -204,12 +196,8 @@ def register_types(module):
|
||||
module.add_enum('SocketErrno', ['ERROR_NOTERROR', 'ERROR_ISCONN', 'ERROR_NOTCONN', 'ERROR_MSGSIZE', 'ERROR_AGAIN', 'ERROR_SHUTDOWN', 'ERROR_OPNOTSUPP', 'ERROR_AFNOSUPPORT', 'ERROR_INVAL', 'ERROR_BADF', 'ERROR_NOROUTETOHOST', 'ERROR_NODEV', 'ERROR_ADDRNOTAVAIL', 'ERROR_ADDRINUSE', 'SOCKET_ERRNO_LAST'], outer_class=root_module['ns3::Socket'], import_from_module='ns.network')
|
||||
## socket.h (module 'network'): ns3::Socket::SocketType [enumeration]
|
||||
module.add_enum('SocketType', ['NS3_SOCK_STREAM', 'NS3_SOCK_SEQPACKET', 'NS3_SOCK_DGRAM', 'NS3_SOCK_RAW'], outer_class=root_module['ns3::Socket'], import_from_module='ns.network')
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag [class]
|
||||
module.add_class('SocketAddressTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag [class]
|
||||
module.add_class('SocketIpTtlTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag [class]
|
||||
module.add_class('SocketSetDontFragmentTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::Object'])
|
||||
## nstime.h (module 'core'): ns3::Time [class]
|
||||
module.add_class('Time', import_from_module='ns.core')
|
||||
## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
|
||||
@@ -306,6 +294,12 @@ def register_types(module):
|
||||
module.add_class('OutputStreamWrapper', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> >'])
|
||||
## packet.h (module 'network'): ns3::Packet [class]
|
||||
module.add_class('Packet', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag [class]
|
||||
module.add_class('SocketAddressTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag [class]
|
||||
module.add_class('SocketIpTtlTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag [class]
|
||||
module.add_class('SocketSetDontFragmentTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## nstime.h (module 'core'): ns3::TimeChecker [class]
|
||||
module.add_class('TimeChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
|
||||
## nstime.h (module 'core'): ns3::TimeValue [class]
|
||||
@@ -318,6 +312,8 @@ def register_types(module):
|
||||
module.add_class('AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
|
||||
## address.h (module 'network'): ns3::AddressValue [class]
|
||||
module.add_class('AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
|
||||
## ipv4-list-routing.h (module 'internet'): ns3::Ipv4ListRouting [class]
|
||||
module.add_class('Ipv4ListRouting', import_from_module='ns.internet', parent=root_module['ns3::Ipv4RoutingProtocol'])
|
||||
module.add_container('std::list< ns3::Ptr< ns3::Packet > >', 'ns3::Ptr< ns3::Packet >', container_type='list')
|
||||
module.add_container('std::map< unsigned int, unsigned int >', ('unsigned int', 'unsigned int'), container_type='map')
|
||||
|
||||
@@ -410,13 +406,9 @@ def register_methods(root_module):
|
||||
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_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
|
||||
register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
|
||||
register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
|
||||
register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
|
||||
register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
|
||||
register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
|
||||
register_Ns3Timer_methods(root_module, root_module['ns3::Timer'])
|
||||
register_Ns3TimerImpl_methods(root_module, root_module['ns3::TimerImpl'])
|
||||
@@ -444,9 +436,7 @@ def register_methods(root_module):
|
||||
register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
|
||||
register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >'])
|
||||
register_Ns3Socket_methods(root_module, root_module['ns3::Socket'])
|
||||
register_Ns3SocketAddressTag_methods(root_module, root_module['ns3::SocketAddressTag'])
|
||||
register_Ns3SocketIpTtlTag_methods(root_module, root_module['ns3::SocketIpTtlTag'])
|
||||
register_Ns3SocketSetDontFragmentTag_methods(root_module, root_module['ns3::SocketSetDontFragmentTag'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3Time_methods(root_module, root_module['ns3::Time'])
|
||||
register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
|
||||
register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
|
||||
@@ -488,12 +478,16 @@ def register_methods(root_module):
|
||||
register_Ns3ObjectFactoryValue_methods(root_module, root_module['ns3::ObjectFactoryValue'])
|
||||
register_Ns3OutputStreamWrapper_methods(root_module, root_module['ns3::OutputStreamWrapper'])
|
||||
register_Ns3Packet_methods(root_module, root_module['ns3::Packet'])
|
||||
register_Ns3SocketAddressTag_methods(root_module, root_module['ns3::SocketAddressTag'])
|
||||
register_Ns3SocketIpTtlTag_methods(root_module, root_module['ns3::SocketIpTtlTag'])
|
||||
register_Ns3SocketSetDontFragmentTag_methods(root_module, root_module['ns3::SocketSetDontFragmentTag'])
|
||||
register_Ns3TimeChecker_methods(root_module, root_module['ns3::TimeChecker'])
|
||||
register_Ns3TimeValue_methods(root_module, root_module['ns3::TimeValue'])
|
||||
register_Ns3TypeIdChecker_methods(root_module, root_module['ns3::TypeIdChecker'])
|
||||
register_Ns3TypeIdValue_methods(root_module, root_module['ns3::TypeIdValue'])
|
||||
register_Ns3AddressChecker_methods(root_module, root_module['ns3::AddressChecker'])
|
||||
register_Ns3AddressValue_methods(root_module, root_module['ns3::AddressValue'])
|
||||
register_Ns3Ipv4ListRouting_methods(root_module, root_module['ns3::Ipv4ListRouting'])
|
||||
register_Ns3AodvDuplicatePacketDetection_methods(root_module, root_module['ns3::aodv::DuplicatePacketDetection'])
|
||||
register_Ns3AodvIdCache_methods(root_module, root_module['ns3::aodv::IdCache'])
|
||||
register_Ns3AodvNeighbors_methods(root_module, root_module['ns3::aodv::Neighbors'])
|
||||
@@ -511,8 +505,8 @@ def register_methods(root_module):
|
||||
return
|
||||
|
||||
def register_Ns3Address_methods(root_module, cls):
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_binary_comparison_operator('<')
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_comparison_operator('==')
|
||||
## address.h (module 'network'): ns3::Address::Address() [constructor]
|
||||
@@ -755,6 +749,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Next',
|
||||
'void',
|
||||
[param('uint32_t', 'delta')])
|
||||
## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function]
|
||||
cls.add_method('PeekU8',
|
||||
'uint8_t',
|
||||
[])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
|
||||
cls.add_method('Prev',
|
||||
'void',
|
||||
@@ -767,6 +765,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function]
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
|
||||
cls.add_method('ReadLsbtohU16',
|
||||
'uint16_t',
|
||||
@@ -1083,8 +1085,8 @@ def register_Ns3IntToType__6_methods(root_module, cls):
|
||||
return
|
||||
|
||||
def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_binary_comparison_operator('<')
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_comparison_operator('==')
|
||||
## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(ns3::Ipv4Address const & arg0) [copy constructor]
|
||||
@@ -1110,9 +1112,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
@@ -1352,8 +1354,8 @@ def register_Ns3Ipv4RoutingHelper_methods(root_module, cls):
|
||||
return
|
||||
|
||||
def register_Ns3Ipv6Address_methods(root_module, cls):
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_binary_comparison_operator('<')
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_comparison_operator('==')
|
||||
## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address() [constructor]
|
||||
@@ -1638,8 +1640,8 @@ def register_Ns3Ipv6Prefix_methods(root_module, cls):
|
||||
return
|
||||
|
||||
def register_Ns3Mac48Address_methods(root_module, cls):
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_binary_comparison_operator('<')
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_comparison_operator('==')
|
||||
## mac48-address.h (module 'network'): ns3::Mac48Address::Mac48Address(ns3::Mac48Address const & arg0) [copy constructor]
|
||||
@@ -1771,6 +1773,21 @@ def register_Ns3NodeContainer_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::NodeContainer other) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::NodeContainer', 'other')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::Ptr<ns3::Node> node) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::Ptr< ns3::Node >', 'node')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(std::string nodeName) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('std::string', 'nodeName')],
|
||||
custom_name='__call__')
|
||||
return
|
||||
|
||||
def register_Ns3ObjectBase_methods(root_module, cls):
|
||||
@@ -1995,78 +2012,16 @@ def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIterator_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
|
||||
## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
|
||||
cls.add_method('HasNext',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::PacketTagIterator::Item',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
|
||||
## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('GetTag',
|
||||
'void',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagList_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
|
||||
def register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
|
||||
cls.add_method('Add',
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter< ns3::Chunk > > const &', 'o')])
|
||||
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::Cleanup() [member function]
|
||||
cls.add_method('Cleanup',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
|
||||
cls.add_method('Head',
|
||||
'ns3::PacketTagList::TagData const *',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('Peek',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
|
||||
cls.add_method('Remove',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
|
||||
cls.add_method('RemoveAll',
|
||||
'void',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagListTagData_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
|
||||
cls.add_instance_attribute('count', 'uint32_t', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
|
||||
cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
|
||||
cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
|
||||
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
|
||||
@@ -2129,11 +2084,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'bool',
|
||||
[],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::Time',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Now() [member function]
|
||||
cls.add_method('Now',
|
||||
'ns3::Time',
|
||||
@@ -2144,11 +2094,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'void',
|
||||
[param('ns3::EventId const &', 'id')],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::RunOneEvent() [member function]
|
||||
cls.add_method('RunOneEvent',
|
||||
'void',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::SetImplementation(ns3::Ptr<ns3::SimulatorImpl> impl) [member function]
|
||||
cls.add_method('SetImplementation',
|
||||
'void',
|
||||
@@ -2171,38 +2116,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TagBuffer_methods(root_module, cls):
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
|
||||
@@ -2351,8 +2264,8 @@ def register_Ns3TimerImpl_methods(root_module, cls):
|
||||
return
|
||||
|
||||
def register_Ns3TypeId_methods(root_module, cls):
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_binary_comparison_operator('<')
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_comparison_operator('==')
|
||||
## type-id.h (module 'core'): ns3::TypeId::TypeId(char const * name) [constructor]
|
||||
@@ -2532,8 +2445,6 @@ def register_Ns3Empty_methods(root_module, cls):
|
||||
return
|
||||
|
||||
def register_Ns3Int64x64_t_methods(root_module, cls):
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long long unsigned int const', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long unsigned int const', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('unsigned int const', 'right'))
|
||||
@@ -2585,7 +2496,9 @@ def register_Ns3Int64x64_t_methods(root_module, cls):
|
||||
cls.add_binary_numeric_operator('/', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_binary_comparison_operator('<')
|
||||
cls.add_binary_comparison_operator('>')
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_inplace_numeric_operator('*=', param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('-=', param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('/=', param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_output_stream_operator()
|
||||
@@ -3416,155 +3329,46 @@ def register_Ns3Socket_methods(root_module, cls):
|
||||
visibility='protected')
|
||||
return
|
||||
|
||||
def register_Ns3SocketAddressTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag(ns3::SocketAddressTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketAddressTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag() [constructor]
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::Address ns3::SocketAddressTag::GetAddress() const [member function]
|
||||
cls.add_method('GetAddress',
|
||||
'ns3::Address',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketAddressTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketAddressTag::GetSerializedSize() const [member function]
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketAddressTag::GetTypeId() [member function]
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Print(std::ostream & os) const [member function]
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::SetAddress(ns3::Address addr) [member function]
|
||||
cls.add_method('SetAddress',
|
||||
'void',
|
||||
[param('ns3::Address', 'addr')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketIpTtlTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag(ns3::SocketIpTtlTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketIpTtlTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketIpTtlTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketIpTtlTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint8_t ns3::SocketIpTtlTag::GetTtl() const [member function]
|
||||
cls.add_method('GetTtl',
|
||||
'uint8_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketIpTtlTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::SetTtl(uint8_t ttl) [member function]
|
||||
cls.add_method('SetTtl',
|
||||
'void',
|
||||
[param('uint8_t', 'ttl')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketSetDontFragmentTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag(ns3::SocketSetDontFragmentTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketSetDontFragmentTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Disable() [member function]
|
||||
cls.add_method('Disable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Enable() [member function]
|
||||
cls.add_method('Enable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketSetDontFragmentTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketSetDontFragmentTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketSetDontFragmentTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): bool ns3::SocketSetDontFragmentTag::IsEnabled() const [member function]
|
||||
cls.add_method('IsEnabled',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Time_methods(root_module, cls):
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_comparison_operator('<')
|
||||
cls.add_binary_comparison_operator('>')
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::Time const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('-=', param('ns3::Time const &', 'right'))
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_comparison_operator('<=')
|
||||
@@ -5936,11 +5740,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('AddHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Ptr<const ns3::Tag> tag) [member function]
|
||||
cls.add_method('AddPacketTag',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
[param('ns3::Ptr< ns3::Tag const >', 'tag')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
|
||||
cls.add_method('AddPaddingAtEnd',
|
||||
'void',
|
||||
@@ -5999,11 +5802,6 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::NixVector >',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
|
||||
cls.add_method('GetPacketTagIterator',
|
||||
'ns3::PacketTagIterator',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
@@ -6029,10 +5827,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::PeekPacketTag(ns3::TypeId tagType) const [member function]
|
||||
cls.add_method('PeekPacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('PeekTrailer',
|
||||
@@ -6073,10 +5871,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('RemoveHeader',
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')])
|
||||
## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::RemovePacketTag(ns3::TypeId tagType) [member function]
|
||||
cls.add_method('RemovePacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')])
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('RemoveTrailer',
|
||||
'uint32_t',
|
||||
@@ -6092,6 +5890,148 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
[param('ns3::Ptr< ns3::NixVector >', 'arg0')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketAddressTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag(ns3::SocketAddressTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketAddressTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::Address ns3::SocketAddressTag::GetAddress() const [member function]
|
||||
cls.add_method('GetAddress',
|
||||
'ns3::Address',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketAddressTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketAddressTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketAddressTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::SetAddress(ns3::Address addr) [member function]
|
||||
cls.add_method('SetAddress',
|
||||
'void',
|
||||
[param('ns3::Address', 'addr')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketIpTtlTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag(ns3::SocketIpTtlTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketIpTtlTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketIpTtlTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketIpTtlTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint8_t ns3::SocketIpTtlTag::GetTtl() const [member function]
|
||||
cls.add_method('GetTtl',
|
||||
'uint8_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketIpTtlTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::SetTtl(uint8_t ttl) [member function]
|
||||
cls.add_method('SetTtl',
|
||||
'void',
|
||||
[param('uint8_t', 'ttl')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketSetDontFragmentTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag(ns3::SocketSetDontFragmentTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketSetDontFragmentTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Disable() [member function]
|
||||
cls.add_method('Disable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Enable() [member function]
|
||||
cls.add_method('Enable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketSetDontFragmentTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketSetDontFragmentTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketSetDontFragmentTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): bool ns3::SocketSetDontFragmentTag::IsEnabled() const [member function]
|
||||
cls.add_method('IsEnabled',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TimeChecker_methods(root_module, cls):
|
||||
## nstime.h (module 'core'): ns3::TimeChecker::TimeChecker() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -6212,6 +6152,83 @@ def register_Ns3AddressValue_methods(root_module, cls):
|
||||
[param('ns3::Address const &', 'value')])
|
||||
return
|
||||
|
||||
def register_Ns3Ipv4ListRouting_methods(root_module, cls):
|
||||
## ipv4-list-routing.h (module 'internet'): ns3::Ipv4ListRouting::Ipv4ListRouting(ns3::Ipv4ListRouting const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Ipv4ListRouting const &', 'arg0')])
|
||||
## ipv4-list-routing.h (module 'internet'): ns3::Ipv4ListRouting::Ipv4ListRouting() [constructor]
|
||||
cls.add_constructor([])
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::AddRoutingProtocol(ns3::Ptr<ns3::Ipv4RoutingProtocol> routingProtocol, int16_t priority) [member function]
|
||||
cls.add_method('AddRoutingProtocol',
|
||||
'void',
|
||||
[param('ns3::Ptr< ns3::Ipv4RoutingProtocol >', 'routingProtocol'), param('int16_t', 'priority')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): uint32_t ns3::Ipv4ListRouting::GetNRoutingProtocols() const [member function]
|
||||
cls.add_method('GetNRoutingProtocols',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::Ipv4ListRouting::GetRoutingProtocol(uint32_t index, int16_t & priority) const [member function]
|
||||
cls.add_method('GetRoutingProtocol',
|
||||
'ns3::Ptr< ns3::Ipv4RoutingProtocol >',
|
||||
[param('uint32_t', 'index'), param('int16_t &', 'priority', direction=2)],
|
||||
is_const=True, is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): static ns3::TypeId ns3::Ipv4ListRouting::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::NotifyAddAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
|
||||
cls.add_method('NotifyAddAddress',
|
||||
'void',
|
||||
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::NotifyInterfaceDown(uint32_t interface) [member function]
|
||||
cls.add_method('NotifyInterfaceDown',
|
||||
'void',
|
||||
[param('uint32_t', 'interface')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::NotifyInterfaceUp(uint32_t interface) [member function]
|
||||
cls.add_method('NotifyInterfaceUp',
|
||||
'void',
|
||||
[param('uint32_t', 'interface')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::NotifyRemoveAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
|
||||
cls.add_method('NotifyRemoveAddress',
|
||||
'void',
|
||||
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::PrintRoutingTable(ns3::Ptr<ns3::OutputStreamWrapper> stream) const [member function]
|
||||
cls.add_method('PrintRoutingTable',
|
||||
'void',
|
||||
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream')],
|
||||
is_const=True, is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): bool ns3::Ipv4ListRouting::RouteInput(ns3::Ptr<ns3::Packet const> p, ns3::Ipv4Header const & header, ns3::Ptr<const ns3::NetDevice> idev, ns3::Callback<void, ns3::Ptr<ns3::Ipv4Route>, ns3::Ptr<ns3::Packet const>, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb, ns3::Callback<void,ns3::Ptr<ns3::Ipv4MulticastRoute>,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback<void,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback<void, ns3::Ptr<ns3::Packet const>, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function]
|
||||
cls.add_method('RouteInput',
|
||||
'bool',
|
||||
[param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): ns3::Ptr<ns3::Ipv4Route> ns3::Ipv4ListRouting::RouteOutput(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Header const & header, ns3::Ptr<ns3::NetDevice> oif, ns3::Socket::SocketErrno & sockerr) [member function]
|
||||
cls.add_method('RouteOutput',
|
||||
'ns3::Ptr< ns3::Ipv4Route >',
|
||||
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice >', 'oif'), param('ns3::Socket::SocketErrno &', 'sockerr')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::SetIpv4(ns3::Ptr<ns3::Ipv4> ipv4) [member function]
|
||||
cls.add_method('SetIpv4',
|
||||
'void',
|
||||
[param('ns3::Ptr< ns3::Ipv4 >', 'ipv4')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::DoDispose() [member function]
|
||||
cls.add_method('DoDispose',
|
||||
'void',
|
||||
[],
|
||||
visibility='protected', is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::DoStart() [member function]
|
||||
cls.add_method('DoStart',
|
||||
'void',
|
||||
[],
|
||||
visibility='protected', is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3AodvDuplicatePacketDetection_methods(root_module, cls):
|
||||
## aodv-dpd.h (module 'aodv'): ns3::aodv::DuplicatePacketDetection::DuplicatePacketDetection(ns3::aodv::DuplicatePacketDetection const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::aodv::DuplicatePacketDetection const &', 'arg0')])
|
||||
|
||||
@@ -120,20 +120,12 @@ def register_types(module):
|
||||
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
|
||||
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
|
||||
module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator [class]
|
||||
module.add_class('PacketTagIterator', import_from_module='ns.network')
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
|
||||
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
|
||||
module.add_class('PacketTagList', import_from_module='ns.network')
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
|
||||
module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Chunk', 'ns3::ObjectBase', 'ns3::DefaultDeleter<ns3::Chunk>'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simulator.h (module 'core'): ns3::Simulator [class]
|
||||
module.add_class('Simulator', destructor_visibility='private', import_from_module='ns.core')
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
|
||||
module.add_class('TagBuffer', import_from_module='ns.network')
|
||||
## timer.h (module 'core'): ns3::Timer [class]
|
||||
@@ -159,7 +151,7 @@ def register_types(module):
|
||||
## aodv-helper.h (module 'aodv'): ns3::AodvHelper [class]
|
||||
module.add_class('AodvHelper', parent=root_module['ns3::Ipv4RoutingHelper'])
|
||||
## chunk.h (module 'network'): ns3::Chunk [class]
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
## header.h (module 'network'): ns3::Header [class]
|
||||
module.add_class('Header', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
|
||||
## ipv4-header.h (module 'internet'): ns3::Ipv4Header [class]
|
||||
@@ -204,12 +196,8 @@ def register_types(module):
|
||||
module.add_enum('SocketErrno', ['ERROR_NOTERROR', 'ERROR_ISCONN', 'ERROR_NOTCONN', 'ERROR_MSGSIZE', 'ERROR_AGAIN', 'ERROR_SHUTDOWN', 'ERROR_OPNOTSUPP', 'ERROR_AFNOSUPPORT', 'ERROR_INVAL', 'ERROR_BADF', 'ERROR_NOROUTETOHOST', 'ERROR_NODEV', 'ERROR_ADDRNOTAVAIL', 'ERROR_ADDRINUSE', 'SOCKET_ERRNO_LAST'], outer_class=root_module['ns3::Socket'], import_from_module='ns.network')
|
||||
## socket.h (module 'network'): ns3::Socket::SocketType [enumeration]
|
||||
module.add_enum('SocketType', ['NS3_SOCK_STREAM', 'NS3_SOCK_SEQPACKET', 'NS3_SOCK_DGRAM', 'NS3_SOCK_RAW'], outer_class=root_module['ns3::Socket'], import_from_module='ns.network')
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag [class]
|
||||
module.add_class('SocketAddressTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag [class]
|
||||
module.add_class('SocketIpTtlTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag [class]
|
||||
module.add_class('SocketSetDontFragmentTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::Object'])
|
||||
## nstime.h (module 'core'): ns3::Time [class]
|
||||
module.add_class('Time', import_from_module='ns.core')
|
||||
## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
|
||||
@@ -306,6 +294,12 @@ def register_types(module):
|
||||
module.add_class('OutputStreamWrapper', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> >'])
|
||||
## packet.h (module 'network'): ns3::Packet [class]
|
||||
module.add_class('Packet', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag [class]
|
||||
module.add_class('SocketAddressTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag [class]
|
||||
module.add_class('SocketIpTtlTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag [class]
|
||||
module.add_class('SocketSetDontFragmentTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## nstime.h (module 'core'): ns3::TimeChecker [class]
|
||||
module.add_class('TimeChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
|
||||
## nstime.h (module 'core'): ns3::TimeValue [class]
|
||||
@@ -318,6 +312,8 @@ def register_types(module):
|
||||
module.add_class('AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
|
||||
## address.h (module 'network'): ns3::AddressValue [class]
|
||||
module.add_class('AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
|
||||
## ipv4-list-routing.h (module 'internet'): ns3::Ipv4ListRouting [class]
|
||||
module.add_class('Ipv4ListRouting', import_from_module='ns.internet', parent=root_module['ns3::Ipv4RoutingProtocol'])
|
||||
module.add_container('std::list< ns3::Ptr< ns3::Packet > >', 'ns3::Ptr< ns3::Packet >', container_type='list')
|
||||
module.add_container('std::map< unsigned int, unsigned int >', ('unsigned int', 'unsigned int'), container_type='map')
|
||||
|
||||
@@ -410,13 +406,9 @@ def register_methods(root_module):
|
||||
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_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
|
||||
register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
|
||||
register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
|
||||
register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
|
||||
register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
|
||||
register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
|
||||
register_Ns3Timer_methods(root_module, root_module['ns3::Timer'])
|
||||
register_Ns3TimerImpl_methods(root_module, root_module['ns3::TimerImpl'])
|
||||
@@ -444,9 +436,7 @@ def register_methods(root_module):
|
||||
register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
|
||||
register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >'])
|
||||
register_Ns3Socket_methods(root_module, root_module['ns3::Socket'])
|
||||
register_Ns3SocketAddressTag_methods(root_module, root_module['ns3::SocketAddressTag'])
|
||||
register_Ns3SocketIpTtlTag_methods(root_module, root_module['ns3::SocketIpTtlTag'])
|
||||
register_Ns3SocketSetDontFragmentTag_methods(root_module, root_module['ns3::SocketSetDontFragmentTag'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3Time_methods(root_module, root_module['ns3::Time'])
|
||||
register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
|
||||
register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
|
||||
@@ -488,12 +478,16 @@ def register_methods(root_module):
|
||||
register_Ns3ObjectFactoryValue_methods(root_module, root_module['ns3::ObjectFactoryValue'])
|
||||
register_Ns3OutputStreamWrapper_methods(root_module, root_module['ns3::OutputStreamWrapper'])
|
||||
register_Ns3Packet_methods(root_module, root_module['ns3::Packet'])
|
||||
register_Ns3SocketAddressTag_methods(root_module, root_module['ns3::SocketAddressTag'])
|
||||
register_Ns3SocketIpTtlTag_methods(root_module, root_module['ns3::SocketIpTtlTag'])
|
||||
register_Ns3SocketSetDontFragmentTag_methods(root_module, root_module['ns3::SocketSetDontFragmentTag'])
|
||||
register_Ns3TimeChecker_methods(root_module, root_module['ns3::TimeChecker'])
|
||||
register_Ns3TimeValue_methods(root_module, root_module['ns3::TimeValue'])
|
||||
register_Ns3TypeIdChecker_methods(root_module, root_module['ns3::TypeIdChecker'])
|
||||
register_Ns3TypeIdValue_methods(root_module, root_module['ns3::TypeIdValue'])
|
||||
register_Ns3AddressChecker_methods(root_module, root_module['ns3::AddressChecker'])
|
||||
register_Ns3AddressValue_methods(root_module, root_module['ns3::AddressValue'])
|
||||
register_Ns3Ipv4ListRouting_methods(root_module, root_module['ns3::Ipv4ListRouting'])
|
||||
register_Ns3AodvDuplicatePacketDetection_methods(root_module, root_module['ns3::aodv::DuplicatePacketDetection'])
|
||||
register_Ns3AodvIdCache_methods(root_module, root_module['ns3::aodv::IdCache'])
|
||||
register_Ns3AodvNeighbors_methods(root_module, root_module['ns3::aodv::Neighbors'])
|
||||
@@ -511,8 +505,8 @@ def register_methods(root_module):
|
||||
return
|
||||
|
||||
def register_Ns3Address_methods(root_module, cls):
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_binary_comparison_operator('<')
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_comparison_operator('==')
|
||||
## address.h (module 'network'): ns3::Address::Address() [constructor]
|
||||
@@ -755,6 +749,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Next',
|
||||
'void',
|
||||
[param('uint32_t', 'delta')])
|
||||
## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function]
|
||||
cls.add_method('PeekU8',
|
||||
'uint8_t',
|
||||
[])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
|
||||
cls.add_method('Prev',
|
||||
'void',
|
||||
@@ -767,6 +765,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function]
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
|
||||
cls.add_method('ReadLsbtohU16',
|
||||
'uint16_t',
|
||||
@@ -1083,8 +1085,8 @@ def register_Ns3IntToType__6_methods(root_module, cls):
|
||||
return
|
||||
|
||||
def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_binary_comparison_operator('<')
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_comparison_operator('==')
|
||||
## ipv4-address.h (module 'network'): ns3::Ipv4Address::Ipv4Address(ns3::Ipv4Address const & arg0) [copy constructor]
|
||||
@@ -1110,9 +1112,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
@@ -1352,8 +1354,8 @@ def register_Ns3Ipv4RoutingHelper_methods(root_module, cls):
|
||||
return
|
||||
|
||||
def register_Ns3Ipv6Address_methods(root_module, cls):
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_binary_comparison_operator('<')
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_comparison_operator('==')
|
||||
## ipv6-address.h (module 'network'): ns3::Ipv6Address::Ipv6Address() [constructor]
|
||||
@@ -1638,8 +1640,8 @@ def register_Ns3Ipv6Prefix_methods(root_module, cls):
|
||||
return
|
||||
|
||||
def register_Ns3Mac48Address_methods(root_module, cls):
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_binary_comparison_operator('<')
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_comparison_operator('==')
|
||||
## mac48-address.h (module 'network'): ns3::Mac48Address::Mac48Address(ns3::Mac48Address const & arg0) [copy constructor]
|
||||
@@ -1771,6 +1773,21 @@ def register_Ns3NodeContainer_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::NodeContainer other) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::NodeContainer', 'other')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::Ptr<ns3::Node> node) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::Ptr< ns3::Node >', 'node')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(std::string nodeName) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('std::string', 'nodeName')],
|
||||
custom_name='__call__')
|
||||
return
|
||||
|
||||
def register_Ns3ObjectBase_methods(root_module, cls):
|
||||
@@ -1995,78 +2012,16 @@ def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIterator_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
|
||||
## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
|
||||
cls.add_method('HasNext',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::PacketTagIterator::Item',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
|
||||
## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('GetTag',
|
||||
'void',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagList_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
|
||||
def register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
|
||||
cls.add_method('Add',
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter< ns3::Chunk > > const &', 'o')])
|
||||
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::Cleanup() [member function]
|
||||
cls.add_method('Cleanup',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
|
||||
cls.add_method('Head',
|
||||
'ns3::PacketTagList::TagData const *',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('Peek',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
|
||||
cls.add_method('Remove',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
|
||||
cls.add_method('RemoveAll',
|
||||
'void',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagListTagData_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
|
||||
cls.add_instance_attribute('count', 'uint32_t', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
|
||||
cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
|
||||
cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
|
||||
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
|
||||
@@ -2129,11 +2084,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'bool',
|
||||
[],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::Time',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Now() [member function]
|
||||
cls.add_method('Now',
|
||||
'ns3::Time',
|
||||
@@ -2144,11 +2094,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'void',
|
||||
[param('ns3::EventId const &', 'id')],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::RunOneEvent() [member function]
|
||||
cls.add_method('RunOneEvent',
|
||||
'void',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::SetImplementation(ns3::Ptr<ns3::SimulatorImpl> impl) [member function]
|
||||
cls.add_method('SetImplementation',
|
||||
'void',
|
||||
@@ -2171,38 +2116,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TagBuffer_methods(root_module, cls):
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
|
||||
@@ -2351,8 +2264,8 @@ def register_Ns3TimerImpl_methods(root_module, cls):
|
||||
return
|
||||
|
||||
def register_Ns3TypeId_methods(root_module, cls):
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_binary_comparison_operator('<')
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_comparison_operator('==')
|
||||
## type-id.h (module 'core'): ns3::TypeId::TypeId(char const * name) [constructor]
|
||||
@@ -2532,8 +2445,6 @@ def register_Ns3Empty_methods(root_module, cls):
|
||||
return
|
||||
|
||||
def register_Ns3Int64x64_t_methods(root_module, cls):
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long long unsigned int const', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long unsigned int const', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('unsigned int const', 'right'))
|
||||
@@ -2585,7 +2496,9 @@ def register_Ns3Int64x64_t_methods(root_module, cls):
|
||||
cls.add_binary_numeric_operator('/', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_binary_comparison_operator('<')
|
||||
cls.add_binary_comparison_operator('>')
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_inplace_numeric_operator('*=', param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('-=', param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('/=', param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_output_stream_operator()
|
||||
@@ -3416,155 +3329,46 @@ def register_Ns3Socket_methods(root_module, cls):
|
||||
visibility='protected')
|
||||
return
|
||||
|
||||
def register_Ns3SocketAddressTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag(ns3::SocketAddressTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketAddressTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag() [constructor]
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::Address ns3::SocketAddressTag::GetAddress() const [member function]
|
||||
cls.add_method('GetAddress',
|
||||
'ns3::Address',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketAddressTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketAddressTag::GetSerializedSize() const [member function]
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketAddressTag::GetTypeId() [member function]
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Print(std::ostream & os) const [member function]
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::SetAddress(ns3::Address addr) [member function]
|
||||
cls.add_method('SetAddress',
|
||||
'void',
|
||||
[param('ns3::Address', 'addr')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketIpTtlTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag(ns3::SocketIpTtlTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketIpTtlTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketIpTtlTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketIpTtlTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint8_t ns3::SocketIpTtlTag::GetTtl() const [member function]
|
||||
cls.add_method('GetTtl',
|
||||
'uint8_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketIpTtlTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::SetTtl(uint8_t ttl) [member function]
|
||||
cls.add_method('SetTtl',
|
||||
'void',
|
||||
[param('uint8_t', 'ttl')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketSetDontFragmentTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag(ns3::SocketSetDontFragmentTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketSetDontFragmentTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Disable() [member function]
|
||||
cls.add_method('Disable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Enable() [member function]
|
||||
cls.add_method('Enable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketSetDontFragmentTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketSetDontFragmentTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketSetDontFragmentTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): bool ns3::SocketSetDontFragmentTag::IsEnabled() const [member function]
|
||||
cls.add_method('IsEnabled',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Time_methods(root_module, cls):
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_comparison_operator('<')
|
||||
cls.add_binary_comparison_operator('>')
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::Time const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('-=', param('ns3::Time const &', 'right'))
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_comparison_operator('<=')
|
||||
@@ -5936,11 +5740,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('AddHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Ptr<const ns3::Tag> tag) [member function]
|
||||
cls.add_method('AddPacketTag',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
[param('ns3::Ptr< ns3::Tag const >', 'tag')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
|
||||
cls.add_method('AddPaddingAtEnd',
|
||||
'void',
|
||||
@@ -5999,11 +5802,6 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::NixVector >',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
|
||||
cls.add_method('GetPacketTagIterator',
|
||||
'ns3::PacketTagIterator',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
@@ -6029,10 +5827,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::PeekPacketTag(ns3::TypeId tagType) const [member function]
|
||||
cls.add_method('PeekPacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('PeekTrailer',
|
||||
@@ -6073,10 +5871,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('RemoveHeader',
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')])
|
||||
## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::RemovePacketTag(ns3::TypeId tagType) [member function]
|
||||
cls.add_method('RemovePacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')])
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('RemoveTrailer',
|
||||
'uint32_t',
|
||||
@@ -6092,6 +5890,148 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
[param('ns3::Ptr< ns3::NixVector >', 'arg0')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketAddressTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag(ns3::SocketAddressTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketAddressTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::Address ns3::SocketAddressTag::GetAddress() const [member function]
|
||||
cls.add_method('GetAddress',
|
||||
'ns3::Address',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketAddressTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketAddressTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketAddressTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::SetAddress(ns3::Address addr) [member function]
|
||||
cls.add_method('SetAddress',
|
||||
'void',
|
||||
[param('ns3::Address', 'addr')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketIpTtlTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag(ns3::SocketIpTtlTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketIpTtlTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketIpTtlTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketIpTtlTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint8_t ns3::SocketIpTtlTag::GetTtl() const [member function]
|
||||
cls.add_method('GetTtl',
|
||||
'uint8_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketIpTtlTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::SetTtl(uint8_t ttl) [member function]
|
||||
cls.add_method('SetTtl',
|
||||
'void',
|
||||
[param('uint8_t', 'ttl')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketSetDontFragmentTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag(ns3::SocketSetDontFragmentTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketSetDontFragmentTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Disable() [member function]
|
||||
cls.add_method('Disable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Enable() [member function]
|
||||
cls.add_method('Enable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketSetDontFragmentTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketSetDontFragmentTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketSetDontFragmentTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): bool ns3::SocketSetDontFragmentTag::IsEnabled() const [member function]
|
||||
cls.add_method('IsEnabled',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TimeChecker_methods(root_module, cls):
|
||||
## nstime.h (module 'core'): ns3::TimeChecker::TimeChecker() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -6212,6 +6152,83 @@ def register_Ns3AddressValue_methods(root_module, cls):
|
||||
[param('ns3::Address const &', 'value')])
|
||||
return
|
||||
|
||||
def register_Ns3Ipv4ListRouting_methods(root_module, cls):
|
||||
## ipv4-list-routing.h (module 'internet'): ns3::Ipv4ListRouting::Ipv4ListRouting(ns3::Ipv4ListRouting const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Ipv4ListRouting const &', 'arg0')])
|
||||
## ipv4-list-routing.h (module 'internet'): ns3::Ipv4ListRouting::Ipv4ListRouting() [constructor]
|
||||
cls.add_constructor([])
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::AddRoutingProtocol(ns3::Ptr<ns3::Ipv4RoutingProtocol> routingProtocol, int16_t priority) [member function]
|
||||
cls.add_method('AddRoutingProtocol',
|
||||
'void',
|
||||
[param('ns3::Ptr< ns3::Ipv4RoutingProtocol >', 'routingProtocol'), param('int16_t', 'priority')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): uint32_t ns3::Ipv4ListRouting::GetNRoutingProtocols() const [member function]
|
||||
cls.add_method('GetNRoutingProtocols',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::Ipv4ListRouting::GetRoutingProtocol(uint32_t index, int16_t & priority) const [member function]
|
||||
cls.add_method('GetRoutingProtocol',
|
||||
'ns3::Ptr< ns3::Ipv4RoutingProtocol >',
|
||||
[param('uint32_t', 'index'), param('int16_t &', 'priority', direction=2)],
|
||||
is_const=True, is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): static ns3::TypeId ns3::Ipv4ListRouting::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::NotifyAddAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
|
||||
cls.add_method('NotifyAddAddress',
|
||||
'void',
|
||||
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::NotifyInterfaceDown(uint32_t interface) [member function]
|
||||
cls.add_method('NotifyInterfaceDown',
|
||||
'void',
|
||||
[param('uint32_t', 'interface')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::NotifyInterfaceUp(uint32_t interface) [member function]
|
||||
cls.add_method('NotifyInterfaceUp',
|
||||
'void',
|
||||
[param('uint32_t', 'interface')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::NotifyRemoveAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
|
||||
cls.add_method('NotifyRemoveAddress',
|
||||
'void',
|
||||
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::PrintRoutingTable(ns3::Ptr<ns3::OutputStreamWrapper> stream) const [member function]
|
||||
cls.add_method('PrintRoutingTable',
|
||||
'void',
|
||||
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream')],
|
||||
is_const=True, is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): bool ns3::Ipv4ListRouting::RouteInput(ns3::Ptr<ns3::Packet const> p, ns3::Ipv4Header const & header, ns3::Ptr<const ns3::NetDevice> idev, ns3::Callback<void, ns3::Ptr<ns3::Ipv4Route>, ns3::Ptr<ns3::Packet const>, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb, ns3::Callback<void,ns3::Ptr<ns3::Ipv4MulticastRoute>,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback<void,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback<void, ns3::Ptr<ns3::Packet const>, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function]
|
||||
cls.add_method('RouteInput',
|
||||
'bool',
|
||||
[param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): ns3::Ptr<ns3::Ipv4Route> ns3::Ipv4ListRouting::RouteOutput(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Header const & header, ns3::Ptr<ns3::NetDevice> oif, ns3::Socket::SocketErrno & sockerr) [member function]
|
||||
cls.add_method('RouteOutput',
|
||||
'ns3::Ptr< ns3::Ipv4Route >',
|
||||
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice >', 'oif'), param('ns3::Socket::SocketErrno &', 'sockerr')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::SetIpv4(ns3::Ptr<ns3::Ipv4> ipv4) [member function]
|
||||
cls.add_method('SetIpv4',
|
||||
'void',
|
||||
[param('ns3::Ptr< ns3::Ipv4 >', 'ipv4')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::DoDispose() [member function]
|
||||
cls.add_method('DoDispose',
|
||||
'void',
|
||||
[],
|
||||
visibility='protected', is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::DoStart() [member function]
|
||||
cls.add_method('DoStart',
|
||||
'void',
|
||||
[],
|
||||
visibility='protected', is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3AodvDuplicatePacketDetection_methods(root_module, cls):
|
||||
## aodv-dpd.h (module 'aodv'): ns3::aodv::DuplicatePacketDetection::DuplicatePacketDetection(ns3::aodv::DuplicatePacketDetection const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::aodv::DuplicatePacketDetection const &', 'arg0')])
|
||||
|
||||
@@ -352,9 +352,9 @@ RoutingProtocol::RouteOutput (Ptr<Packet> p, const Ipv4Header &header,
|
||||
// Actual route request will be deferred until packet will be fully formed,
|
||||
// routed to loopback, received from loopback and passed to RouteInput (see below)
|
||||
uint32_t iif = (oif ? m_ipv4->GetInterfaceForDevice (oif) : -1);
|
||||
DeferredRouteOutputTag tag (iif);
|
||||
if (!p->PeekPacketTag (tag))
|
||||
if (p->PeekPacketTag<DeferredRouteOutputTag> () == 0)
|
||||
{
|
||||
Ptr<DeferredRouteOutputTag> tag = CreateObject<DeferredRouteOutputTag> (iif);
|
||||
p->AddPacketTag (tag);
|
||||
}
|
||||
return LoopbackRoute (header, oif);
|
||||
@@ -405,8 +405,7 @@ RoutingProtocol::RouteInput (Ptr<const Packet> p, const Ipv4Header &header,
|
||||
// Deferred route request
|
||||
if (idev == m_lo)
|
||||
{
|
||||
DeferredRouteOutputTag tag;
|
||||
if (p->PeekPacketTag (tag))
|
||||
if (p->PeekPacketTag<DeferredRouteOutputTag> () != 0)
|
||||
{
|
||||
DeferredRouteOutput (p, header, ucb, ecb);
|
||||
return true;
|
||||
@@ -1594,11 +1593,11 @@ RoutingProtocol::SendPacketFromQueue (Ipv4Address dst, Ptr<Ipv4Route> route)
|
||||
QueueEntry queueEntry;
|
||||
while (m_queue.Dequeue (dst, queueEntry))
|
||||
{
|
||||
DeferredRouteOutputTag tag;
|
||||
Ptr<Packet> p = ConstCast<Packet> (queueEntry.GetPacket ());
|
||||
if (p->RemovePacketTag (tag) &&
|
||||
tag.GetInterface() != -1 &&
|
||||
tag.GetInterface() != m_ipv4->GetInterfaceForDevice (route->GetOutputDevice ()))
|
||||
Ptr<const DeferredRouteOutputTag> tag = p->RemovePacketTag<DeferredRouteOutputTag> ();
|
||||
if (tag != 0 &&
|
||||
tag->GetInterface() != -1 &&
|
||||
tag->GetInterface() != m_ipv4->GetInterfaceForDevice (route->GetOutputDevice ()))
|
||||
{
|
||||
NS_LOG_DEBUG ("Output device doesn't match. Dropped.");
|
||||
return;
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -211,8 +211,8 @@ void Radvd::Send (Ptr<RadvdInterface> config, Ipv6Address dst, bool reschedule)
|
||||
/* Router advertisements MUST always have a ttl of 255
|
||||
* The ttl value should be set as a socket option, but this is not yet implemented
|
||||
*/
|
||||
SocketIpTtlTag ttl;
|
||||
ttl.SetTtl (255);
|
||||
Ptr<SocketIpTtlTag> ttl = CreateObject<SocketIpTtlTag> ();
|
||||
ttl->SetTtl (255);
|
||||
p->AddPacketTag (ttl);
|
||||
|
||||
/* send RA */
|
||||
|
||||
@@ -403,9 +403,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
|
||||
@@ -403,9 +403,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
|
||||
@@ -4135,7 +4135,7 @@ def register_functions(root_module):
|
||||
module.add_function('TypeNameGet',
|
||||
'std::string',
|
||||
[],
|
||||
template_parameters=['unsigned long long'])
|
||||
template_parameters=['uint64_t'])
|
||||
## type-name.h (module 'core'): extern std::string ns3::TypeNameGet() [free function]
|
||||
module.add_function('TypeNameGet',
|
||||
'std::string',
|
||||
|
||||
@@ -199,7 +199,7 @@ private:
|
||||
}
|
||||
|
||||
template <typename W, typename T, typename U, typename V>
|
||||
Ptr<const AttributeAccessor>
|
||||
inline Ptr<const AttributeAccessor>
|
||||
DoMakeAccessorHelperTwo (void (T::*setter)(U),
|
||||
V (T::*getter)(void) const)
|
||||
{
|
||||
@@ -240,7 +240,7 @@ private:
|
||||
}
|
||||
|
||||
template <typename W, typename T, typename U, typename V>
|
||||
Ptr<const AttributeAccessor>
|
||||
inline Ptr<const AttributeAccessor>
|
||||
DoMakeAccessorHelperTwo (V (T::*getter)(void) const,
|
||||
void (T::*setter)(U))
|
||||
{
|
||||
@@ -248,7 +248,7 @@ DoMakeAccessorHelperTwo (V (T::*getter)(void) const,
|
||||
}
|
||||
|
||||
template <typename W, typename T, typename U, typename V>
|
||||
Ptr<const AttributeAccessor>
|
||||
inline Ptr<const AttributeAccessor>
|
||||
DoMakeAccessorHelperTwo (bool (T::*setter)(U),
|
||||
V (T::*getter)(void) const)
|
||||
{
|
||||
@@ -289,7 +289,7 @@ private:
|
||||
}
|
||||
|
||||
template <typename W, typename T, typename U, typename V>
|
||||
Ptr<const AttributeAccessor>
|
||||
inline Ptr<const AttributeAccessor>
|
||||
DoMakeAccessorHelperTwo (bool (T::*getter)(void) const,
|
||||
void (T::*setter)(U))
|
||||
{
|
||||
@@ -297,14 +297,14 @@ DoMakeAccessorHelperTwo (bool (T::*getter)(void) const,
|
||||
}
|
||||
|
||||
template <typename V, typename T1>
|
||||
Ptr<const AttributeAccessor>
|
||||
inline Ptr<const AttributeAccessor>
|
||||
MakeAccessorHelper (T1 a1)
|
||||
{
|
||||
return DoMakeAccessorHelperOne<V> (a1);
|
||||
}
|
||||
|
||||
template <typename V, typename T1, typename T2>
|
||||
Ptr<const AttributeAccessor>
|
||||
inline Ptr<const AttributeAccessor>
|
||||
MakeAccessorHelper (T1 a1, T2 a2)
|
||||
{
|
||||
return DoMakeAccessorHelperTwo<V> (a1, a2);
|
||||
|
||||
@@ -47,6 +47,68 @@ Vector3D::Vector3D ()
|
||||
{
|
||||
}
|
||||
|
||||
double
|
||||
Vector3D::GetLength () const
|
||||
{
|
||||
return sqrt (x*x + y*y + z*z);
|
||||
}
|
||||
|
||||
Vector3D&
|
||||
Vector3D::operator += (const Vector3D &v)
|
||||
{
|
||||
x += v.x;
|
||||
y += v.y;
|
||||
z += v.z;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
Vector3D&
|
||||
Vector3D::operator += (double v)
|
||||
{
|
||||
x += v;
|
||||
y += v;
|
||||
z += v;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
Vector3D
|
||||
Vector3D::operator + (const Vector3D &v) const
|
||||
{
|
||||
return Vector3D (x+v.x, y+v.y, z+v.z);
|
||||
}
|
||||
|
||||
Vector3D
|
||||
Vector3D::operator + (double v) const
|
||||
{
|
||||
return Vector3D (x+v, y+v, z+v);
|
||||
}
|
||||
|
||||
Vector3D
|
||||
Vector3D::operator * (const Vector3D &v) const
|
||||
{
|
||||
return Vector3D (x*v.x, y*v.y, z*v.z);
|
||||
}
|
||||
|
||||
Vector3D
|
||||
Vector3D::operator * (double v) const
|
||||
{
|
||||
return Vector3D (x*v, y*v, z*v);
|
||||
}
|
||||
|
||||
Vector3D
|
||||
Vector3D::operator - (const Vector3D &v) const
|
||||
{
|
||||
return Vector3D (x-v.x, y-v.y, z-v.z);
|
||||
}
|
||||
|
||||
Vector3D
|
||||
Vector3D::operator / (double div) const
|
||||
{
|
||||
return Vector3D (x/div, y/div, z/div);
|
||||
}
|
||||
|
||||
Vector2D::Vector2D (double _x, double _y)
|
||||
: x (_x),
|
||||
y (_y)
|
||||
@@ -59,6 +121,66 @@ Vector2D::Vector2D ()
|
||||
{
|
||||
}
|
||||
|
||||
double
|
||||
Vector2D::GetLength () const
|
||||
{
|
||||
return sqrt (x*x + y*y);
|
||||
}
|
||||
|
||||
Vector2D&
|
||||
Vector2D::operator += (const Vector2D &v)
|
||||
{
|
||||
x += v.x;
|
||||
y += v.y;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
Vector2D&
|
||||
Vector2D::operator += (double v)
|
||||
{
|
||||
x += v;
|
||||
y += v;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
Vector2D
|
||||
Vector2D::operator + (const Vector2D &v) const
|
||||
{
|
||||
return Vector2D (x+v.x, y+v.y);
|
||||
}
|
||||
|
||||
Vector2D
|
||||
Vector2D::operator + (double v) const
|
||||
{
|
||||
return Vector2D (x+v, y+v);
|
||||
}
|
||||
|
||||
Vector2D
|
||||
Vector2D::operator * (const Vector2D &v) const
|
||||
{
|
||||
return Vector2D (x*v.x, y*v.y);
|
||||
}
|
||||
|
||||
Vector2D
|
||||
Vector2D::operator * (double v) const
|
||||
{
|
||||
return Vector2D (x*v, y*v);
|
||||
}
|
||||
|
||||
Vector2D
|
||||
Vector2D::operator - (const Vector2D &v) const
|
||||
{
|
||||
return Vector2D (x-v.x, y-v.y);
|
||||
}
|
||||
|
||||
Vector2D
|
||||
Vector2D::operator / (double div) const
|
||||
{
|
||||
return Vector2D (x/div, y/div);
|
||||
}
|
||||
|
||||
double
|
||||
CalculateDistance (const Vector3D &a, const Vector3D &b)
|
||||
{
|
||||
@@ -77,6 +199,21 @@ CalculateDistance (const Vector2D &a, const Vector2D &b)
|
||||
return distance;
|
||||
}
|
||||
|
||||
|
||||
double
|
||||
ScalarMultiplication (const Vector3D &a, const Vector3D &b)
|
||||
{
|
||||
Vector3D tmp = a * b;
|
||||
return tmp.x + tmp.y + tmp.z;
|
||||
}
|
||||
|
||||
double
|
||||
ScalarMultiplication (const Vector2D &a, const Vector2D &b)
|
||||
{
|
||||
Vector2D tmp = a * b;
|
||||
return tmp.x + tmp.y;
|
||||
}
|
||||
|
||||
std::ostream &operator << (std::ostream &os, const Vector3D &vector)
|
||||
{
|
||||
os << vector.x << ":" << vector.y << ":" << vector.z;
|
||||
|
||||
@@ -55,6 +55,17 @@ public:
|
||||
* z coordinate of vector
|
||||
*/
|
||||
double z;
|
||||
|
||||
double GetLength () const;
|
||||
|
||||
Vector3D& operator += (const Vector3D &);
|
||||
Vector3D& operator += (double);
|
||||
Vector3D operator + (const Vector3D &) const;
|
||||
Vector3D operator + (double) const;
|
||||
Vector3D operator * (const Vector3D &) const;
|
||||
Vector3D operator * (double v) const;
|
||||
Vector3D operator - (const Vector3D &) const;
|
||||
Vector3D operator / (double) const;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -82,6 +93,17 @@ public:
|
||||
* y coordinate of vector
|
||||
*/
|
||||
double y;
|
||||
|
||||
double GetLength () const;
|
||||
|
||||
Vector2D& operator += (const Vector2D &);
|
||||
Vector2D& operator += (double);
|
||||
Vector2D operator + (const Vector2D &) const;
|
||||
Vector2D operator + (double) const;
|
||||
Vector2D operator * (const Vector2D &) const;
|
||||
Vector2D operator * (double v) const;
|
||||
Vector2D operator - (const Vector2D &) const;
|
||||
Vector2D operator / (double) const;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -98,6 +120,19 @@ double CalculateDistance (const Vector3D &a, const Vector3D &b);
|
||||
*/
|
||||
double CalculateDistance (const Vector2D &a, const Vector2D &b);
|
||||
|
||||
/**
|
||||
* \brief Calculate scalar multiplication between two vectors
|
||||
* \param a one point
|
||||
* \param b another point
|
||||
*/
|
||||
double ScalarMultiplication (const Vector3D &a, const Vector3D &b);
|
||||
/**
|
||||
* \brief Calculate scalar multiplication between two vectors
|
||||
* \param a one point
|
||||
* \param b another point
|
||||
*/
|
||||
double ScalarMultiplication (const Vector2D &a, const Vector2D &b);
|
||||
|
||||
/**
|
||||
* \class ns3::Vector3DValue
|
||||
* \brief hold objects of type ns3::Vector3D
|
||||
|
||||
@@ -92,14 +92,6 @@ def register_types(module):
|
||||
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
|
||||
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
|
||||
module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator [class]
|
||||
module.add_class('PacketTagIterator', import_from_module='ns.network')
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
|
||||
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
|
||||
module.add_class('PacketTagList', import_from_module='ns.network')
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
|
||||
module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
|
||||
## pcap-file.h (module 'network'): ns3::PcapFile [class]
|
||||
module.add_class('PcapFile', import_from_module='ns.network')
|
||||
## trace-helper.h (module 'network'): ns3::PcapHelper [class]
|
||||
@@ -114,12 +106,12 @@ def register_types(module):
|
||||
module.add_class('SeedManager', import_from_module='ns.core')
|
||||
## random-variable.h (module 'core'): ns3::SequentialVariable [class]
|
||||
module.add_class('SequentialVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable'])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Chunk', 'ns3::ObjectBase', 'ns3::DefaultDeleter<ns3::Chunk>'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simulator.h (module 'core'): ns3::Simulator [class]
|
||||
module.add_class('Simulator', destructor_visibility='private', import_from_module='ns.core')
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
|
||||
module.add_class('TagBuffer', import_from_module='ns.network')
|
||||
## random-variable.h (module 'core'): ns3::TriangularVariable [class]
|
||||
@@ -145,7 +137,7 @@ def register_types(module):
|
||||
## int64x64-double.h (module 'core'): ns3::int64x64_t [class]
|
||||
module.add_class('int64x64_t', import_from_module='ns.core')
|
||||
## chunk.h (module 'network'): ns3::Chunk [class]
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
## random-variable.h (module 'core'): ns3::ConstantVariable [class]
|
||||
module.add_class('ConstantVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable'])
|
||||
## csma-helper.h (module 'csma'): ns3::CsmaHelper [class]
|
||||
@@ -194,6 +186,8 @@ def register_types(module):
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Packet', 'ns3::empty', 'ns3::DefaultDeleter<ns3::Packet>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::TraceSourceAccessor', 'ns3::empty', 'ns3::DefaultDeleter<ns3::TraceSourceAccessor>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::Object'])
|
||||
## nstime.h (module 'core'): ns3::Time [class]
|
||||
module.add_class('Time', import_from_module='ns.core')
|
||||
## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
|
||||
@@ -326,19 +320,15 @@ def register_methods(root_module):
|
||||
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_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
|
||||
register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
|
||||
register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
|
||||
register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
|
||||
register_Ns3PcapFile_methods(root_module, root_module['ns3::PcapFile'])
|
||||
register_Ns3PcapHelper_methods(root_module, root_module['ns3::PcapHelper'])
|
||||
register_Ns3PcapHelperForDevice_methods(root_module, root_module['ns3::PcapHelperForDevice'])
|
||||
register_Ns3RandomVariable_methods(root_module, root_module['ns3::RandomVariable'])
|
||||
register_Ns3SeedManager_methods(root_module, root_module['ns3::SeedManager'])
|
||||
register_Ns3SequentialVariable_methods(root_module, root_module['ns3::SequentialVariable'])
|
||||
register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
|
||||
register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
|
||||
register_Ns3TriangularVariable_methods(root_module, root_module['ns3::TriangularVariable'])
|
||||
register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
|
||||
@@ -375,6 +365,7 @@ def register_methods(root_module):
|
||||
register_Ns3SimpleRefCount__Ns3OutputStreamWrapper_Ns3Empty_Ns3DefaultDeleter__lt__ns3OutputStreamWrapper__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
|
||||
register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3Time_methods(root_module, root_module['ns3::Time'])
|
||||
register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
|
||||
register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
|
||||
@@ -817,6 +808,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Next',
|
||||
'void',
|
||||
[param('uint32_t', 'delta')])
|
||||
## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function]
|
||||
cls.add_method('PeekU8',
|
||||
'uint8_t',
|
||||
[])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
|
||||
cls.add_method('Prev',
|
||||
'void',
|
||||
@@ -829,6 +824,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function]
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
|
||||
cls.add_method('ReadLsbtohU16',
|
||||
'uint16_t',
|
||||
@@ -1168,9 +1167,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
@@ -1721,6 +1720,21 @@ def register_Ns3NodeContainer_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::NodeContainer other) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::NodeContainer', 'other')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::Ptr<ns3::Node> node) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::Ptr< ns3::Node >', 'node')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(std::string nodeName) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('std::string', 'nodeName')],
|
||||
custom_name='__call__')
|
||||
return
|
||||
|
||||
def register_Ns3ObjectBase_methods(root_module, cls):
|
||||
@@ -1945,80 +1959,6 @@ def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIterator_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
|
||||
## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
|
||||
cls.add_method('HasNext',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::PacketTagIterator::Item',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
|
||||
## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('GetTag',
|
||||
'void',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagList_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
|
||||
cls.add_method('Add',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
|
||||
cls.add_method('Head',
|
||||
'ns3::PacketTagList::TagData const *',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('Peek',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
|
||||
cls.add_method('Remove',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
|
||||
cls.add_method('RemoveAll',
|
||||
'void',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagListTagData_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
|
||||
cls.add_instance_attribute('count', 'uint32_t', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
|
||||
cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
|
||||
cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
|
||||
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
|
||||
return
|
||||
|
||||
def register_Ns3PcapFile_methods(root_module, cls):
|
||||
## pcap-file.h (module 'network'): ns3::PcapFile::PcapFile() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -2221,6 +2161,18 @@ def register_Ns3SequentialVariable_methods(root_module, cls):
|
||||
cls.add_constructor([param('double', 'f'), param('double', 'l'), param('ns3::RandomVariable const &', 'i'), param('uint32_t', 'c', default_value='1')])
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter< ns3::Chunk > > const &', 'o')])
|
||||
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::Cleanup() [member function]
|
||||
cls.add_method('Cleanup',
|
||||
'void',
|
||||
[],
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -2281,11 +2233,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'bool',
|
||||
[],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::Time',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Now() [member function]
|
||||
cls.add_method('Now',
|
||||
'ns3::Time',
|
||||
@@ -2296,11 +2243,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'void',
|
||||
[param('ns3::EventId const &', 'id')],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::RunOneEvent() [member function]
|
||||
cls.add_method('RunOneEvent',
|
||||
'void',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::SetImplementation(ns3::Ptr<ns3::SimulatorImpl> impl) [member function]
|
||||
cls.add_method('SetImplementation',
|
||||
'void',
|
||||
@@ -2323,38 +2265,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TagBuffer_methods(root_module, cls):
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
|
||||
@@ -3269,6 +3179,39 @@ def register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDelete
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Time_methods(root_module, cls):
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
@@ -4360,11 +4303,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('AddHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Ptr<const ns3::Tag> tag) [member function]
|
||||
cls.add_method('AddPacketTag',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
[param('ns3::Ptr< ns3::Tag const >', 'tag')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
|
||||
cls.add_method('AddPaddingAtEnd',
|
||||
'void',
|
||||
@@ -4423,11 +4365,6 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::NixVector >',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
|
||||
cls.add_method('GetPacketTagIterator',
|
||||
'ns3::PacketTagIterator',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
@@ -4453,10 +4390,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::PeekPacketTag(ns3::TypeId tagType) const [member function]
|
||||
cls.add_method('PeekPacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('PeekTrailer',
|
||||
@@ -4497,10 +4434,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('RemoveHeader',
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')])
|
||||
## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::RemovePacketTag(ns3::TypeId tagType) [member function]
|
||||
cls.add_method('RemovePacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')])
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('RemoveTrailer',
|
||||
'uint32_t',
|
||||
|
||||
@@ -92,14 +92,6 @@ def register_types(module):
|
||||
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
|
||||
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
|
||||
module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator [class]
|
||||
module.add_class('PacketTagIterator', import_from_module='ns.network')
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
|
||||
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
|
||||
module.add_class('PacketTagList', import_from_module='ns.network')
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
|
||||
module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
|
||||
## pcap-file.h (module 'network'): ns3::PcapFile [class]
|
||||
module.add_class('PcapFile', import_from_module='ns.network')
|
||||
## trace-helper.h (module 'network'): ns3::PcapHelper [class]
|
||||
@@ -114,12 +106,12 @@ def register_types(module):
|
||||
module.add_class('SeedManager', import_from_module='ns.core')
|
||||
## random-variable.h (module 'core'): ns3::SequentialVariable [class]
|
||||
module.add_class('SequentialVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable'])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Chunk', 'ns3::ObjectBase', 'ns3::DefaultDeleter<ns3::Chunk>'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simulator.h (module 'core'): ns3::Simulator [class]
|
||||
module.add_class('Simulator', destructor_visibility='private', import_from_module='ns.core')
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
|
||||
module.add_class('TagBuffer', import_from_module='ns.network')
|
||||
## random-variable.h (module 'core'): ns3::TriangularVariable [class]
|
||||
@@ -145,7 +137,7 @@ def register_types(module):
|
||||
## int64x64-double.h (module 'core'): ns3::int64x64_t [class]
|
||||
module.add_class('int64x64_t', import_from_module='ns.core')
|
||||
## chunk.h (module 'network'): ns3::Chunk [class]
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
## random-variable.h (module 'core'): ns3::ConstantVariable [class]
|
||||
module.add_class('ConstantVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable'])
|
||||
## csma-helper.h (module 'csma'): ns3::CsmaHelper [class]
|
||||
@@ -194,6 +186,8 @@ def register_types(module):
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Packet', 'ns3::empty', 'ns3::DefaultDeleter<ns3::Packet>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::TraceSourceAccessor', 'ns3::empty', 'ns3::DefaultDeleter<ns3::TraceSourceAccessor>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::Object'])
|
||||
## nstime.h (module 'core'): ns3::Time [class]
|
||||
module.add_class('Time', import_from_module='ns.core')
|
||||
## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
|
||||
@@ -326,19 +320,15 @@ def register_methods(root_module):
|
||||
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_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
|
||||
register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
|
||||
register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
|
||||
register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
|
||||
register_Ns3PcapFile_methods(root_module, root_module['ns3::PcapFile'])
|
||||
register_Ns3PcapHelper_methods(root_module, root_module['ns3::PcapHelper'])
|
||||
register_Ns3PcapHelperForDevice_methods(root_module, root_module['ns3::PcapHelperForDevice'])
|
||||
register_Ns3RandomVariable_methods(root_module, root_module['ns3::RandomVariable'])
|
||||
register_Ns3SeedManager_methods(root_module, root_module['ns3::SeedManager'])
|
||||
register_Ns3SequentialVariable_methods(root_module, root_module['ns3::SequentialVariable'])
|
||||
register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
|
||||
register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
|
||||
register_Ns3TriangularVariable_methods(root_module, root_module['ns3::TriangularVariable'])
|
||||
register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
|
||||
@@ -375,6 +365,7 @@ def register_methods(root_module):
|
||||
register_Ns3SimpleRefCount__Ns3OutputStreamWrapper_Ns3Empty_Ns3DefaultDeleter__lt__ns3OutputStreamWrapper__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
|
||||
register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3Time_methods(root_module, root_module['ns3::Time'])
|
||||
register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
|
||||
register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
|
||||
@@ -817,6 +808,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Next',
|
||||
'void',
|
||||
[param('uint32_t', 'delta')])
|
||||
## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function]
|
||||
cls.add_method('PeekU8',
|
||||
'uint8_t',
|
||||
[])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
|
||||
cls.add_method('Prev',
|
||||
'void',
|
||||
@@ -829,6 +824,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function]
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
|
||||
cls.add_method('ReadLsbtohU16',
|
||||
'uint16_t',
|
||||
@@ -1168,9 +1167,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
@@ -1721,6 +1720,21 @@ def register_Ns3NodeContainer_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::NodeContainer other) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::NodeContainer', 'other')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::Ptr<ns3::Node> node) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::Ptr< ns3::Node >', 'node')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(std::string nodeName) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('std::string', 'nodeName')],
|
||||
custom_name='__call__')
|
||||
return
|
||||
|
||||
def register_Ns3ObjectBase_methods(root_module, cls):
|
||||
@@ -1945,80 +1959,6 @@ def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIterator_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
|
||||
## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
|
||||
cls.add_method('HasNext',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::PacketTagIterator::Item',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
|
||||
## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('GetTag',
|
||||
'void',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagList_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
|
||||
cls.add_method('Add',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
|
||||
cls.add_method('Head',
|
||||
'ns3::PacketTagList::TagData const *',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('Peek',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
|
||||
cls.add_method('Remove',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
|
||||
cls.add_method('RemoveAll',
|
||||
'void',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagListTagData_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
|
||||
cls.add_instance_attribute('count', 'uint32_t', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
|
||||
cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
|
||||
cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
|
||||
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
|
||||
return
|
||||
|
||||
def register_Ns3PcapFile_methods(root_module, cls):
|
||||
## pcap-file.h (module 'network'): ns3::PcapFile::PcapFile() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -2221,6 +2161,18 @@ def register_Ns3SequentialVariable_methods(root_module, cls):
|
||||
cls.add_constructor([param('double', 'f'), param('double', 'l'), param('ns3::RandomVariable const &', 'i'), param('uint32_t', 'c', default_value='1')])
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter< ns3::Chunk > > const &', 'o')])
|
||||
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::Cleanup() [member function]
|
||||
cls.add_method('Cleanup',
|
||||
'void',
|
||||
[],
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -2281,11 +2233,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'bool',
|
||||
[],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::Time',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Now() [member function]
|
||||
cls.add_method('Now',
|
||||
'ns3::Time',
|
||||
@@ -2296,11 +2243,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'void',
|
||||
[param('ns3::EventId const &', 'id')],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::RunOneEvent() [member function]
|
||||
cls.add_method('RunOneEvent',
|
||||
'void',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::SetImplementation(ns3::Ptr<ns3::SimulatorImpl> impl) [member function]
|
||||
cls.add_method('SetImplementation',
|
||||
'void',
|
||||
@@ -2323,38 +2265,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TagBuffer_methods(root_module, cls):
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
|
||||
@@ -3269,6 +3179,39 @@ def register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDelete
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Time_methods(root_module, cls):
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
@@ -4360,11 +4303,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('AddHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Ptr<const ns3::Tag> tag) [member function]
|
||||
cls.add_method('AddPacketTag',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
[param('ns3::Ptr< ns3::Tag const >', 'tag')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
|
||||
cls.add_method('AddPaddingAtEnd',
|
||||
'void',
|
||||
@@ -4423,11 +4365,6 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::NixVector >',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
|
||||
cls.add_method('GetPacketTagIterator',
|
||||
'ns3::PacketTagIterator',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
@@ -4453,10 +4390,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::PeekPacketTag(ns3::TypeId tagType) const [member function]
|
||||
cls.add_method('PeekPacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('PeekTrailer',
|
||||
@@ -4497,10 +4434,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('RemoveHeader',
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')])
|
||||
## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::RemovePacketTag(ns3::TypeId tagType) [member function]
|
||||
cls.add_method('RemovePacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')])
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('RemoveTrailer',
|
||||
'uint32_t',
|
||||
|
||||
@@ -114,20 +114,12 @@ def register_types(module):
|
||||
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
|
||||
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
|
||||
module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator [class]
|
||||
module.add_class('PacketTagIterator', import_from_module='ns.network')
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
|
||||
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
|
||||
module.add_class('PacketTagList', import_from_module='ns.network')
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
|
||||
module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Chunk', 'ns3::ObjectBase', 'ns3::DefaultDeleter<ns3::Chunk>'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simulator.h (module 'core'): ns3::Simulator [class]
|
||||
module.add_class('Simulator', destructor_visibility='private', import_from_module='ns.core')
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
|
||||
module.add_class('TagBuffer', import_from_module='ns.network')
|
||||
## timer.h (module 'core'): ns3::Timer [class]
|
||||
@@ -151,7 +143,7 @@ def register_types(module):
|
||||
## int64x64-double.h (module 'core'): ns3::int64x64_t [class]
|
||||
module.add_class('int64x64_t', import_from_module='ns.core')
|
||||
## chunk.h (module 'network'): ns3::Chunk [class]
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
## dsdv-helper.h (module 'dsdv'): ns3::DsdvHelper [class]
|
||||
module.add_class('DsdvHelper', parent=root_module['ns3::Ipv4RoutingHelper'])
|
||||
## header.h (module 'network'): ns3::Header [class]
|
||||
@@ -198,12 +190,8 @@ def register_types(module):
|
||||
module.add_enum('SocketErrno', ['ERROR_NOTERROR', 'ERROR_ISCONN', 'ERROR_NOTCONN', 'ERROR_MSGSIZE', 'ERROR_AGAIN', 'ERROR_SHUTDOWN', 'ERROR_OPNOTSUPP', 'ERROR_AFNOSUPPORT', 'ERROR_INVAL', 'ERROR_BADF', 'ERROR_NOROUTETOHOST', 'ERROR_NODEV', 'ERROR_ADDRNOTAVAIL', 'ERROR_ADDRINUSE', 'SOCKET_ERRNO_LAST'], outer_class=root_module['ns3::Socket'], import_from_module='ns.network')
|
||||
## socket.h (module 'network'): ns3::Socket::SocketType [enumeration]
|
||||
module.add_enum('SocketType', ['NS3_SOCK_STREAM', 'NS3_SOCK_SEQPACKET', 'NS3_SOCK_DGRAM', 'NS3_SOCK_RAW'], outer_class=root_module['ns3::Socket'], import_from_module='ns.network')
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag [class]
|
||||
module.add_class('SocketAddressTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag [class]
|
||||
module.add_class('SocketIpTtlTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag [class]
|
||||
module.add_class('SocketSetDontFragmentTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::Object'])
|
||||
## nstime.h (module 'core'): ns3::Time [class]
|
||||
module.add_class('Time', import_from_module='ns.core')
|
||||
## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
|
||||
@@ -282,6 +270,12 @@ def register_types(module):
|
||||
module.add_class('OutputStreamWrapper', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> >'])
|
||||
## packet.h (module 'network'): ns3::Packet [class]
|
||||
module.add_class('Packet', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag [class]
|
||||
module.add_class('SocketAddressTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag [class]
|
||||
module.add_class('SocketIpTtlTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag [class]
|
||||
module.add_class('SocketSetDontFragmentTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## nstime.h (module 'core'): ns3::TimeChecker [class]
|
||||
module.add_class('TimeChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
|
||||
## nstime.h (module 'core'): ns3::TimeValue [class]
|
||||
@@ -294,6 +288,8 @@ def register_types(module):
|
||||
module.add_class('AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
|
||||
## address.h (module 'network'): ns3::AddressValue [class]
|
||||
module.add_class('AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
|
||||
## ipv4-list-routing.h (module 'internet'): ns3::Ipv4ListRouting [class]
|
||||
module.add_class('Ipv4ListRouting', import_from_module='ns.internet', parent=root_module['ns3::Ipv4RoutingProtocol'])
|
||||
module.add_container('std::map< unsigned int, unsigned int >', ('unsigned int', 'unsigned int'), container_type='map')
|
||||
|
||||
## Register a nested module for the namespace FatalImpl
|
||||
@@ -365,13 +361,9 @@ def register_methods(root_module):
|
||||
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_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
|
||||
register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
|
||||
register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
|
||||
register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
|
||||
register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
|
||||
register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
|
||||
register_Ns3Timer_methods(root_module, root_module['ns3::Timer'])
|
||||
register_Ns3TimerImpl_methods(root_module, root_module['ns3::TimerImpl'])
|
||||
@@ -399,9 +391,7 @@ def register_methods(root_module):
|
||||
register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
|
||||
register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >'])
|
||||
register_Ns3Socket_methods(root_module, root_module['ns3::Socket'])
|
||||
register_Ns3SocketAddressTag_methods(root_module, root_module['ns3::SocketAddressTag'])
|
||||
register_Ns3SocketIpTtlTag_methods(root_module, root_module['ns3::SocketIpTtlTag'])
|
||||
register_Ns3SocketSetDontFragmentTag_methods(root_module, root_module['ns3::SocketSetDontFragmentTag'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3Time_methods(root_module, root_module['ns3::Time'])
|
||||
register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
|
||||
register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
|
||||
@@ -436,12 +426,16 @@ def register_methods(root_module):
|
||||
register_Ns3ObjectFactoryValue_methods(root_module, root_module['ns3::ObjectFactoryValue'])
|
||||
register_Ns3OutputStreamWrapper_methods(root_module, root_module['ns3::OutputStreamWrapper'])
|
||||
register_Ns3Packet_methods(root_module, root_module['ns3::Packet'])
|
||||
register_Ns3SocketAddressTag_methods(root_module, root_module['ns3::SocketAddressTag'])
|
||||
register_Ns3SocketIpTtlTag_methods(root_module, root_module['ns3::SocketIpTtlTag'])
|
||||
register_Ns3SocketSetDontFragmentTag_methods(root_module, root_module['ns3::SocketSetDontFragmentTag'])
|
||||
register_Ns3TimeChecker_methods(root_module, root_module['ns3::TimeChecker'])
|
||||
register_Ns3TimeValue_methods(root_module, root_module['ns3::TimeValue'])
|
||||
register_Ns3TypeIdChecker_methods(root_module, root_module['ns3::TypeIdChecker'])
|
||||
register_Ns3TypeIdValue_methods(root_module, root_module['ns3::TypeIdValue'])
|
||||
register_Ns3AddressChecker_methods(root_module, root_module['ns3::AddressChecker'])
|
||||
register_Ns3AddressValue_methods(root_module, root_module['ns3::AddressValue'])
|
||||
register_Ns3Ipv4ListRouting_methods(root_module, root_module['ns3::Ipv4ListRouting'])
|
||||
register_Ns3DsdvDsdvHeader_methods(root_module, root_module['ns3::dsdv::DsdvHeader'])
|
||||
register_Ns3DsdvPacketQueue_methods(root_module, root_module['ns3::dsdv::PacketQueue'])
|
||||
register_Ns3DsdvQueueEntry_methods(root_module, root_module['ns3::dsdv::QueueEntry'])
|
||||
@@ -695,6 +689,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Next',
|
||||
'void',
|
||||
[param('uint32_t', 'delta')])
|
||||
## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function]
|
||||
cls.add_method('PeekU8',
|
||||
'uint8_t',
|
||||
[])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
|
||||
cls.add_method('Prev',
|
||||
'void',
|
||||
@@ -707,6 +705,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function]
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
|
||||
cls.add_method('ReadLsbtohU16',
|
||||
'uint16_t',
|
||||
@@ -1050,9 +1052,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
@@ -1639,6 +1641,21 @@ def register_Ns3NodeContainer_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::NodeContainer other) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::NodeContainer', 'other')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::Ptr<ns3::Node> node) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::Ptr< ns3::Node >', 'node')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(std::string nodeName) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('std::string', 'nodeName')],
|
||||
custom_name='__call__')
|
||||
return
|
||||
|
||||
def register_Ns3ObjectBase_methods(root_module, cls):
|
||||
@@ -1863,78 +1880,16 @@ def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIterator_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
|
||||
## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
|
||||
cls.add_method('HasNext',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::PacketTagIterator::Item',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
|
||||
## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('GetTag',
|
||||
'void',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagList_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
|
||||
def register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
|
||||
cls.add_method('Add',
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter< ns3::Chunk > > const &', 'o')])
|
||||
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::Cleanup() [member function]
|
||||
cls.add_method('Cleanup',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
|
||||
cls.add_method('Head',
|
||||
'ns3::PacketTagList::TagData const *',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('Peek',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
|
||||
cls.add_method('Remove',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
|
||||
cls.add_method('RemoveAll',
|
||||
'void',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagListTagData_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
|
||||
cls.add_instance_attribute('count', 'uint32_t', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
|
||||
cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
|
||||
cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
|
||||
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
|
||||
@@ -1997,11 +1952,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'bool',
|
||||
[],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::Time',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Now() [member function]
|
||||
cls.add_method('Now',
|
||||
'ns3::Time',
|
||||
@@ -2012,11 +1962,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'void',
|
||||
[param('ns3::EventId const &', 'id')],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::RunOneEvent() [member function]
|
||||
cls.add_method('RunOneEvent',
|
||||
'void',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::SetImplementation(ns3::Ptr<ns3::SimulatorImpl> impl) [member function]
|
||||
cls.add_method('SetImplementation',
|
||||
'void',
|
||||
@@ -2039,38 +1984,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TagBuffer_methods(root_module, cls):
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
|
||||
@@ -3284,146 +3197,37 @@ def register_Ns3Socket_methods(root_module, cls):
|
||||
visibility='protected')
|
||||
return
|
||||
|
||||
def register_Ns3SocketAddressTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag(ns3::SocketAddressTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketAddressTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag() [constructor]
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::Address ns3::SocketAddressTag::GetAddress() const [member function]
|
||||
cls.add_method('GetAddress',
|
||||
'ns3::Address',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketAddressTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketAddressTag::GetSerializedSize() const [member function]
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketAddressTag::GetTypeId() [member function]
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Print(std::ostream & os) const [member function]
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::SetAddress(ns3::Address addr) [member function]
|
||||
cls.add_method('SetAddress',
|
||||
'void',
|
||||
[param('ns3::Address', 'addr')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketIpTtlTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag(ns3::SocketIpTtlTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketIpTtlTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketIpTtlTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketIpTtlTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint8_t ns3::SocketIpTtlTag::GetTtl() const [member function]
|
||||
cls.add_method('GetTtl',
|
||||
'uint8_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketIpTtlTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::SetTtl(uint8_t ttl) [member function]
|
||||
cls.add_method('SetTtl',
|
||||
'void',
|
||||
[param('uint8_t', 'ttl')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketSetDontFragmentTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag(ns3::SocketSetDontFragmentTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketSetDontFragmentTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Disable() [member function]
|
||||
cls.add_method('Disable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Enable() [member function]
|
||||
cls.add_method('Enable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketSetDontFragmentTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketSetDontFragmentTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketSetDontFragmentTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): bool ns3::SocketSetDontFragmentTag::IsEnabled() const [member function]
|
||||
cls.add_method('IsEnabled',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Time_methods(root_module, cls):
|
||||
@@ -5120,11 +4924,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('AddHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Ptr<const ns3::Tag> tag) [member function]
|
||||
cls.add_method('AddPacketTag',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
[param('ns3::Ptr< ns3::Tag const >', 'tag')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
|
||||
cls.add_method('AddPaddingAtEnd',
|
||||
'void',
|
||||
@@ -5183,11 +4986,6 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::NixVector >',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
|
||||
cls.add_method('GetPacketTagIterator',
|
||||
'ns3::PacketTagIterator',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
@@ -5213,10 +5011,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::PeekPacketTag(ns3::TypeId tagType) const [member function]
|
||||
cls.add_method('PeekPacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('PeekTrailer',
|
||||
@@ -5257,10 +5055,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('RemoveHeader',
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')])
|
||||
## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::RemovePacketTag(ns3::TypeId tagType) [member function]
|
||||
cls.add_method('RemovePacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')])
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('RemoveTrailer',
|
||||
'uint32_t',
|
||||
@@ -5276,6 +5074,148 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
[param('ns3::Ptr< ns3::NixVector >', 'arg0')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketAddressTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag(ns3::SocketAddressTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketAddressTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::Address ns3::SocketAddressTag::GetAddress() const [member function]
|
||||
cls.add_method('GetAddress',
|
||||
'ns3::Address',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketAddressTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketAddressTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketAddressTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::SetAddress(ns3::Address addr) [member function]
|
||||
cls.add_method('SetAddress',
|
||||
'void',
|
||||
[param('ns3::Address', 'addr')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketIpTtlTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag(ns3::SocketIpTtlTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketIpTtlTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketIpTtlTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketIpTtlTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint8_t ns3::SocketIpTtlTag::GetTtl() const [member function]
|
||||
cls.add_method('GetTtl',
|
||||
'uint8_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketIpTtlTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::SetTtl(uint8_t ttl) [member function]
|
||||
cls.add_method('SetTtl',
|
||||
'void',
|
||||
[param('uint8_t', 'ttl')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketSetDontFragmentTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag(ns3::SocketSetDontFragmentTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketSetDontFragmentTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Disable() [member function]
|
||||
cls.add_method('Disable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Enable() [member function]
|
||||
cls.add_method('Enable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketSetDontFragmentTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketSetDontFragmentTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketSetDontFragmentTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): bool ns3::SocketSetDontFragmentTag::IsEnabled() const [member function]
|
||||
cls.add_method('IsEnabled',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TimeChecker_methods(root_module, cls):
|
||||
## nstime.h (module 'core'): ns3::TimeChecker::TimeChecker() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -5396,6 +5336,83 @@ def register_Ns3AddressValue_methods(root_module, cls):
|
||||
[param('ns3::Address const &', 'value')])
|
||||
return
|
||||
|
||||
def register_Ns3Ipv4ListRouting_methods(root_module, cls):
|
||||
## ipv4-list-routing.h (module 'internet'): ns3::Ipv4ListRouting::Ipv4ListRouting(ns3::Ipv4ListRouting const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Ipv4ListRouting const &', 'arg0')])
|
||||
## ipv4-list-routing.h (module 'internet'): ns3::Ipv4ListRouting::Ipv4ListRouting() [constructor]
|
||||
cls.add_constructor([])
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::AddRoutingProtocol(ns3::Ptr<ns3::Ipv4RoutingProtocol> routingProtocol, int16_t priority) [member function]
|
||||
cls.add_method('AddRoutingProtocol',
|
||||
'void',
|
||||
[param('ns3::Ptr< ns3::Ipv4RoutingProtocol >', 'routingProtocol'), param('int16_t', 'priority')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): uint32_t ns3::Ipv4ListRouting::GetNRoutingProtocols() const [member function]
|
||||
cls.add_method('GetNRoutingProtocols',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::Ipv4ListRouting::GetRoutingProtocol(uint32_t index, int16_t & priority) const [member function]
|
||||
cls.add_method('GetRoutingProtocol',
|
||||
'ns3::Ptr< ns3::Ipv4RoutingProtocol >',
|
||||
[param('uint32_t', 'index'), param('int16_t &', 'priority', direction=2)],
|
||||
is_const=True, is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): static ns3::TypeId ns3::Ipv4ListRouting::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::NotifyAddAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
|
||||
cls.add_method('NotifyAddAddress',
|
||||
'void',
|
||||
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::NotifyInterfaceDown(uint32_t interface) [member function]
|
||||
cls.add_method('NotifyInterfaceDown',
|
||||
'void',
|
||||
[param('uint32_t', 'interface')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::NotifyInterfaceUp(uint32_t interface) [member function]
|
||||
cls.add_method('NotifyInterfaceUp',
|
||||
'void',
|
||||
[param('uint32_t', 'interface')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::NotifyRemoveAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
|
||||
cls.add_method('NotifyRemoveAddress',
|
||||
'void',
|
||||
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::PrintRoutingTable(ns3::Ptr<ns3::OutputStreamWrapper> stream) const [member function]
|
||||
cls.add_method('PrintRoutingTable',
|
||||
'void',
|
||||
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream')],
|
||||
is_const=True, is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): bool ns3::Ipv4ListRouting::RouteInput(ns3::Ptr<ns3::Packet const> p, ns3::Ipv4Header const & header, ns3::Ptr<const ns3::NetDevice> idev, ns3::Callback<void, ns3::Ptr<ns3::Ipv4Route>, ns3::Ptr<ns3::Packet const>, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb, ns3::Callback<void,ns3::Ptr<ns3::Ipv4MulticastRoute>,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback<void,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback<void, ns3::Ptr<ns3::Packet const>, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function]
|
||||
cls.add_method('RouteInput',
|
||||
'bool',
|
||||
[param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): ns3::Ptr<ns3::Ipv4Route> ns3::Ipv4ListRouting::RouteOutput(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Header const & header, ns3::Ptr<ns3::NetDevice> oif, ns3::Socket::SocketErrno & sockerr) [member function]
|
||||
cls.add_method('RouteOutput',
|
||||
'ns3::Ptr< ns3::Ipv4Route >',
|
||||
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice >', 'oif'), param('ns3::Socket::SocketErrno &', 'sockerr')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::SetIpv4(ns3::Ptr<ns3::Ipv4> ipv4) [member function]
|
||||
cls.add_method('SetIpv4',
|
||||
'void',
|
||||
[param('ns3::Ptr< ns3::Ipv4 >', 'ipv4')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::DoDispose() [member function]
|
||||
cls.add_method('DoDispose',
|
||||
'void',
|
||||
[],
|
||||
visibility='protected', is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::DoStart() [member function]
|
||||
cls.add_method('DoStart',
|
||||
'void',
|
||||
[],
|
||||
visibility='protected', is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3DsdvDsdvHeader_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## dsdv-packet.h (module 'dsdv'): ns3::dsdv::DsdvHeader::DsdvHeader(ns3::dsdv::DsdvHeader const & arg0) [copy constructor]
|
||||
|
||||
@@ -114,20 +114,12 @@ def register_types(module):
|
||||
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
|
||||
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
|
||||
module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator [class]
|
||||
module.add_class('PacketTagIterator', import_from_module='ns.network')
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
|
||||
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
|
||||
module.add_class('PacketTagList', import_from_module='ns.network')
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
|
||||
module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Chunk', 'ns3::ObjectBase', 'ns3::DefaultDeleter<ns3::Chunk>'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simulator.h (module 'core'): ns3::Simulator [class]
|
||||
module.add_class('Simulator', destructor_visibility='private', import_from_module='ns.core')
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
|
||||
module.add_class('TagBuffer', import_from_module='ns.network')
|
||||
## timer.h (module 'core'): ns3::Timer [class]
|
||||
@@ -151,7 +143,7 @@ def register_types(module):
|
||||
## int64x64-double.h (module 'core'): ns3::int64x64_t [class]
|
||||
module.add_class('int64x64_t', import_from_module='ns.core')
|
||||
## chunk.h (module 'network'): ns3::Chunk [class]
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
## dsdv-helper.h (module 'dsdv'): ns3::DsdvHelper [class]
|
||||
module.add_class('DsdvHelper', parent=root_module['ns3::Ipv4RoutingHelper'])
|
||||
## header.h (module 'network'): ns3::Header [class]
|
||||
@@ -198,12 +190,8 @@ def register_types(module):
|
||||
module.add_enum('SocketErrno', ['ERROR_NOTERROR', 'ERROR_ISCONN', 'ERROR_NOTCONN', 'ERROR_MSGSIZE', 'ERROR_AGAIN', 'ERROR_SHUTDOWN', 'ERROR_OPNOTSUPP', 'ERROR_AFNOSUPPORT', 'ERROR_INVAL', 'ERROR_BADF', 'ERROR_NOROUTETOHOST', 'ERROR_NODEV', 'ERROR_ADDRNOTAVAIL', 'ERROR_ADDRINUSE', 'SOCKET_ERRNO_LAST'], outer_class=root_module['ns3::Socket'], import_from_module='ns.network')
|
||||
## socket.h (module 'network'): ns3::Socket::SocketType [enumeration]
|
||||
module.add_enum('SocketType', ['NS3_SOCK_STREAM', 'NS3_SOCK_SEQPACKET', 'NS3_SOCK_DGRAM', 'NS3_SOCK_RAW'], outer_class=root_module['ns3::Socket'], import_from_module='ns.network')
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag [class]
|
||||
module.add_class('SocketAddressTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag [class]
|
||||
module.add_class('SocketIpTtlTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag [class]
|
||||
module.add_class('SocketSetDontFragmentTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::Object'])
|
||||
## nstime.h (module 'core'): ns3::Time [class]
|
||||
module.add_class('Time', import_from_module='ns.core')
|
||||
## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
|
||||
@@ -282,6 +270,12 @@ def register_types(module):
|
||||
module.add_class('OutputStreamWrapper', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> >'])
|
||||
## packet.h (module 'network'): ns3::Packet [class]
|
||||
module.add_class('Packet', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag [class]
|
||||
module.add_class('SocketAddressTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag [class]
|
||||
module.add_class('SocketIpTtlTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag [class]
|
||||
module.add_class('SocketSetDontFragmentTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## nstime.h (module 'core'): ns3::TimeChecker [class]
|
||||
module.add_class('TimeChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
|
||||
## nstime.h (module 'core'): ns3::TimeValue [class]
|
||||
@@ -294,6 +288,8 @@ def register_types(module):
|
||||
module.add_class('AddressChecker', import_from_module='ns.network', parent=root_module['ns3::AttributeChecker'])
|
||||
## address.h (module 'network'): ns3::AddressValue [class]
|
||||
module.add_class('AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
|
||||
## ipv4-list-routing.h (module 'internet'): ns3::Ipv4ListRouting [class]
|
||||
module.add_class('Ipv4ListRouting', import_from_module='ns.internet', parent=root_module['ns3::Ipv4RoutingProtocol'])
|
||||
module.add_container('std::map< unsigned int, unsigned int >', ('unsigned int', 'unsigned int'), container_type='map')
|
||||
|
||||
## Register a nested module for the namespace FatalImpl
|
||||
@@ -365,13 +361,9 @@ def register_methods(root_module):
|
||||
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_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
|
||||
register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
|
||||
register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
|
||||
register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
|
||||
register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
|
||||
register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
|
||||
register_Ns3Timer_methods(root_module, root_module['ns3::Timer'])
|
||||
register_Ns3TimerImpl_methods(root_module, root_module['ns3::TimerImpl'])
|
||||
@@ -399,9 +391,7 @@ def register_methods(root_module):
|
||||
register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
|
||||
register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >'])
|
||||
register_Ns3Socket_methods(root_module, root_module['ns3::Socket'])
|
||||
register_Ns3SocketAddressTag_methods(root_module, root_module['ns3::SocketAddressTag'])
|
||||
register_Ns3SocketIpTtlTag_methods(root_module, root_module['ns3::SocketIpTtlTag'])
|
||||
register_Ns3SocketSetDontFragmentTag_methods(root_module, root_module['ns3::SocketSetDontFragmentTag'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3Time_methods(root_module, root_module['ns3::Time'])
|
||||
register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
|
||||
register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
|
||||
@@ -436,12 +426,16 @@ def register_methods(root_module):
|
||||
register_Ns3ObjectFactoryValue_methods(root_module, root_module['ns3::ObjectFactoryValue'])
|
||||
register_Ns3OutputStreamWrapper_methods(root_module, root_module['ns3::OutputStreamWrapper'])
|
||||
register_Ns3Packet_methods(root_module, root_module['ns3::Packet'])
|
||||
register_Ns3SocketAddressTag_methods(root_module, root_module['ns3::SocketAddressTag'])
|
||||
register_Ns3SocketIpTtlTag_methods(root_module, root_module['ns3::SocketIpTtlTag'])
|
||||
register_Ns3SocketSetDontFragmentTag_methods(root_module, root_module['ns3::SocketSetDontFragmentTag'])
|
||||
register_Ns3TimeChecker_methods(root_module, root_module['ns3::TimeChecker'])
|
||||
register_Ns3TimeValue_methods(root_module, root_module['ns3::TimeValue'])
|
||||
register_Ns3TypeIdChecker_methods(root_module, root_module['ns3::TypeIdChecker'])
|
||||
register_Ns3TypeIdValue_methods(root_module, root_module['ns3::TypeIdValue'])
|
||||
register_Ns3AddressChecker_methods(root_module, root_module['ns3::AddressChecker'])
|
||||
register_Ns3AddressValue_methods(root_module, root_module['ns3::AddressValue'])
|
||||
register_Ns3Ipv4ListRouting_methods(root_module, root_module['ns3::Ipv4ListRouting'])
|
||||
register_Ns3DsdvDsdvHeader_methods(root_module, root_module['ns3::dsdv::DsdvHeader'])
|
||||
register_Ns3DsdvPacketQueue_methods(root_module, root_module['ns3::dsdv::PacketQueue'])
|
||||
register_Ns3DsdvQueueEntry_methods(root_module, root_module['ns3::dsdv::QueueEntry'])
|
||||
@@ -695,6 +689,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Next',
|
||||
'void',
|
||||
[param('uint32_t', 'delta')])
|
||||
## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function]
|
||||
cls.add_method('PeekU8',
|
||||
'uint8_t',
|
||||
[])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
|
||||
cls.add_method('Prev',
|
||||
'void',
|
||||
@@ -707,6 +705,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function]
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
|
||||
cls.add_method('ReadLsbtohU16',
|
||||
'uint16_t',
|
||||
@@ -1050,9 +1052,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
@@ -1639,6 +1641,21 @@ def register_Ns3NodeContainer_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::NodeContainer other) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::NodeContainer', 'other')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::Ptr<ns3::Node> node) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::Ptr< ns3::Node >', 'node')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(std::string nodeName) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('std::string', 'nodeName')],
|
||||
custom_name='__call__')
|
||||
return
|
||||
|
||||
def register_Ns3ObjectBase_methods(root_module, cls):
|
||||
@@ -1863,78 +1880,16 @@ def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIterator_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
|
||||
## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
|
||||
cls.add_method('HasNext',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::PacketTagIterator::Item',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
|
||||
## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('GetTag',
|
||||
'void',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagList_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
|
||||
def register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
|
||||
cls.add_method('Add',
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter< ns3::Chunk > > const &', 'o')])
|
||||
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::Cleanup() [member function]
|
||||
cls.add_method('Cleanup',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
|
||||
cls.add_method('Head',
|
||||
'ns3::PacketTagList::TagData const *',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('Peek',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
|
||||
cls.add_method('Remove',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
|
||||
cls.add_method('RemoveAll',
|
||||
'void',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagListTagData_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
|
||||
cls.add_instance_attribute('count', 'uint32_t', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
|
||||
cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
|
||||
cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
|
||||
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
|
||||
@@ -1997,11 +1952,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'bool',
|
||||
[],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::Time',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Now() [member function]
|
||||
cls.add_method('Now',
|
||||
'ns3::Time',
|
||||
@@ -2012,11 +1962,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'void',
|
||||
[param('ns3::EventId const &', 'id')],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::RunOneEvent() [member function]
|
||||
cls.add_method('RunOneEvent',
|
||||
'void',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::SetImplementation(ns3::Ptr<ns3::SimulatorImpl> impl) [member function]
|
||||
cls.add_method('SetImplementation',
|
||||
'void',
|
||||
@@ -2039,38 +1984,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TagBuffer_methods(root_module, cls):
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
|
||||
@@ -3284,146 +3197,37 @@ def register_Ns3Socket_methods(root_module, cls):
|
||||
visibility='protected')
|
||||
return
|
||||
|
||||
def register_Ns3SocketAddressTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag(ns3::SocketAddressTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketAddressTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag() [constructor]
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::Address ns3::SocketAddressTag::GetAddress() const [member function]
|
||||
cls.add_method('GetAddress',
|
||||
'ns3::Address',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketAddressTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketAddressTag::GetSerializedSize() const [member function]
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketAddressTag::GetTypeId() [member function]
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Print(std::ostream & os) const [member function]
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::SetAddress(ns3::Address addr) [member function]
|
||||
cls.add_method('SetAddress',
|
||||
'void',
|
||||
[param('ns3::Address', 'addr')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketIpTtlTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag(ns3::SocketIpTtlTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketIpTtlTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketIpTtlTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketIpTtlTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint8_t ns3::SocketIpTtlTag::GetTtl() const [member function]
|
||||
cls.add_method('GetTtl',
|
||||
'uint8_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketIpTtlTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::SetTtl(uint8_t ttl) [member function]
|
||||
cls.add_method('SetTtl',
|
||||
'void',
|
||||
[param('uint8_t', 'ttl')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketSetDontFragmentTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag(ns3::SocketSetDontFragmentTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketSetDontFragmentTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Disable() [member function]
|
||||
cls.add_method('Disable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Enable() [member function]
|
||||
cls.add_method('Enable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketSetDontFragmentTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketSetDontFragmentTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketSetDontFragmentTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): bool ns3::SocketSetDontFragmentTag::IsEnabled() const [member function]
|
||||
cls.add_method('IsEnabled',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Time_methods(root_module, cls):
|
||||
@@ -5120,11 +4924,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('AddHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Ptr<const ns3::Tag> tag) [member function]
|
||||
cls.add_method('AddPacketTag',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
[param('ns3::Ptr< ns3::Tag const >', 'tag')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
|
||||
cls.add_method('AddPaddingAtEnd',
|
||||
'void',
|
||||
@@ -5183,11 +4986,6 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::NixVector >',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
|
||||
cls.add_method('GetPacketTagIterator',
|
||||
'ns3::PacketTagIterator',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
@@ -5213,10 +5011,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::PeekPacketTag(ns3::TypeId tagType) const [member function]
|
||||
cls.add_method('PeekPacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('PeekTrailer',
|
||||
@@ -5257,10 +5055,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('RemoveHeader',
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')])
|
||||
## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::RemovePacketTag(ns3::TypeId tagType) [member function]
|
||||
cls.add_method('RemovePacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')])
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('RemoveTrailer',
|
||||
'uint32_t',
|
||||
@@ -5276,6 +5074,148 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
[param('ns3::Ptr< ns3::NixVector >', 'arg0')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketAddressTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag(ns3::SocketAddressTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketAddressTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::Address ns3::SocketAddressTag::GetAddress() const [member function]
|
||||
cls.add_method('GetAddress',
|
||||
'ns3::Address',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketAddressTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketAddressTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketAddressTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::SetAddress(ns3::Address addr) [member function]
|
||||
cls.add_method('SetAddress',
|
||||
'void',
|
||||
[param('ns3::Address', 'addr')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketIpTtlTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag(ns3::SocketIpTtlTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketIpTtlTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketIpTtlTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketIpTtlTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint8_t ns3::SocketIpTtlTag::GetTtl() const [member function]
|
||||
cls.add_method('GetTtl',
|
||||
'uint8_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketIpTtlTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::SetTtl(uint8_t ttl) [member function]
|
||||
cls.add_method('SetTtl',
|
||||
'void',
|
||||
[param('uint8_t', 'ttl')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketSetDontFragmentTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag(ns3::SocketSetDontFragmentTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketSetDontFragmentTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Disable() [member function]
|
||||
cls.add_method('Disable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Enable() [member function]
|
||||
cls.add_method('Enable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketSetDontFragmentTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketSetDontFragmentTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketSetDontFragmentTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): bool ns3::SocketSetDontFragmentTag::IsEnabled() const [member function]
|
||||
cls.add_method('IsEnabled',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TimeChecker_methods(root_module, cls):
|
||||
## nstime.h (module 'core'): ns3::TimeChecker::TimeChecker() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -5396,6 +5336,83 @@ def register_Ns3AddressValue_methods(root_module, cls):
|
||||
[param('ns3::Address const &', 'value')])
|
||||
return
|
||||
|
||||
def register_Ns3Ipv4ListRouting_methods(root_module, cls):
|
||||
## ipv4-list-routing.h (module 'internet'): ns3::Ipv4ListRouting::Ipv4ListRouting(ns3::Ipv4ListRouting const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Ipv4ListRouting const &', 'arg0')])
|
||||
## ipv4-list-routing.h (module 'internet'): ns3::Ipv4ListRouting::Ipv4ListRouting() [constructor]
|
||||
cls.add_constructor([])
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::AddRoutingProtocol(ns3::Ptr<ns3::Ipv4RoutingProtocol> routingProtocol, int16_t priority) [member function]
|
||||
cls.add_method('AddRoutingProtocol',
|
||||
'void',
|
||||
[param('ns3::Ptr< ns3::Ipv4RoutingProtocol >', 'routingProtocol'), param('int16_t', 'priority')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): uint32_t ns3::Ipv4ListRouting::GetNRoutingProtocols() const [member function]
|
||||
cls.add_method('GetNRoutingProtocols',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): ns3::Ptr<ns3::Ipv4RoutingProtocol> ns3::Ipv4ListRouting::GetRoutingProtocol(uint32_t index, int16_t & priority) const [member function]
|
||||
cls.add_method('GetRoutingProtocol',
|
||||
'ns3::Ptr< ns3::Ipv4RoutingProtocol >',
|
||||
[param('uint32_t', 'index'), param('int16_t &', 'priority', direction=2)],
|
||||
is_const=True, is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): static ns3::TypeId ns3::Ipv4ListRouting::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::NotifyAddAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
|
||||
cls.add_method('NotifyAddAddress',
|
||||
'void',
|
||||
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::NotifyInterfaceDown(uint32_t interface) [member function]
|
||||
cls.add_method('NotifyInterfaceDown',
|
||||
'void',
|
||||
[param('uint32_t', 'interface')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::NotifyInterfaceUp(uint32_t interface) [member function]
|
||||
cls.add_method('NotifyInterfaceUp',
|
||||
'void',
|
||||
[param('uint32_t', 'interface')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::NotifyRemoveAddress(uint32_t interface, ns3::Ipv4InterfaceAddress address) [member function]
|
||||
cls.add_method('NotifyRemoveAddress',
|
||||
'void',
|
||||
[param('uint32_t', 'interface'), param('ns3::Ipv4InterfaceAddress', 'address')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::PrintRoutingTable(ns3::Ptr<ns3::OutputStreamWrapper> stream) const [member function]
|
||||
cls.add_method('PrintRoutingTable',
|
||||
'void',
|
||||
[param('ns3::Ptr< ns3::OutputStreamWrapper >', 'stream')],
|
||||
is_const=True, is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): bool ns3::Ipv4ListRouting::RouteInput(ns3::Ptr<ns3::Packet const> p, ns3::Ipv4Header const & header, ns3::Ptr<const ns3::NetDevice> idev, ns3::Callback<void, ns3::Ptr<ns3::Ipv4Route>, ns3::Ptr<ns3::Packet const>, ns3::Ipv4Header const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ucb, ns3::Callback<void,ns3::Ptr<ns3::Ipv4MulticastRoute>,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> mcb, ns3::Callback<void,ns3::Ptr<const ns3::Packet>,const ns3::Ipv4Header&,unsigned int,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty,ns3::empty> lcb, ns3::Callback<void, ns3::Ptr<ns3::Packet const>, ns3::Ipv4Header const&, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty> ecb) [member function]
|
||||
cls.add_method('RouteInput',
|
||||
'bool',
|
||||
[param('ns3::Ptr< ns3::Packet const >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice const >', 'idev'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4Route >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ucb'), param('ns3::Callback< void, ns3::Ptr< ns3::Ipv4MulticastRoute >, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'mcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'lcb'), param('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::Ipv4Header const &, ns3::Socket::SocketErrno, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ecb')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): ns3::Ptr<ns3::Ipv4Route> ns3::Ipv4ListRouting::RouteOutput(ns3::Ptr<ns3::Packet> p, ns3::Ipv4Header const & header, ns3::Ptr<ns3::NetDevice> oif, ns3::Socket::SocketErrno & sockerr) [member function]
|
||||
cls.add_method('RouteOutput',
|
||||
'ns3::Ptr< ns3::Ipv4Route >',
|
||||
[param('ns3::Ptr< ns3::Packet >', 'p'), param('ns3::Ipv4Header const &', 'header'), param('ns3::Ptr< ns3::NetDevice >', 'oif'), param('ns3::Socket::SocketErrno &', 'sockerr')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::SetIpv4(ns3::Ptr<ns3::Ipv4> ipv4) [member function]
|
||||
cls.add_method('SetIpv4',
|
||||
'void',
|
||||
[param('ns3::Ptr< ns3::Ipv4 >', 'ipv4')],
|
||||
is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::DoDispose() [member function]
|
||||
cls.add_method('DoDispose',
|
||||
'void',
|
||||
[],
|
||||
visibility='protected', is_virtual=True)
|
||||
## ipv4-list-routing.h (module 'internet'): void ns3::Ipv4ListRouting::DoStart() [member function]
|
||||
cls.add_method('DoStart',
|
||||
'void',
|
||||
[],
|
||||
visibility='protected', is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3DsdvDsdvHeader_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## dsdv-packet.h (module 'dsdv'): ns3::dsdv::DsdvHeader::DsdvHeader(ns3::dsdv::DsdvHeader const & arg0) [copy constructor]
|
||||
|
||||
@@ -317,10 +317,9 @@ RoutingProtocol::RouteOutput (Ptr<Packet> p,
|
||||
if (EnableBuffering)
|
||||
{
|
||||
uint32_t iif = (oif ? m_ipv4->GetInterfaceForDevice (oif) : -1);
|
||||
DeferredRouteOutputTag tag (iif);
|
||||
if (!p->PeekPacketTag (tag))
|
||||
if (p->PeekPacketTag<DeferredRouteOutputTag> () == 0)
|
||||
{
|
||||
p->AddPacketTag (tag);
|
||||
p->AddPacketTag (CreateObject<DeferredRouteOutputTag> (iif));
|
||||
}
|
||||
}
|
||||
return LoopbackRoute (header,oif);
|
||||
@@ -377,8 +376,7 @@ RoutingProtocol::RouteInput (Ptr<const Packet> p,
|
||||
// Deferred route request
|
||||
if (EnableBuffering == true && idev == m_lo)
|
||||
{
|
||||
DeferredRouteOutputTag tag;
|
||||
if (p->PeekPacketTag (tag))
|
||||
if (p->PeekPacketTag<DeferredRouteOutputTag> () != 0)
|
||||
{
|
||||
DeferredRouteOutput (p,header,ucb,ecb);
|
||||
return true;
|
||||
@@ -1121,11 +1119,11 @@ RoutingProtocol::SendPacketFromQueue (Ipv4Address dst,
|
||||
QueueEntry queueEntry;
|
||||
if (m_queue.Dequeue (dst,queueEntry))
|
||||
{
|
||||
DeferredRouteOutputTag tag;
|
||||
Ptr<Packet> p = ConstCast<Packet> (queueEntry.GetPacket ());
|
||||
if (p->RemovePacketTag (tag))
|
||||
Ptr<const DeferredRouteOutputTag> tag = p->RemovePacketTag<DeferredRouteOutputTag> ();
|
||||
if (tag != 0)
|
||||
{
|
||||
if (tag.oif != -1 && tag.oif != m_ipv4->GetInterfaceForDevice (route->GetOutputDevice ()))
|
||||
if (tag->oif != -1 && tag->oif != m_ipv4->GetInterfaceForDevice (route->GetOutputDevice ()))
|
||||
{
|
||||
NS_LOG_DEBUG ("Output device doesn't match. Dropped.");
|
||||
return;
|
||||
|
||||
@@ -88,14 +88,6 @@ def register_types(module):
|
||||
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
|
||||
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
|
||||
module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator [class]
|
||||
module.add_class('PacketTagIterator', import_from_module='ns.network')
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
|
||||
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
|
||||
module.add_class('PacketTagList', import_from_module='ns.network')
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
|
||||
module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
|
||||
## pcap-file.h (module 'network'): ns3::PcapFile [class]
|
||||
module.add_class('PcapFile', import_from_module='ns.network')
|
||||
## trace-helper.h (module 'network'): ns3::PcapHelper [class]
|
||||
@@ -104,14 +96,14 @@ def register_types(module):
|
||||
module.add_enum('', ['DLT_NULL', 'DLT_EN10MB', 'DLT_PPP', 'DLT_RAW', 'DLT_IEEE802_11', 'DLT_PRISM_HEADER', 'DLT_IEEE802_11_RADIO'], outer_class=root_module['ns3::PcapHelper'], import_from_module='ns.network')
|
||||
## trace-helper.h (module 'network'): ns3::PcapHelperForDevice [class]
|
||||
module.add_class('PcapHelperForDevice', allow_subclassing=True, import_from_module='ns.network')
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Chunk', 'ns3::ObjectBase', 'ns3::DefaultDeleter<ns3::Chunk>'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simulator.h (module 'core'): ns3::Simulator [class]
|
||||
module.add_class('Simulator', destructor_visibility='private', import_from_module='ns.core')
|
||||
## system-mutex.h (module 'core'): ns3::SystemMutex [class]
|
||||
module.add_class('SystemMutex', import_from_module='ns.core')
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
|
||||
module.add_class('TagBuffer', import_from_module='ns.network')
|
||||
## type-id.h (module 'core'): ns3::TypeId [class]
|
||||
@@ -127,7 +119,7 @@ def register_types(module):
|
||||
## int64x64-double.h (module 'core'): ns3::int64x64_t [class]
|
||||
module.add_class('int64x64_t', import_from_module='ns.core')
|
||||
## chunk.h (module 'network'): ns3::Chunk [class]
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
## emu-helper.h (module 'emu'): ns3::EmuHelper [class]
|
||||
module.add_class('EmuHelper', parent=[root_module['ns3::PcapHelperForDevice'], root_module['ns3::AsciiTraceHelperForDevice']])
|
||||
## header.h (module 'network'): ns3::Header [class]
|
||||
@@ -160,6 +152,8 @@ def register_types(module):
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::TraceSourceAccessor', 'ns3::empty', 'ns3::DefaultDeleter<ns3::TraceSourceAccessor>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## system-thread.h (module 'core'): ns3::SystemThread [class]
|
||||
module.add_class('SystemThread', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::SystemThread, ns3::empty, ns3::DefaultDeleter<ns3::SystemThread> >'])
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::Object'])
|
||||
## nstime.h (module 'core'): ns3::Time [class]
|
||||
module.add_class('Time', import_from_module='ns.core')
|
||||
## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
|
||||
@@ -283,17 +277,13 @@ def register_methods(root_module):
|
||||
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_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
|
||||
register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
|
||||
register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
|
||||
register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
|
||||
register_Ns3PcapFile_methods(root_module, root_module['ns3::PcapFile'])
|
||||
register_Ns3PcapHelper_methods(root_module, root_module['ns3::PcapHelper'])
|
||||
register_Ns3PcapHelperForDevice_methods(root_module, root_module['ns3::PcapHelperForDevice'])
|
||||
register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
|
||||
register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator'])
|
||||
register_Ns3SystemMutex_methods(root_module, root_module['ns3::SystemMutex'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
|
||||
register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
|
||||
register_Ns3TypeIdAttributeInformation_methods(root_module, root_module['ns3::TypeId::AttributeInformation'])
|
||||
@@ -317,6 +307,7 @@ def register_methods(root_module):
|
||||
register_Ns3SimpleRefCount__Ns3SystemThread_Ns3Empty_Ns3DefaultDeleter__lt__ns3SystemThread__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::SystemThread, ns3::empty, ns3::DefaultDeleter<ns3::SystemThread> >'])
|
||||
register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >'])
|
||||
register_Ns3SystemThread_methods(root_module, root_module['ns3::SystemThread'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3Time_methods(root_module, root_module['ns3::Time'])
|
||||
register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
|
||||
register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
|
||||
@@ -720,6 +711,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Next',
|
||||
'void',
|
||||
[param('uint32_t', 'delta')])
|
||||
## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function]
|
||||
cls.add_method('PeekU8',
|
||||
'uint8_t',
|
||||
[])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
|
||||
cls.add_method('Prev',
|
||||
'void',
|
||||
@@ -732,6 +727,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function]
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
|
||||
cls.add_method('ReadLsbtohU16',
|
||||
'uint16_t',
|
||||
@@ -1061,9 +1060,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
@@ -1614,6 +1613,21 @@ def register_Ns3NodeContainer_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::NodeContainer other) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::NodeContainer', 'other')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::Ptr<ns3::Node> node) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::Ptr< ns3::Node >', 'node')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(std::string nodeName) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('std::string', 'nodeName')],
|
||||
custom_name='__call__')
|
||||
return
|
||||
|
||||
def register_Ns3ObjectBase_methods(root_module, cls):
|
||||
@@ -1838,80 +1852,6 @@ def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIterator_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
|
||||
## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
|
||||
cls.add_method('HasNext',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::PacketTagIterator::Item',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
|
||||
## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('GetTag',
|
||||
'void',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagList_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
|
||||
cls.add_method('Add',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
|
||||
cls.add_method('Head',
|
||||
'ns3::PacketTagList::TagData const *',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('Peek',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
|
||||
cls.add_method('Remove',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
|
||||
cls.add_method('RemoveAll',
|
||||
'void',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagListTagData_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
|
||||
cls.add_instance_attribute('count', 'uint32_t', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
|
||||
cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
|
||||
cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
|
||||
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
|
||||
return
|
||||
|
||||
def register_Ns3PcapFile_methods(root_module, cls):
|
||||
## pcap-file.h (module 'network'): ns3::PcapFile::PcapFile() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -2055,6 +1995,18 @@ def register_Ns3PcapHelperForDevice_methods(root_module, cls):
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter< ns3::Chunk > > const &', 'o')])
|
||||
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::Cleanup() [member function]
|
||||
cls.add_method('Cleanup',
|
||||
'void',
|
||||
[],
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -2115,11 +2067,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'bool',
|
||||
[],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::Time',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Now() [member function]
|
||||
cls.add_method('Now',
|
||||
'ns3::Time',
|
||||
@@ -2130,11 +2077,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'void',
|
||||
[param('ns3::EventId const &', 'id')],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::RunOneEvent() [member function]
|
||||
cls.add_method('RunOneEvent',
|
||||
'void',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::SetImplementation(ns3::Ptr<ns3::SimulatorImpl> impl) [member function]
|
||||
cls.add_method('SetImplementation',
|
||||
'void',
|
||||
@@ -2172,38 +2114,6 @@ def register_Ns3SystemMutex_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TagBuffer_methods(root_module, cls):
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
|
||||
@@ -2937,6 +2847,39 @@ def register_Ns3SystemThread_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Time_methods(root_module, cls):
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
@@ -3914,11 +3857,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('AddHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Ptr<const ns3::Tag> tag) [member function]
|
||||
cls.add_method('AddPacketTag',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
[param('ns3::Ptr< ns3::Tag const >', 'tag')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
|
||||
cls.add_method('AddPaddingAtEnd',
|
||||
'void',
|
||||
@@ -3977,11 +3919,6 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::NixVector >',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
|
||||
cls.add_method('GetPacketTagIterator',
|
||||
'ns3::PacketTagIterator',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
@@ -4007,10 +3944,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::PeekPacketTag(ns3::TypeId tagType) const [member function]
|
||||
cls.add_method('PeekPacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('PeekTrailer',
|
||||
@@ -4051,10 +3988,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('RemoveHeader',
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')])
|
||||
## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::RemovePacketTag(ns3::TypeId tagType) [member function]
|
||||
cls.add_method('RemovePacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')])
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('RemoveTrailer',
|
||||
'uint32_t',
|
||||
|
||||
@@ -88,14 +88,6 @@ def register_types(module):
|
||||
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
|
||||
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
|
||||
module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator [class]
|
||||
module.add_class('PacketTagIterator', import_from_module='ns.network')
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
|
||||
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
|
||||
module.add_class('PacketTagList', import_from_module='ns.network')
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
|
||||
module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
|
||||
## pcap-file.h (module 'network'): ns3::PcapFile [class]
|
||||
module.add_class('PcapFile', import_from_module='ns.network')
|
||||
## trace-helper.h (module 'network'): ns3::PcapHelper [class]
|
||||
@@ -104,14 +96,14 @@ def register_types(module):
|
||||
module.add_enum('', ['DLT_NULL', 'DLT_EN10MB', 'DLT_PPP', 'DLT_RAW', 'DLT_IEEE802_11', 'DLT_PRISM_HEADER', 'DLT_IEEE802_11_RADIO'], outer_class=root_module['ns3::PcapHelper'], import_from_module='ns.network')
|
||||
## trace-helper.h (module 'network'): ns3::PcapHelperForDevice [class]
|
||||
module.add_class('PcapHelperForDevice', allow_subclassing=True, import_from_module='ns.network')
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Chunk', 'ns3::ObjectBase', 'ns3::DefaultDeleter<ns3::Chunk>'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simulator.h (module 'core'): ns3::Simulator [class]
|
||||
module.add_class('Simulator', destructor_visibility='private', import_from_module='ns.core')
|
||||
## system-mutex.h (module 'core'): ns3::SystemMutex [class]
|
||||
module.add_class('SystemMutex', import_from_module='ns.core')
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
|
||||
module.add_class('TagBuffer', import_from_module='ns.network')
|
||||
## type-id.h (module 'core'): ns3::TypeId [class]
|
||||
@@ -127,7 +119,7 @@ def register_types(module):
|
||||
## int64x64-double.h (module 'core'): ns3::int64x64_t [class]
|
||||
module.add_class('int64x64_t', import_from_module='ns.core')
|
||||
## chunk.h (module 'network'): ns3::Chunk [class]
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
## emu-helper.h (module 'emu'): ns3::EmuHelper [class]
|
||||
module.add_class('EmuHelper', parent=[root_module['ns3::PcapHelperForDevice'], root_module['ns3::AsciiTraceHelperForDevice']])
|
||||
## header.h (module 'network'): ns3::Header [class]
|
||||
@@ -160,6 +152,8 @@ def register_types(module):
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::TraceSourceAccessor', 'ns3::empty', 'ns3::DefaultDeleter<ns3::TraceSourceAccessor>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## system-thread.h (module 'core'): ns3::SystemThread [class]
|
||||
module.add_class('SystemThread', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::SystemThread, ns3::empty, ns3::DefaultDeleter<ns3::SystemThread> >'])
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::Object'])
|
||||
## nstime.h (module 'core'): ns3::Time [class]
|
||||
module.add_class('Time', import_from_module='ns.core')
|
||||
## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
|
||||
@@ -283,17 +277,13 @@ def register_methods(root_module):
|
||||
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_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
|
||||
register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
|
||||
register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
|
||||
register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
|
||||
register_Ns3PcapFile_methods(root_module, root_module['ns3::PcapFile'])
|
||||
register_Ns3PcapHelper_methods(root_module, root_module['ns3::PcapHelper'])
|
||||
register_Ns3PcapHelperForDevice_methods(root_module, root_module['ns3::PcapHelperForDevice'])
|
||||
register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
|
||||
register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator'])
|
||||
register_Ns3SystemMutex_methods(root_module, root_module['ns3::SystemMutex'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
|
||||
register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
|
||||
register_Ns3TypeIdAttributeInformation_methods(root_module, root_module['ns3::TypeId::AttributeInformation'])
|
||||
@@ -317,6 +307,7 @@ def register_methods(root_module):
|
||||
register_Ns3SimpleRefCount__Ns3SystemThread_Ns3Empty_Ns3DefaultDeleter__lt__ns3SystemThread__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::SystemThread, ns3::empty, ns3::DefaultDeleter<ns3::SystemThread> >'])
|
||||
register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >'])
|
||||
register_Ns3SystemThread_methods(root_module, root_module['ns3::SystemThread'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3Time_methods(root_module, root_module['ns3::Time'])
|
||||
register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
|
||||
register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
|
||||
@@ -720,6 +711,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Next',
|
||||
'void',
|
||||
[param('uint32_t', 'delta')])
|
||||
## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function]
|
||||
cls.add_method('PeekU8',
|
||||
'uint8_t',
|
||||
[])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
|
||||
cls.add_method('Prev',
|
||||
'void',
|
||||
@@ -732,6 +727,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function]
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
|
||||
cls.add_method('ReadLsbtohU16',
|
||||
'uint16_t',
|
||||
@@ -1061,9 +1060,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
@@ -1614,6 +1613,21 @@ def register_Ns3NodeContainer_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::NodeContainer other) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::NodeContainer', 'other')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::Ptr<ns3::Node> node) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::Ptr< ns3::Node >', 'node')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(std::string nodeName) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('std::string', 'nodeName')],
|
||||
custom_name='__call__')
|
||||
return
|
||||
|
||||
def register_Ns3ObjectBase_methods(root_module, cls):
|
||||
@@ -1838,80 +1852,6 @@ def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIterator_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
|
||||
## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
|
||||
cls.add_method('HasNext',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::PacketTagIterator::Item',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
|
||||
## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('GetTag',
|
||||
'void',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagList_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
|
||||
cls.add_method('Add',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
|
||||
cls.add_method('Head',
|
||||
'ns3::PacketTagList::TagData const *',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('Peek',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
|
||||
cls.add_method('Remove',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
|
||||
cls.add_method('RemoveAll',
|
||||
'void',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagListTagData_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
|
||||
cls.add_instance_attribute('count', 'uint32_t', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
|
||||
cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
|
||||
cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
|
||||
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
|
||||
return
|
||||
|
||||
def register_Ns3PcapFile_methods(root_module, cls):
|
||||
## pcap-file.h (module 'network'): ns3::PcapFile::PcapFile() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -2055,6 +1995,18 @@ def register_Ns3PcapHelperForDevice_methods(root_module, cls):
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter< ns3::Chunk > > const &', 'o')])
|
||||
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::Cleanup() [member function]
|
||||
cls.add_method('Cleanup',
|
||||
'void',
|
||||
[],
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -2115,11 +2067,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'bool',
|
||||
[],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::Time',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Now() [member function]
|
||||
cls.add_method('Now',
|
||||
'ns3::Time',
|
||||
@@ -2130,11 +2077,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'void',
|
||||
[param('ns3::EventId const &', 'id')],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::RunOneEvent() [member function]
|
||||
cls.add_method('RunOneEvent',
|
||||
'void',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::SetImplementation(ns3::Ptr<ns3::SimulatorImpl> impl) [member function]
|
||||
cls.add_method('SetImplementation',
|
||||
'void',
|
||||
@@ -2172,38 +2114,6 @@ def register_Ns3SystemMutex_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TagBuffer_methods(root_module, cls):
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
|
||||
@@ -2937,6 +2847,39 @@ def register_Ns3SystemThread_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Time_methods(root_module, cls):
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
@@ -3914,11 +3857,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('AddHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Ptr<const ns3::Tag> tag) [member function]
|
||||
cls.add_method('AddPacketTag',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
[param('ns3::Ptr< ns3::Tag const >', 'tag')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
|
||||
cls.add_method('AddPaddingAtEnd',
|
||||
'void',
|
||||
@@ -3977,11 +3919,6 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::NixVector >',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
|
||||
cls.add_method('GetPacketTagIterator',
|
||||
'ns3::PacketTagIterator',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
@@ -4007,10 +3944,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::PeekPacketTag(ns3::TypeId tagType) const [member function]
|
||||
cls.add_method('PeekPacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('PeekTrailer',
|
||||
@@ -4051,10 +3988,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('RemoveHeader',
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')])
|
||||
## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::RemovePacketTag(ns3::TypeId tagType) [member function]
|
||||
cls.add_method('RemovePacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')])
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('RemoveTrailer',
|
||||
'uint32_t',
|
||||
|
||||
@@ -90,20 +90,12 @@ def register_types(module):
|
||||
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
|
||||
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
|
||||
module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator [class]
|
||||
module.add_class('PacketTagIterator', import_from_module='ns.network')
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
|
||||
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
|
||||
module.add_class('PacketTagList', import_from_module='ns.network')
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
|
||||
module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
|
||||
## rv-battery-model-helper.h (module 'energy'): ns3::RvBatteryModelHelper [class]
|
||||
module.add_class('RvBatteryModelHelper', parent=root_module['ns3::EnergySourceHelper'])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Chunk', 'ns3::ObjectBase', 'ns3::DefaultDeleter<ns3::Chunk>'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
|
||||
module.add_class('TagBuffer', import_from_module='ns.network')
|
||||
## traced-value.h (module 'core'): ns3::TracedValue<double> [class]
|
||||
@@ -133,7 +125,7 @@ def register_types(module):
|
||||
## basic-energy-source-helper.h (module 'energy'): ns3::BasicEnergySourceHelper [class]
|
||||
module.add_class('BasicEnergySourceHelper', parent=root_module['ns3::EnergySourceHelper'])
|
||||
## chunk.h (module 'network'): ns3::Chunk [class]
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
## header.h (module 'network'): ns3::Header [class]
|
||||
module.add_class('Header', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
|
||||
## object.h (module 'core'): ns3::Object [class]
|
||||
@@ -156,6 +148,8 @@ def register_types(module):
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Packet', 'ns3::empty', 'ns3::DefaultDeleter<ns3::Packet>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::TraceSourceAccessor', 'ns3::empty', 'ns3::DefaultDeleter<ns3::TraceSourceAccessor>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::Object'])
|
||||
## nstime.h (module 'core'): ns3::Time [class]
|
||||
module.add_class('Time', import_from_module='ns.core')
|
||||
## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
|
||||
@@ -266,12 +260,12 @@ def register_types(module):
|
||||
module.add_class('AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
|
||||
## basic-energy-source.h (module 'energy'): ns3::BasicEnergySource [class]
|
||||
module.add_class('BasicEnergySource', parent=root_module['ns3::EnergySource'])
|
||||
typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >', 'ns3::WifiModeList')
|
||||
typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >*', 'ns3::WifiModeList*')
|
||||
typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >&', 'ns3::WifiModeList&')
|
||||
typehandlers.add_type_alias('__gnu_cxx::__normal_iterator< ns3::WifiMode const *, std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > > >', 'ns3::WifiModeListIterator')
|
||||
typehandlers.add_type_alias('__gnu_cxx::__normal_iterator< ns3::WifiMode const *, std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > > >*', 'ns3::WifiModeListIterator*')
|
||||
typehandlers.add_type_alias('__gnu_cxx::__normal_iterator< ns3::WifiMode const *, std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > > >&', 'ns3::WifiModeListIterator&')
|
||||
typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >', 'ns3::WifiModeList')
|
||||
typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >*', 'ns3::WifiModeList*')
|
||||
typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >&', 'ns3::WifiModeList&')
|
||||
|
||||
## Register a nested module for the namespace FatalImpl
|
||||
|
||||
@@ -321,13 +315,9 @@ def register_methods(root_module):
|
||||
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_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
|
||||
register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
|
||||
register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
|
||||
register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
|
||||
register_Ns3RvBatteryModelHelper_methods(root_module, root_module['ns3::RvBatteryModelHelper'])
|
||||
register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
|
||||
register_Ns3TracedValue__Double_methods(root_module, root_module['ns3::TracedValue< double >'])
|
||||
register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
|
||||
@@ -353,6 +343,7 @@ def register_methods(root_module):
|
||||
register_Ns3SimpleRefCount__Ns3NixVector_Ns3Empty_Ns3DefaultDeleter__lt__ns3NixVector__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
|
||||
register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3Time_methods(root_module, root_module['ns3::Time'])
|
||||
register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
|
||||
register_Ns3TracedValue__Ns3Time_methods(root_module, root_module['ns3::TracedValue< ns3::Time >'])
|
||||
@@ -650,6 +641,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Next',
|
||||
'void',
|
||||
[param('uint32_t', 'delta')])
|
||||
## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function]
|
||||
cls.add_method('PeekU8',
|
||||
'uint8_t',
|
||||
[])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
|
||||
cls.add_method('Prev',
|
||||
'void',
|
||||
@@ -662,6 +657,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function]
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
|
||||
cls.add_method('ReadLsbtohU16',
|
||||
'uint16_t',
|
||||
@@ -1069,9 +1068,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
@@ -1550,6 +1549,21 @@ def register_Ns3NodeContainer_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::NodeContainer other) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::NodeContainer', 'other')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::Ptr<ns3::Node> node) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::Ptr< ns3::Node >', 'node')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(std::string nodeName) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('std::string', 'nodeName')],
|
||||
custom_name='__call__')
|
||||
return
|
||||
|
||||
def register_Ns3ObjectBase_methods(root_module, cls):
|
||||
@@ -1774,80 +1788,6 @@ def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIterator_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
|
||||
## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
|
||||
cls.add_method('HasNext',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::PacketTagIterator::Item',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
|
||||
## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('GetTag',
|
||||
'void',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagList_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
|
||||
cls.add_method('Add',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
|
||||
cls.add_method('Head',
|
||||
'ns3::PacketTagList::TagData const *',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('Peek',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
|
||||
cls.add_method('Remove',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
|
||||
cls.add_method('RemoveAll',
|
||||
'void',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagListTagData_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
|
||||
cls.add_instance_attribute('count', 'uint32_t', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
|
||||
cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
|
||||
cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
|
||||
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
|
||||
return
|
||||
|
||||
def register_Ns3RvBatteryModelHelper_methods(root_module, cls):
|
||||
## rv-battery-model-helper.h (module 'energy'): ns3::RvBatteryModelHelper::RvBatteryModelHelper(ns3::RvBatteryModelHelper const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::RvBatteryModelHelper const &', 'arg0')])
|
||||
@@ -1865,6 +1805,18 @@ def register_Ns3RvBatteryModelHelper_methods(root_module, cls):
|
||||
is_const=True, visibility='private', is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter< ns3::Chunk > > const &', 'o')])
|
||||
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::Cleanup() [member function]
|
||||
cls.add_method('Cleanup',
|
||||
'void',
|
||||
[],
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -1877,38 +1829,6 @@ def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TagBuffer_methods(root_module, cls):
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
|
||||
@@ -2693,6 +2613,39 @@ def register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDelete
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Time_methods(root_module, cls):
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
@@ -4422,11 +4375,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('AddHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Ptr<const ns3::Tag> tag) [member function]
|
||||
cls.add_method('AddPacketTag',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
[param('ns3::Ptr< ns3::Tag const >', 'tag')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
|
||||
cls.add_method('AddPaddingAtEnd',
|
||||
'void',
|
||||
@@ -4485,11 +4437,6 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::NixVector >',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
|
||||
cls.add_method('GetPacketTagIterator',
|
||||
'ns3::PacketTagIterator',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
@@ -4515,10 +4462,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::PeekPacketTag(ns3::TypeId tagType) const [member function]
|
||||
cls.add_method('PeekPacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('PeekTrailer',
|
||||
@@ -4559,10 +4506,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('RemoveHeader',
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')])
|
||||
## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::RemovePacketTag(ns3::TypeId tagType) [member function]
|
||||
cls.add_method('RemovePacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')])
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('RemoveTrailer',
|
||||
'uint32_t',
|
||||
|
||||
@@ -90,20 +90,12 @@ def register_types(module):
|
||||
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
|
||||
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
|
||||
module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator [class]
|
||||
module.add_class('PacketTagIterator', import_from_module='ns.network')
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
|
||||
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
|
||||
module.add_class('PacketTagList', import_from_module='ns.network')
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
|
||||
module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
|
||||
## rv-battery-model-helper.h (module 'energy'): ns3::RvBatteryModelHelper [class]
|
||||
module.add_class('RvBatteryModelHelper', parent=root_module['ns3::EnergySourceHelper'])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Chunk', 'ns3::ObjectBase', 'ns3::DefaultDeleter<ns3::Chunk>'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
|
||||
module.add_class('TagBuffer', import_from_module='ns.network')
|
||||
## traced-value.h (module 'core'): ns3::TracedValue<double> [class]
|
||||
@@ -133,7 +125,7 @@ def register_types(module):
|
||||
## basic-energy-source-helper.h (module 'energy'): ns3::BasicEnergySourceHelper [class]
|
||||
module.add_class('BasicEnergySourceHelper', parent=root_module['ns3::EnergySourceHelper'])
|
||||
## chunk.h (module 'network'): ns3::Chunk [class]
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
## header.h (module 'network'): ns3::Header [class]
|
||||
module.add_class('Header', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
|
||||
## object.h (module 'core'): ns3::Object [class]
|
||||
@@ -156,6 +148,8 @@ def register_types(module):
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Packet', 'ns3::empty', 'ns3::DefaultDeleter<ns3::Packet>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::TraceSourceAccessor', 'ns3::empty', 'ns3::DefaultDeleter<ns3::TraceSourceAccessor>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::Object'])
|
||||
## nstime.h (module 'core'): ns3::Time [class]
|
||||
module.add_class('Time', import_from_module='ns.core')
|
||||
## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
|
||||
@@ -266,12 +260,12 @@ def register_types(module):
|
||||
module.add_class('AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
|
||||
## basic-energy-source.h (module 'energy'): ns3::BasicEnergySource [class]
|
||||
module.add_class('BasicEnergySource', parent=root_module['ns3::EnergySource'])
|
||||
typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >', 'ns3::WifiModeList')
|
||||
typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >*', 'ns3::WifiModeList*')
|
||||
typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >&', 'ns3::WifiModeList&')
|
||||
typehandlers.add_type_alias('__gnu_cxx::__normal_iterator< ns3::WifiMode const *, std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > > >', 'ns3::WifiModeListIterator')
|
||||
typehandlers.add_type_alias('__gnu_cxx::__normal_iterator< ns3::WifiMode const *, std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > > >*', 'ns3::WifiModeListIterator*')
|
||||
typehandlers.add_type_alias('__gnu_cxx::__normal_iterator< ns3::WifiMode const *, std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > > >&', 'ns3::WifiModeListIterator&')
|
||||
typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >', 'ns3::WifiModeList')
|
||||
typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >*', 'ns3::WifiModeList*')
|
||||
typehandlers.add_type_alias('std::vector< ns3::WifiMode, std::allocator< ns3::WifiMode > >&', 'ns3::WifiModeList&')
|
||||
|
||||
## Register a nested module for the namespace FatalImpl
|
||||
|
||||
@@ -321,13 +315,9 @@ def register_methods(root_module):
|
||||
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_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
|
||||
register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
|
||||
register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
|
||||
register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
|
||||
register_Ns3RvBatteryModelHelper_methods(root_module, root_module['ns3::RvBatteryModelHelper'])
|
||||
register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
|
||||
register_Ns3TracedValue__Double_methods(root_module, root_module['ns3::TracedValue< double >'])
|
||||
register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
|
||||
@@ -353,6 +343,7 @@ def register_methods(root_module):
|
||||
register_Ns3SimpleRefCount__Ns3NixVector_Ns3Empty_Ns3DefaultDeleter__lt__ns3NixVector__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
|
||||
register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3Time_methods(root_module, root_module['ns3::Time'])
|
||||
register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
|
||||
register_Ns3TracedValue__Ns3Time_methods(root_module, root_module['ns3::TracedValue< ns3::Time >'])
|
||||
@@ -650,6 +641,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Next',
|
||||
'void',
|
||||
[param('uint32_t', 'delta')])
|
||||
## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function]
|
||||
cls.add_method('PeekU8',
|
||||
'uint8_t',
|
||||
[])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
|
||||
cls.add_method('Prev',
|
||||
'void',
|
||||
@@ -662,6 +657,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function]
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
|
||||
cls.add_method('ReadLsbtohU16',
|
||||
'uint16_t',
|
||||
@@ -1069,9 +1068,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
@@ -1550,6 +1549,21 @@ def register_Ns3NodeContainer_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::NodeContainer other) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::NodeContainer', 'other')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::Ptr<ns3::Node> node) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::Ptr< ns3::Node >', 'node')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(std::string nodeName) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('std::string', 'nodeName')],
|
||||
custom_name='__call__')
|
||||
return
|
||||
|
||||
def register_Ns3ObjectBase_methods(root_module, cls):
|
||||
@@ -1774,80 +1788,6 @@ def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIterator_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
|
||||
## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
|
||||
cls.add_method('HasNext',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::PacketTagIterator::Item',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
|
||||
## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('GetTag',
|
||||
'void',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagList_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
|
||||
cls.add_method('Add',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
|
||||
cls.add_method('Head',
|
||||
'ns3::PacketTagList::TagData const *',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('Peek',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
|
||||
cls.add_method('Remove',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
|
||||
cls.add_method('RemoveAll',
|
||||
'void',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagListTagData_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
|
||||
cls.add_instance_attribute('count', 'uint32_t', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
|
||||
cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
|
||||
cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
|
||||
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
|
||||
return
|
||||
|
||||
def register_Ns3RvBatteryModelHelper_methods(root_module, cls):
|
||||
## rv-battery-model-helper.h (module 'energy'): ns3::RvBatteryModelHelper::RvBatteryModelHelper(ns3::RvBatteryModelHelper const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::RvBatteryModelHelper const &', 'arg0')])
|
||||
@@ -1865,6 +1805,18 @@ def register_Ns3RvBatteryModelHelper_methods(root_module, cls):
|
||||
is_const=True, visibility='private', is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter< ns3::Chunk > > const &', 'o')])
|
||||
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::Cleanup() [member function]
|
||||
cls.add_method('Cleanup',
|
||||
'void',
|
||||
[],
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -1877,38 +1829,6 @@ def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TagBuffer_methods(root_module, cls):
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
|
||||
@@ -2693,6 +2613,39 @@ def register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDelete
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Time_methods(root_module, cls):
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
@@ -4422,11 +4375,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('AddHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Ptr<const ns3::Tag> tag) [member function]
|
||||
cls.add_method('AddPacketTag',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
[param('ns3::Ptr< ns3::Tag const >', 'tag')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
|
||||
cls.add_method('AddPaddingAtEnd',
|
||||
'void',
|
||||
@@ -4485,11 +4437,6 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::NixVector >',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
|
||||
cls.add_method('GetPacketTagIterator',
|
||||
'ns3::PacketTagIterator',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
@@ -4515,10 +4462,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::PeekPacketTag(ns3::TypeId tagType) const [member function]
|
||||
cls.add_method('PeekPacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('PeekTrailer',
|
||||
@@ -4559,10 +4506,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('RemoveHeader',
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')])
|
||||
## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::RemovePacketTag(ns3::TypeId tagType) [member function]
|
||||
cls.add_method('RemovePacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')])
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('RemoveTrailer',
|
||||
'uint32_t',
|
||||
|
||||
@@ -116,20 +116,12 @@ def register_types(module):
|
||||
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
|
||||
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
|
||||
module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator [class]
|
||||
module.add_class('PacketTagIterator', import_from_module='ns.network')
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
|
||||
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
|
||||
module.add_class('PacketTagList', import_from_module='ns.network')
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
|
||||
module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Chunk', 'ns3::ObjectBase', 'ns3::DefaultDeleter<ns3::Chunk>'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simulator.h (module 'core'): ns3::Simulator [class]
|
||||
module.add_class('Simulator', destructor_visibility='private', import_from_module='ns.core')
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
|
||||
module.add_class('TagBuffer', import_from_module='ns.network')
|
||||
## timer.h (module 'core'): ns3::Timer [class]
|
||||
@@ -153,7 +145,7 @@ def register_types(module):
|
||||
## int64x64-double.h (module 'core'): ns3::int64x64_t [class]
|
||||
module.add_class('int64x64_t', import_from_module='ns.core')
|
||||
## chunk.h (module 'network'): ns3::Chunk [class]
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
## header.h (module 'network'): ns3::Header [class]
|
||||
module.add_class('Header', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
|
||||
## ipv4-header.h (module 'internet'): ns3::Ipv4Header [class]
|
||||
@@ -202,12 +194,8 @@ def register_types(module):
|
||||
module.add_enum('SocketErrno', ['ERROR_NOTERROR', 'ERROR_ISCONN', 'ERROR_NOTCONN', 'ERROR_MSGSIZE', 'ERROR_AGAIN', 'ERROR_SHUTDOWN', 'ERROR_OPNOTSUPP', 'ERROR_AFNOSUPPORT', 'ERROR_INVAL', 'ERROR_BADF', 'ERROR_NOROUTETOHOST', 'ERROR_NODEV', 'ERROR_ADDRNOTAVAIL', 'ERROR_ADDRINUSE', 'SOCKET_ERRNO_LAST'], outer_class=root_module['ns3::Socket'], import_from_module='ns.network')
|
||||
## socket.h (module 'network'): ns3::Socket::SocketType [enumeration]
|
||||
module.add_enum('SocketType', ['NS3_SOCK_STREAM', 'NS3_SOCK_SEQPACKET', 'NS3_SOCK_DGRAM', 'NS3_SOCK_RAW'], outer_class=root_module['ns3::Socket'], import_from_module='ns.network')
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag [class]
|
||||
module.add_class('SocketAddressTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag [class]
|
||||
module.add_class('SocketIpTtlTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag [class]
|
||||
module.add_class('SocketSetDontFragmentTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::Object'])
|
||||
## nstime.h (module 'core'): ns3::Time [class]
|
||||
module.add_class('Time', import_from_module='ns.core')
|
||||
## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
|
||||
@@ -302,6 +290,12 @@ def register_types(module):
|
||||
module.add_class('OutputStreamWrapper', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> >'])
|
||||
## packet.h (module 'network'): ns3::Packet [class]
|
||||
module.add_class('Packet', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag [class]
|
||||
module.add_class('SocketAddressTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag [class]
|
||||
module.add_class('SocketIpTtlTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag [class]
|
||||
module.add_class('SocketSetDontFragmentTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## nstime.h (module 'core'): ns3::TimeChecker [class]
|
||||
module.add_class('TimeChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
|
||||
## nstime.h (module 'core'): ns3::TimeValue [class]
|
||||
@@ -315,7 +309,7 @@ def register_types(module):
|
||||
## address.h (module 'network'): ns3::AddressValue [class]
|
||||
module.add_class('AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
|
||||
module.add_container('std::vector< unsigned int >', 'unsigned int', container_type='vector')
|
||||
module.add_container('std::vector< unsigned long long >', 'long long unsigned int', container_type='vector')
|
||||
module.add_container('std::vector< uint64_t >', 'long long unsigned int', container_type='vector')
|
||||
module.add_container('std::map< unsigned int, ns3::FlowMonitor::FlowStats >', ('unsigned int', 'ns3::FlowMonitor::FlowStats'), container_type='map')
|
||||
module.add_container('std::vector< ns3::Ptr< ns3::FlowProbe > >', 'ns3::Ptr< ns3::FlowProbe >', container_type='vector')
|
||||
module.add_container('std::map< unsigned int, ns3::FlowProbe::FlowStats >', ('unsigned int', 'ns3::FlowProbe::FlowStats'), container_type='map')
|
||||
@@ -372,13 +366,9 @@ def register_methods(root_module):
|
||||
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_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
|
||||
register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
|
||||
register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
|
||||
register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
|
||||
register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
|
||||
register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
|
||||
register_Ns3Timer_methods(root_module, root_module['ns3::Timer'])
|
||||
register_Ns3TimerImpl_methods(root_module, root_module['ns3::TimerImpl'])
|
||||
@@ -407,9 +397,7 @@ def register_methods(root_module):
|
||||
register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
|
||||
register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >'])
|
||||
register_Ns3Socket_methods(root_module, root_module['ns3::Socket'])
|
||||
register_Ns3SocketAddressTag_methods(root_module, root_module['ns3::SocketAddressTag'])
|
||||
register_Ns3SocketIpTtlTag_methods(root_module, root_module['ns3::SocketIpTtlTag'])
|
||||
register_Ns3SocketSetDontFragmentTag_methods(root_module, root_module['ns3::SocketSetDontFragmentTag'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3Time_methods(root_module, root_module['ns3::Time'])
|
||||
register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
|
||||
register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
|
||||
@@ -451,6 +439,9 @@ def register_methods(root_module):
|
||||
register_Ns3ObjectFactoryValue_methods(root_module, root_module['ns3::ObjectFactoryValue'])
|
||||
register_Ns3OutputStreamWrapper_methods(root_module, root_module['ns3::OutputStreamWrapper'])
|
||||
register_Ns3Packet_methods(root_module, root_module['ns3::Packet'])
|
||||
register_Ns3SocketAddressTag_methods(root_module, root_module['ns3::SocketAddressTag'])
|
||||
register_Ns3SocketIpTtlTag_methods(root_module, root_module['ns3::SocketIpTtlTag'])
|
||||
register_Ns3SocketSetDontFragmentTag_methods(root_module, root_module['ns3::SocketSetDontFragmentTag'])
|
||||
register_Ns3TimeChecker_methods(root_module, root_module['ns3::TimeChecker'])
|
||||
register_Ns3TimeValue_methods(root_module, root_module['ns3::TimeValue'])
|
||||
register_Ns3TypeIdChecker_methods(root_module, root_module['ns3::TypeIdChecker'])
|
||||
@@ -704,6 +695,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Next',
|
||||
'void',
|
||||
[param('uint32_t', 'delta')])
|
||||
## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function]
|
||||
cls.add_method('PeekU8',
|
||||
'uint8_t',
|
||||
[])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
|
||||
cls.add_method('Prev',
|
||||
'void',
|
||||
@@ -716,6 +711,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function]
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
|
||||
cls.add_method('ReadLsbtohU16',
|
||||
'uint16_t',
|
||||
@@ -1134,9 +1133,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
@@ -1686,6 +1685,21 @@ def register_Ns3NodeContainer_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::NodeContainer other) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::NodeContainer', 'other')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::Ptr<ns3::Node> node) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::Ptr< ns3::Node >', 'node')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(std::string nodeName) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('std::string', 'nodeName')],
|
||||
custom_name='__call__')
|
||||
return
|
||||
|
||||
def register_Ns3ObjectBase_methods(root_module, cls):
|
||||
@@ -1910,78 +1924,16 @@ def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIterator_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
|
||||
## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
|
||||
cls.add_method('HasNext',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::PacketTagIterator::Item',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
|
||||
## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('GetTag',
|
||||
'void',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagList_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
|
||||
def register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
|
||||
cls.add_method('Add',
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter< ns3::Chunk > > const &', 'o')])
|
||||
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::Cleanup() [member function]
|
||||
cls.add_method('Cleanup',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
|
||||
cls.add_method('Head',
|
||||
'ns3::PacketTagList::TagData const *',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('Peek',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
|
||||
cls.add_method('Remove',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
|
||||
cls.add_method('RemoveAll',
|
||||
'void',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagListTagData_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
|
||||
cls.add_instance_attribute('count', 'uint32_t', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
|
||||
cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
|
||||
cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
|
||||
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
|
||||
@@ -2044,11 +1996,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'bool',
|
||||
[],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::Time',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Now() [member function]
|
||||
cls.add_method('Now',
|
||||
'ns3::Time',
|
||||
@@ -2059,11 +2006,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'void',
|
||||
[param('ns3::EventId const &', 'id')],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::RunOneEvent() [member function]
|
||||
cls.add_method('RunOneEvent',
|
||||
'void',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::SetImplementation(ns3::Ptr<ns3::SimulatorImpl> impl) [member function]
|
||||
cls.add_method('SetImplementation',
|
||||
'void',
|
||||
@@ -2086,38 +2028,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TagBuffer_methods(root_module, cls):
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
|
||||
@@ -3334,146 +3244,37 @@ def register_Ns3Socket_methods(root_module, cls):
|
||||
visibility='protected')
|
||||
return
|
||||
|
||||
def register_Ns3SocketAddressTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag(ns3::SocketAddressTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketAddressTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag() [constructor]
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::Address ns3::SocketAddressTag::GetAddress() const [member function]
|
||||
cls.add_method('GetAddress',
|
||||
'ns3::Address',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketAddressTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketAddressTag::GetSerializedSize() const [member function]
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketAddressTag::GetTypeId() [member function]
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Print(std::ostream & os) const [member function]
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::SetAddress(ns3::Address addr) [member function]
|
||||
cls.add_method('SetAddress',
|
||||
'void',
|
||||
[param('ns3::Address', 'addr')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketIpTtlTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag(ns3::SocketIpTtlTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketIpTtlTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketIpTtlTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketIpTtlTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint8_t ns3::SocketIpTtlTag::GetTtl() const [member function]
|
||||
cls.add_method('GetTtl',
|
||||
'uint8_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketIpTtlTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::SetTtl(uint8_t ttl) [member function]
|
||||
cls.add_method('SetTtl',
|
||||
'void',
|
||||
[param('uint8_t', 'ttl')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketSetDontFragmentTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag(ns3::SocketSetDontFragmentTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketSetDontFragmentTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Disable() [member function]
|
||||
cls.add_method('Disable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Enable() [member function]
|
||||
cls.add_method('Enable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketSetDontFragmentTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketSetDontFragmentTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketSetDontFragmentTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): bool ns3::SocketSetDontFragmentTag::IsEnabled() const [member function]
|
||||
cls.add_method('IsEnabled',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Time_methods(root_module, cls):
|
||||
@@ -3989,7 +3790,7 @@ def register_Ns3FlowMonitorFlowStats_methods(root_module, cls):
|
||||
## flow-monitor.h (module 'flow-monitor'): ns3::FlowMonitor::FlowStats::FlowStats(ns3::FlowMonitor::FlowStats const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::FlowMonitor::FlowStats const &', 'arg0')])
|
||||
## flow-monitor.h (module 'flow-monitor'): ns3::FlowMonitor::FlowStats::bytesDropped [variable]
|
||||
cls.add_instance_attribute('bytesDropped', 'std::vector< unsigned long long >', is_const=False)
|
||||
cls.add_instance_attribute('bytesDropped', 'std::vector< uint64_t >', is_const=False)
|
||||
## flow-monitor.h (module 'flow-monitor'): ns3::FlowMonitor::FlowStats::delayHistogram [variable]
|
||||
cls.add_instance_attribute('delayHistogram', 'ns3::Histogram', is_const=False)
|
||||
## flow-monitor.h (module 'flow-monitor'): ns3::FlowMonitor::FlowStats::delaySum [variable]
|
||||
@@ -4060,7 +3861,7 @@ def register_Ns3FlowProbeFlowStats_methods(root_module, cls):
|
||||
## flow-probe.h (module 'flow-monitor'): ns3::FlowProbe::FlowStats::bytes [variable]
|
||||
cls.add_instance_attribute('bytes', 'uint64_t', is_const=False)
|
||||
## flow-probe.h (module 'flow-monitor'): ns3::FlowProbe::FlowStats::bytesDropped [variable]
|
||||
cls.add_instance_attribute('bytesDropped', 'std::vector< unsigned long long >', is_const=False)
|
||||
cls.add_instance_attribute('bytesDropped', 'std::vector< uint64_t >', is_const=False)
|
||||
## flow-probe.h (module 'flow-monitor'): ns3::FlowProbe::FlowStats::delayFromFirstProbeSum [variable]
|
||||
cls.add_instance_attribute('delayFromFirstProbeSum', 'ns3::Time', is_const=False)
|
||||
## flow-probe.h (module 'flow-monitor'): ns3::FlowProbe::FlowStats::packets [variable]
|
||||
@@ -5309,11 +5110,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('AddHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Ptr<const ns3::Tag> tag) [member function]
|
||||
cls.add_method('AddPacketTag',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
[param('ns3::Ptr< ns3::Tag const >', 'tag')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
|
||||
cls.add_method('AddPaddingAtEnd',
|
||||
'void',
|
||||
@@ -5372,11 +5172,6 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::NixVector >',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
|
||||
cls.add_method('GetPacketTagIterator',
|
||||
'ns3::PacketTagIterator',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
@@ -5402,10 +5197,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::PeekPacketTag(ns3::TypeId tagType) const [member function]
|
||||
cls.add_method('PeekPacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('PeekTrailer',
|
||||
@@ -5446,10 +5241,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('RemoveHeader',
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')])
|
||||
## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::RemovePacketTag(ns3::TypeId tagType) [member function]
|
||||
cls.add_method('RemovePacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')])
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('RemoveTrailer',
|
||||
'uint32_t',
|
||||
@@ -5465,6 +5260,148 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
[param('ns3::Ptr< ns3::NixVector >', 'arg0')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketAddressTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag(ns3::SocketAddressTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketAddressTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::Address ns3::SocketAddressTag::GetAddress() const [member function]
|
||||
cls.add_method('GetAddress',
|
||||
'ns3::Address',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketAddressTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketAddressTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketAddressTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::SetAddress(ns3::Address addr) [member function]
|
||||
cls.add_method('SetAddress',
|
||||
'void',
|
||||
[param('ns3::Address', 'addr')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketIpTtlTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag(ns3::SocketIpTtlTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketIpTtlTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketIpTtlTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketIpTtlTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint8_t ns3::SocketIpTtlTag::GetTtl() const [member function]
|
||||
cls.add_method('GetTtl',
|
||||
'uint8_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketIpTtlTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::SetTtl(uint8_t ttl) [member function]
|
||||
cls.add_method('SetTtl',
|
||||
'void',
|
||||
[param('uint8_t', 'ttl')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketSetDontFragmentTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag(ns3::SocketSetDontFragmentTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketSetDontFragmentTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Disable() [member function]
|
||||
cls.add_method('Disable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Enable() [member function]
|
||||
cls.add_method('Enable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketSetDontFragmentTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketSetDontFragmentTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketSetDontFragmentTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): bool ns3::SocketSetDontFragmentTag::IsEnabled() const [member function]
|
||||
cls.add_method('IsEnabled',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TimeChecker_methods(root_module, cls):
|
||||
## nstime.h (module 'core'): ns3::TimeChecker::TimeChecker() [constructor]
|
||||
cls.add_constructor([])
|
||||
|
||||
@@ -116,20 +116,12 @@ def register_types(module):
|
||||
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
|
||||
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
|
||||
module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator [class]
|
||||
module.add_class('PacketTagIterator', import_from_module='ns.network')
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
|
||||
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
|
||||
module.add_class('PacketTagList', import_from_module='ns.network')
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
|
||||
module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Chunk', 'ns3::ObjectBase', 'ns3::DefaultDeleter<ns3::Chunk>'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simulator.h (module 'core'): ns3::Simulator [class]
|
||||
module.add_class('Simulator', destructor_visibility='private', import_from_module='ns.core')
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
|
||||
module.add_class('TagBuffer', import_from_module='ns.network')
|
||||
## timer.h (module 'core'): ns3::Timer [class]
|
||||
@@ -153,7 +145,7 @@ def register_types(module):
|
||||
## int64x64-double.h (module 'core'): ns3::int64x64_t [class]
|
||||
module.add_class('int64x64_t', import_from_module='ns.core')
|
||||
## chunk.h (module 'network'): ns3::Chunk [class]
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
## header.h (module 'network'): ns3::Header [class]
|
||||
module.add_class('Header', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
|
||||
## ipv4-header.h (module 'internet'): ns3::Ipv4Header [class]
|
||||
@@ -202,12 +194,8 @@ def register_types(module):
|
||||
module.add_enum('SocketErrno', ['ERROR_NOTERROR', 'ERROR_ISCONN', 'ERROR_NOTCONN', 'ERROR_MSGSIZE', 'ERROR_AGAIN', 'ERROR_SHUTDOWN', 'ERROR_OPNOTSUPP', 'ERROR_AFNOSUPPORT', 'ERROR_INVAL', 'ERROR_BADF', 'ERROR_NOROUTETOHOST', 'ERROR_NODEV', 'ERROR_ADDRNOTAVAIL', 'ERROR_ADDRINUSE', 'SOCKET_ERRNO_LAST'], outer_class=root_module['ns3::Socket'], import_from_module='ns.network')
|
||||
## socket.h (module 'network'): ns3::Socket::SocketType [enumeration]
|
||||
module.add_enum('SocketType', ['NS3_SOCK_STREAM', 'NS3_SOCK_SEQPACKET', 'NS3_SOCK_DGRAM', 'NS3_SOCK_RAW'], outer_class=root_module['ns3::Socket'], import_from_module='ns.network')
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag [class]
|
||||
module.add_class('SocketAddressTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag [class]
|
||||
module.add_class('SocketIpTtlTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag [class]
|
||||
module.add_class('SocketSetDontFragmentTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::Object'])
|
||||
## nstime.h (module 'core'): ns3::Time [class]
|
||||
module.add_class('Time', import_from_module='ns.core')
|
||||
## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
|
||||
@@ -302,6 +290,12 @@ def register_types(module):
|
||||
module.add_class('OutputStreamWrapper', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::OutputStreamWrapper, ns3::empty, ns3::DefaultDeleter<ns3::OutputStreamWrapper> >'])
|
||||
## packet.h (module 'network'): ns3::Packet [class]
|
||||
module.add_class('Packet', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag [class]
|
||||
module.add_class('SocketAddressTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag [class]
|
||||
module.add_class('SocketIpTtlTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag [class]
|
||||
module.add_class('SocketSetDontFragmentTag', import_from_module='ns.network', parent=root_module['ns3::Tag'])
|
||||
## nstime.h (module 'core'): ns3::TimeChecker [class]
|
||||
module.add_class('TimeChecker', import_from_module='ns.core', parent=root_module['ns3::AttributeChecker'])
|
||||
## nstime.h (module 'core'): ns3::TimeValue [class]
|
||||
@@ -315,7 +309,7 @@ def register_types(module):
|
||||
## address.h (module 'network'): ns3::AddressValue [class]
|
||||
module.add_class('AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
|
||||
module.add_container('std::vector< unsigned int >', 'unsigned int', container_type='vector')
|
||||
module.add_container('std::vector< unsigned long >', 'long unsigned int', container_type='vector')
|
||||
module.add_container('std::vector< uint64_t >', 'long long unsigned int', container_type='vector')
|
||||
module.add_container('std::map< unsigned int, ns3::FlowMonitor::FlowStats >', ('unsigned int', 'ns3::FlowMonitor::FlowStats'), container_type='map')
|
||||
module.add_container('std::vector< ns3::Ptr< ns3::FlowProbe > >', 'ns3::Ptr< ns3::FlowProbe >', container_type='vector')
|
||||
module.add_container('std::map< unsigned int, ns3::FlowProbe::FlowStats >', ('unsigned int', 'ns3::FlowProbe::FlowStats'), container_type='map')
|
||||
@@ -372,13 +366,9 @@ def register_methods(root_module):
|
||||
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_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
|
||||
register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
|
||||
register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
|
||||
register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
|
||||
register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
|
||||
register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
|
||||
register_Ns3Timer_methods(root_module, root_module['ns3::Timer'])
|
||||
register_Ns3TimerImpl_methods(root_module, root_module['ns3::TimerImpl'])
|
||||
@@ -407,9 +397,7 @@ def register_methods(root_module):
|
||||
register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
|
||||
register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >'])
|
||||
register_Ns3Socket_methods(root_module, root_module['ns3::Socket'])
|
||||
register_Ns3SocketAddressTag_methods(root_module, root_module['ns3::SocketAddressTag'])
|
||||
register_Ns3SocketIpTtlTag_methods(root_module, root_module['ns3::SocketIpTtlTag'])
|
||||
register_Ns3SocketSetDontFragmentTag_methods(root_module, root_module['ns3::SocketSetDontFragmentTag'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3Time_methods(root_module, root_module['ns3::Time'])
|
||||
register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
|
||||
register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
|
||||
@@ -451,6 +439,9 @@ def register_methods(root_module):
|
||||
register_Ns3ObjectFactoryValue_methods(root_module, root_module['ns3::ObjectFactoryValue'])
|
||||
register_Ns3OutputStreamWrapper_methods(root_module, root_module['ns3::OutputStreamWrapper'])
|
||||
register_Ns3Packet_methods(root_module, root_module['ns3::Packet'])
|
||||
register_Ns3SocketAddressTag_methods(root_module, root_module['ns3::SocketAddressTag'])
|
||||
register_Ns3SocketIpTtlTag_methods(root_module, root_module['ns3::SocketIpTtlTag'])
|
||||
register_Ns3SocketSetDontFragmentTag_methods(root_module, root_module['ns3::SocketSetDontFragmentTag'])
|
||||
register_Ns3TimeChecker_methods(root_module, root_module['ns3::TimeChecker'])
|
||||
register_Ns3TimeValue_methods(root_module, root_module['ns3::TimeValue'])
|
||||
register_Ns3TypeIdChecker_methods(root_module, root_module['ns3::TypeIdChecker'])
|
||||
@@ -704,6 +695,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Next',
|
||||
'void',
|
||||
[param('uint32_t', 'delta')])
|
||||
## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function]
|
||||
cls.add_method('PeekU8',
|
||||
'uint8_t',
|
||||
[])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
|
||||
cls.add_method('Prev',
|
||||
'void',
|
||||
@@ -716,6 +711,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function]
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
|
||||
cls.add_method('ReadLsbtohU16',
|
||||
'uint16_t',
|
||||
@@ -1134,9 +1133,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
@@ -1686,6 +1685,21 @@ def register_Ns3NodeContainer_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::NodeContainer other) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::NodeContainer', 'other')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::Ptr<ns3::Node> node) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::Ptr< ns3::Node >', 'node')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(std::string nodeName) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('std::string', 'nodeName')],
|
||||
custom_name='__call__')
|
||||
return
|
||||
|
||||
def register_Ns3ObjectBase_methods(root_module, cls):
|
||||
@@ -1910,78 +1924,16 @@ def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIterator_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
|
||||
## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
|
||||
cls.add_method('HasNext',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::PacketTagIterator::Item',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
|
||||
## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('GetTag',
|
||||
'void',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagList_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
|
||||
def register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
|
||||
cls.add_method('Add',
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter< ns3::Chunk > > const &', 'o')])
|
||||
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::Cleanup() [member function]
|
||||
cls.add_method('Cleanup',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
|
||||
cls.add_method('Head',
|
||||
'ns3::PacketTagList::TagData const *',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('Peek',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
|
||||
cls.add_method('Remove',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
|
||||
cls.add_method('RemoveAll',
|
||||
'void',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagListTagData_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
|
||||
cls.add_instance_attribute('count', 'uint32_t', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
|
||||
cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
|
||||
cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
|
||||
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
|
||||
@@ -2044,11 +1996,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'bool',
|
||||
[],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::Time',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Now() [member function]
|
||||
cls.add_method('Now',
|
||||
'ns3::Time',
|
||||
@@ -2059,11 +2006,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'void',
|
||||
[param('ns3::EventId const &', 'id')],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::RunOneEvent() [member function]
|
||||
cls.add_method('RunOneEvent',
|
||||
'void',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::SetImplementation(ns3::Ptr<ns3::SimulatorImpl> impl) [member function]
|
||||
cls.add_method('SetImplementation',
|
||||
'void',
|
||||
@@ -2086,38 +2028,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TagBuffer_methods(root_module, cls):
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
|
||||
@@ -3334,146 +3244,37 @@ def register_Ns3Socket_methods(root_module, cls):
|
||||
visibility='protected')
|
||||
return
|
||||
|
||||
def register_Ns3SocketAddressTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag(ns3::SocketAddressTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketAddressTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag() [constructor]
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::Address ns3::SocketAddressTag::GetAddress() const [member function]
|
||||
cls.add_method('GetAddress',
|
||||
'ns3::Address',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketAddressTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketAddressTag::GetSerializedSize() const [member function]
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketAddressTag::GetTypeId() [member function]
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Print(std::ostream & os) const [member function]
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::SetAddress(ns3::Address addr) [member function]
|
||||
cls.add_method('SetAddress',
|
||||
'void',
|
||||
[param('ns3::Address', 'addr')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketIpTtlTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag(ns3::SocketIpTtlTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketIpTtlTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketIpTtlTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketIpTtlTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint8_t ns3::SocketIpTtlTag::GetTtl() const [member function]
|
||||
cls.add_method('GetTtl',
|
||||
'uint8_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketIpTtlTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::SetTtl(uint8_t ttl) [member function]
|
||||
cls.add_method('SetTtl',
|
||||
'void',
|
||||
[param('uint8_t', 'ttl')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketSetDontFragmentTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag(ns3::SocketSetDontFragmentTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketSetDontFragmentTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Disable() [member function]
|
||||
cls.add_method('Disable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Enable() [member function]
|
||||
cls.add_method('Enable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketSetDontFragmentTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketSetDontFragmentTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketSetDontFragmentTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): bool ns3::SocketSetDontFragmentTag::IsEnabled() const [member function]
|
||||
cls.add_method('IsEnabled',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Time_methods(root_module, cls):
|
||||
@@ -3989,7 +3790,7 @@ def register_Ns3FlowMonitorFlowStats_methods(root_module, cls):
|
||||
## flow-monitor.h (module 'flow-monitor'): ns3::FlowMonitor::FlowStats::FlowStats(ns3::FlowMonitor::FlowStats const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::FlowMonitor::FlowStats const &', 'arg0')])
|
||||
## flow-monitor.h (module 'flow-monitor'): ns3::FlowMonitor::FlowStats::bytesDropped [variable]
|
||||
cls.add_instance_attribute('bytesDropped', 'std::vector< unsigned long >', is_const=False)
|
||||
cls.add_instance_attribute('bytesDropped', 'std::vector< uint64_t >', is_const=False)
|
||||
## flow-monitor.h (module 'flow-monitor'): ns3::FlowMonitor::FlowStats::delayHistogram [variable]
|
||||
cls.add_instance_attribute('delayHistogram', 'ns3::Histogram', is_const=False)
|
||||
## flow-monitor.h (module 'flow-monitor'): ns3::FlowMonitor::FlowStats::delaySum [variable]
|
||||
@@ -4060,7 +3861,7 @@ def register_Ns3FlowProbeFlowStats_methods(root_module, cls):
|
||||
## flow-probe.h (module 'flow-monitor'): ns3::FlowProbe::FlowStats::bytes [variable]
|
||||
cls.add_instance_attribute('bytes', 'uint64_t', is_const=False)
|
||||
## flow-probe.h (module 'flow-monitor'): ns3::FlowProbe::FlowStats::bytesDropped [variable]
|
||||
cls.add_instance_attribute('bytesDropped', 'std::vector< unsigned long >', is_const=False)
|
||||
cls.add_instance_attribute('bytesDropped', 'std::vector< uint64_t >', is_const=False)
|
||||
## flow-probe.h (module 'flow-monitor'): ns3::FlowProbe::FlowStats::delayFromFirstProbeSum [variable]
|
||||
cls.add_instance_attribute('delayFromFirstProbeSum', 'ns3::Time', is_const=False)
|
||||
## flow-probe.h (module 'flow-monitor'): ns3::FlowProbe::FlowStats::packets [variable]
|
||||
@@ -5309,11 +5110,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('AddHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Ptr<const ns3::Tag> tag) [member function]
|
||||
cls.add_method('AddPacketTag',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
[param('ns3::Ptr< ns3::Tag const >', 'tag')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
|
||||
cls.add_method('AddPaddingAtEnd',
|
||||
'void',
|
||||
@@ -5372,11 +5172,6 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::NixVector >',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
|
||||
cls.add_method('GetPacketTagIterator',
|
||||
'ns3::PacketTagIterator',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
@@ -5402,10 +5197,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::PeekPacketTag(ns3::TypeId tagType) const [member function]
|
||||
cls.add_method('PeekPacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('PeekTrailer',
|
||||
@@ -5446,10 +5241,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('RemoveHeader',
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')])
|
||||
## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::RemovePacketTag(ns3::TypeId tagType) [member function]
|
||||
cls.add_method('RemovePacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')])
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('RemoveTrailer',
|
||||
'uint32_t',
|
||||
@@ -5465,6 +5260,148 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
[param('ns3::Ptr< ns3::NixVector >', 'arg0')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketAddressTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag(ns3::SocketAddressTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketAddressTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketAddressTag::SocketAddressTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::Address ns3::SocketAddressTag::GetAddress() const [member function]
|
||||
cls.add_method('GetAddress',
|
||||
'ns3::Address',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketAddressTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketAddressTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketAddressTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketAddressTag::SetAddress(ns3::Address addr) [member function]
|
||||
cls.add_method('SetAddress',
|
||||
'void',
|
||||
[param('ns3::Address', 'addr')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketIpTtlTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag(ns3::SocketIpTtlTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketIpTtlTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketIpTtlTag::SocketIpTtlTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketIpTtlTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketIpTtlTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint8_t ns3::SocketIpTtlTag::GetTtl() const [member function]
|
||||
cls.add_method('GetTtl',
|
||||
'uint8_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketIpTtlTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketIpTtlTag::SetTtl(uint8_t ttl) [member function]
|
||||
cls.add_method('SetTtl',
|
||||
'void',
|
||||
[param('uint8_t', 'ttl')])
|
||||
return
|
||||
|
||||
def register_Ns3SocketSetDontFragmentTag_methods(root_module, cls):
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag(ns3::SocketSetDontFragmentTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SocketSetDontFragmentTag const &', 'arg0')])
|
||||
## socket.h (module 'network'): ns3::SocketSetDontFragmentTag::SocketSetDontFragmentTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Disable() [member function]
|
||||
cls.add_method('Disable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Enable() [member function]
|
||||
cls.add_method('Enable',
|
||||
'void',
|
||||
[])
|
||||
## socket.h (module 'network'): ns3::TypeId ns3::SocketSetDontFragmentTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): uint32_t ns3::SocketSetDontFragmentTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): static ns3::TypeId ns3::SocketSetDontFragmentTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## socket.h (module 'network'): bool ns3::SocketSetDontFragmentTag::IsEnabled() const [member function]
|
||||
cls.add_method('IsEnabled',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## socket.h (module 'network'): void ns3::SocketSetDontFragmentTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TimeChecker_methods(root_module, cls):
|
||||
## nstime.h (module 'core'): ns3::TimeChecker::TimeChecker() [constructor]
|
||||
cls.add_constructor([])
|
||||
|
||||
@@ -204,8 +204,8 @@ Ipv4FlowProbe::SendOutgoingLogger (const Ipv4Header &ipHeader, Ptr<const Packet>
|
||||
|
||||
// tag the packet with the flow id and packet id, so that the packet can be identified even
|
||||
// when Ipv4Header is not accessible at some non-IPv4 protocol layer
|
||||
Ipv4FlowProbeTag fTag (flowId, packetId, size);
|
||||
ipPayload->AddPacketTag (fTag);
|
||||
Ptr<Ipv4FlowProbeTag> fTag = CreateObject<Ipv4FlowProbeTag> (flowId, packetId, size);
|
||||
ConstCast<Packet> (ipPayload)->AddPacketTag (fTag);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -233,10 +233,9 @@ Ipv4FlowProbe::ForwardUpLogger (const Ipv4Header &ipHeader, Ptr<const Packet> ip
|
||||
if (m_classifier->Classify (ipHeader, ipPayload, &flowId, &packetId))
|
||||
{
|
||||
// remove the tags that are added by Ipv4FlowProbe::SendOutgoingLogger ()
|
||||
Ipv4FlowProbeTag fTag;
|
||||
|
||||
// ConstCast: see http://www.nsnam.org/bugzilla/show_bug.cgi?id=904
|
||||
ConstCast<Packet> (ipPayload)->RemovePacketTag (fTag);
|
||||
ConstCast<Packet> (ipPayload)->RemovePacketTag<Ipv4FlowProbeTag> ();
|
||||
|
||||
uint32_t size = (ipPayload->GetSize () + ipHeader.GetSerializedSize ());
|
||||
NS_LOG_DEBUG ("ReportLastRx ("<<this<<", "<<flowId<<", "<<packetId<<", "<<size<<");");
|
||||
@@ -272,10 +271,9 @@ Ipv4FlowProbe::DropLogger (const Ipv4Header &ipHeader, Ptr<const Packet> ipPaylo
|
||||
if (m_classifier->Classify (ipHeader, ipPayload, &flowId, &packetId))
|
||||
{
|
||||
// remove the tags that are added by Ipv4FlowProbe::SendOutgoingLogger ()
|
||||
Ipv4FlowProbeTag fTag;
|
||||
|
||||
// ConstCast: see http://www.nsnam.org/bugzilla/show_bug.cgi?id=904
|
||||
ConstCast<Packet> (ipPayload)->RemovePacketTag (fTag);
|
||||
ConstCast<Packet> (ipPayload)->RemovePacketTag<Ipv4FlowProbeTag> ();
|
||||
|
||||
uint32_t size = (ipPayload->GetSize () + ipHeader.GetSerializedSize ());
|
||||
NS_LOG_DEBUG ("Drop ("<<this<<", "<<flowId<<", "<<packetId<<", "<<size<<", " << reason
|
||||
@@ -325,19 +323,18 @@ void
|
||||
Ipv4FlowProbe::QueueDropLogger (Ptr<const Packet> ipPayload)
|
||||
{
|
||||
// remove the tags that are added by Ipv4FlowProbe::SendOutgoingLogger ()
|
||||
Ipv4FlowProbeTag fTag;
|
||||
|
||||
// ConstCast: see http://www.nsnam.org/bugzilla/show_bug.cgi?id=904
|
||||
bool tagFound;
|
||||
tagFound = ConstCast<Packet> (ipPayload)->RemovePacketTag (fTag);
|
||||
if (!tagFound)
|
||||
|
||||
Ptr<const Ipv4FlowProbeTag> fTag = ConstCast<Packet> (ipPayload)->RemovePacketTag<Ipv4FlowProbeTag> ();
|
||||
if (!fTag)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
FlowId flowId = fTag.GetFlowId ();
|
||||
FlowPacketId packetId = fTag.GetPacketId ();
|
||||
uint32_t size = fTag.GetPacketSize ();
|
||||
FlowId flowId = fTag->GetFlowId ();
|
||||
FlowPacketId packetId = fTag->GetPacketId ();
|
||||
uint32_t size = fTag->GetPacketSize ();
|
||||
|
||||
NS_LOG_DEBUG ("Drop ("<<this<<", "<<flowId<<", "<<packetId<<", "<<size<<", " << DROP_QUEUE
|
||||
<< "); ");
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -20,18 +20,28 @@
|
||||
#include "ipv4-global-routing-helper.h"
|
||||
#include "ns3/global-router-interface.h"
|
||||
#include "ns3/ipv4-global-routing.h"
|
||||
#include "ns3/ipv4-global-routing-one-nexthop.h"
|
||||
#include "ns3/ipv4-list-routing.h"
|
||||
#include "ns3/node-list.h"
|
||||
#include "ns3/log.h"
|
||||
|
||||
#ifndef UINT16_MAX
|
||||
# define UINT16_MAX (65535)
|
||||
#endif
|
||||
|
||||
NS_LOG_COMPONENT_DEFINE ("GlobalRoutingHelper");
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
Ipv4GlobalRoutingHelper::Ipv4GlobalRoutingHelper ()
|
||||
UniformVariable Ipv4GlobalRoutingHelper::m_rand;
|
||||
|
||||
Ipv4GlobalRoutingHelper::Ipv4GlobalRoutingHelper (const std::string &type/* = "ns3::Ipv4GlobalRoutingOneNexthop"*/)
|
||||
: m_type (type)
|
||||
{
|
||||
}
|
||||
|
||||
Ipv4GlobalRoutingHelper::Ipv4GlobalRoutingHelper (const Ipv4GlobalRoutingHelper &o)
|
||||
: m_type (o.m_type)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -51,8 +61,10 @@ Ipv4GlobalRoutingHelper::Create (Ptr<Node> node) const
|
||||
node->AggregateObject (globalRouter);
|
||||
|
||||
NS_LOG_LOGIC ("Adding GlobalRouting Protocol to node " << node->GetId ());
|
||||
Ptr<Ipv4GlobalRouting> globalRouting = CreateObject<Ipv4GlobalRouting> ();
|
||||
globalRouter->SetRoutingProtocol (globalRouting);
|
||||
|
||||
ObjectFactory factory;
|
||||
factory.SetTypeId (m_type);
|
||||
Ptr<Ipv4GlobalRouting> globalRouting = DynamicCast<Ipv4GlobalRouting> (factory.Create<Object> ());
|
||||
|
||||
return globalRouting;
|
||||
}
|
||||
@@ -63,6 +75,90 @@ Ipv4GlobalRoutingHelper::PopulateRoutingTables (void)
|
||||
GlobalRouteManager::BuildGlobalRoutingDatabase ();
|
||||
GlobalRouteManager::InitializeRoutes ();
|
||||
}
|
||||
|
||||
void
|
||||
Ipv4GlobalRoutingHelper::PopulateAllPossibleRoutingTables (void)
|
||||
{
|
||||
NodeList::Iterator listEnd = NodeList::End ();
|
||||
for (NodeList::Iterator node = NodeList::Begin (); node != listEnd; node++)
|
||||
{
|
||||
// if ((*node)->GetId ()!=3) continue;
|
||||
|
||||
Ptr<Ipv4> ipv4 = (*node)->GetObject<Ipv4> ();
|
||||
NS_ASSERT (ipv4 != 0);
|
||||
|
||||
// remember interface statuses
|
||||
std::vector<uint16_t> originalMetric (ipv4->GetNInterfaces ());
|
||||
for (uint32_t iface = 1; iface < ipv4->GetNInterfaces (); iface++)
|
||||
{
|
||||
originalMetric[iface] = ipv4->GetMetric (iface);
|
||||
}
|
||||
|
||||
// enable interfaces one by one and calculate routes
|
||||
for (uint32_t enabledInterface = 1; enabledInterface < ipv4->GetNInterfaces (); enabledInterface++)
|
||||
{
|
||||
NS_LOG_ERROR ("Enabled interface: " << enabledInterface);
|
||||
|
||||
for (uint32_t iface = 1; iface < ipv4->GetNInterfaces (); iface++)
|
||||
{
|
||||
ipv4->SetMetric (iface, UINT16_MAX);
|
||||
}
|
||||
ipv4->SetMetric (enabledInterface, originalMetric[enabledInterface]);
|
||||
|
||||
GlobalRouteManager::ClearLSDB ();
|
||||
GlobalRouteManager::BuildGlobalRoutingDatabase ();
|
||||
GlobalRouteManager::InitializeRoutes ();
|
||||
}
|
||||
|
||||
// restore original interface statuses
|
||||
for (uint32_t iface = 1; iface < ipv4->GetNInterfaces (); iface++)
|
||||
{
|
||||
ipv4->SetMetric (iface, originalMetric[iface]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Ipv4GlobalRoutingHelper::PopulateRandomRoutingTables (uint32_t n)
|
||||
{
|
||||
PopulateRoutingTables (); // populate normal routing table
|
||||
|
||||
for (uint32_t routingSet = 1; routingSet < n; routingSet++)
|
||||
{
|
||||
for (NodeList::Iterator node = NodeList::Begin (); node != NodeList::End (); node++)
|
||||
{
|
||||
Ptr<Ipv4> ipv4 = (*node)->GetObject<Ipv4> ();
|
||||
NS_ASSERT (ipv4 != 0);
|
||||
|
||||
Ptr<Ipv4GlobalRouting> globalRouting = GetRouting<Ipv4GlobalRouting> (ipv4->GetRoutingProtocol ());
|
||||
NS_ASSERT_MSG (globalRouting != 0,
|
||||
"A valid Ipv4GlobalRouting should exist");
|
||||
|
||||
globalRouting->FixRoutes ();
|
||||
|
||||
// std::vector<uint16_t> originalMetric (ipv4->GetNInterfaces ());
|
||||
// for (uint32_t iface = 1; iface < ipv4->GetNInterfaces (); iface++)
|
||||
// {
|
||||
// originalMetric[iface] = ipv4->GetMetric (iface);
|
||||
// }
|
||||
|
||||
for (uint32_t iface = 1; iface < ipv4->GetNInterfaces (); iface++)
|
||||
{
|
||||
ipv4->SetMetric (iface, m_rand.GetInteger (1, UINT16_MAX/10)); // just to prevent integer overflow
|
||||
}
|
||||
|
||||
// // restore original interface statuses
|
||||
// for (uint32_t iface = 1; iface < ipv4->GetNInterfaces (); iface++)
|
||||
// {
|
||||
// ipv4->SetMetric (iface, originalMetric[iface]);
|
||||
// }
|
||||
}
|
||||
GlobalRouteManager::ClearLSDB ();
|
||||
GlobalRouteManager::BuildGlobalRoutingDatabase ();
|
||||
GlobalRouteManager::InitializeRoutes ();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Ipv4GlobalRoutingHelper::RecomputeRoutingTables (void)
|
||||
{
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include "ns3/node-container.h"
|
||||
#include "ns3/ipv4-routing-helper.h"
|
||||
#include "ns3/random-variable.h"
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
@@ -31,11 +32,18 @@ namespace ns3 {
|
||||
class Ipv4GlobalRoutingHelper : public Ipv4RoutingHelper
|
||||
{
|
||||
public:
|
||||
enum GlobalRoutingType
|
||||
{ ONE_NEXT_HOP = 0,
|
||||
ORDERED_NEXT_HOPS = 1,
|
||||
UNORDERED_NEXT_HOPS = 2};
|
||||
|
||||
/**
|
||||
* \brief Construct a GlobalRoutingHelper to make life easier for managing
|
||||
* global routing tasks.
|
||||
*
|
||||
* param type Type of the global routing
|
||||
*/
|
||||
Ipv4GlobalRoutingHelper ();
|
||||
Ipv4GlobalRoutingHelper (const std::string &type = "ns3::Ipv4GlobalRoutingOneNexthop");
|
||||
|
||||
/**
|
||||
* \brief Construct a GlobalRoutingHelper from another previously initialized
|
||||
@@ -70,6 +78,29 @@ public:
|
||||
*
|
||||
*/
|
||||
static void PopulateRoutingTables (void);
|
||||
|
||||
/**
|
||||
* @brief Populate routing table by enabling interface one by one for every node
|
||||
*
|
||||
* Make sense for routing protocols that can handle multiple alternative paths
|
||||
*/
|
||||
static void PopulateAllPossibleRoutingTables ();
|
||||
|
||||
/**
|
||||
* @brief Populate n routing tables. First table is a normal routing tables, the remaining n-1 tables
|
||||
* are generated by randomly adjusting metric of every link in the system
|
||||
*
|
||||
* !!! Side effect when n > 1 !!! Link metrics will be altered to random values
|
||||
*
|
||||
* Make sense for Path Splicing-type routing protocols
|
||||
*
|
||||
* @param n number of routing tables to populate
|
||||
*
|
||||
* @see Murtaza Motiwala, Megan Elmore, Nick Feamster, and Santosh Vempala. 2008. Path splicing.
|
||||
* In Proceedings of the ACM SIGCOMM 2008 conference on Data communication (SIGCOMM '08). ACM, New York, NY, USA, 27-38. DOI=10.1145/1402958.1402963 http://doi.acm.org/10.1145/1402958.1402963
|
||||
*/
|
||||
static void PopulateRandomRoutingTables (uint32_t n);
|
||||
|
||||
/**
|
||||
* \brief Remove all routes that were previously installed in a prior call
|
||||
* to either PopulateRoutingTables() or RecomputeRoutingTables(), and
|
||||
@@ -90,6 +121,10 @@ private:
|
||||
* assignment and prevent the compiler from happily inserting its own.
|
||||
*/
|
||||
Ipv4GlobalRoutingHelper &operator = (const Ipv4GlobalRoutingHelper &o);
|
||||
|
||||
std::string m_type;
|
||||
|
||||
static UniformVariable m_rand;
|
||||
};
|
||||
|
||||
} // namespace ns3
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "ns3/ptr.h"
|
||||
#include "ns3/nstime.h"
|
||||
#include "ns3/output-stream-wrapper.h"
|
||||
#include "ns3/ipv4-list-routing.h"
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
@@ -107,11 +108,41 @@ public:
|
||||
*/
|
||||
void PrintRoutingTableEvery (Time printInterval, Ptr<Node> node, Ptr<OutputStreamWrapper> stream) const;
|
||||
|
||||
template<class T>
|
||||
static Ptr<T> GetRouting (Ptr<Ipv4RoutingProtocol> ipv4rp);
|
||||
|
||||
private:
|
||||
void Print (Ptr<Node> node, Ptr<OutputStreamWrapper> stream) const;
|
||||
void PrintEvery (Time printInterval, Ptr<Node> node, Ptr<OutputStreamWrapper> stream) const;
|
||||
};
|
||||
|
||||
// This function does a recursive search for a requested routing protocol.
|
||||
// Strictly speaking this recursion is not necessary, but why not?
|
||||
template<class T>
|
||||
Ptr<T> Ipv4RoutingHelper::GetRouting (Ptr<Ipv4RoutingProtocol> ipv4rp)
|
||||
{
|
||||
if (ipv4rp == 0) return 0;
|
||||
|
||||
if (DynamicCast<T> (ipv4rp))
|
||||
{
|
||||
return DynamicCast<T> (ipv4rp);
|
||||
}
|
||||
else if (DynamicCast<Ipv4ListRouting> (ipv4rp))
|
||||
{
|
||||
Ptr<Ipv4ListRouting> lrp = DynamicCast<Ipv4ListRouting> (ipv4rp);
|
||||
for (uint32_t i = 0; i < lrp->GetNRoutingProtocols (); i++)
|
||||
{
|
||||
int16_t priority;
|
||||
Ptr<T> ret = GetRouting<T> (lrp->GetRoutingProtocol (i, priority));
|
||||
if (ret != 0)
|
||||
{
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
} // namespace ns3
|
||||
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include "ns3/ipv4-routing-protocol.h"
|
||||
#include "ns3/ipv4-list-routing.h"
|
||||
#include "ns3/mpi-interface.h"
|
||||
#include "ns3/ipv4-routing-helper.h"
|
||||
#include "global-router-interface.h"
|
||||
#include "global-route-manager-impl.h"
|
||||
#include "candidate-queue.h"
|
||||
@@ -566,19 +567,15 @@ GlobalRouteManagerImpl::DeleteGlobalRoutes ()
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Ptr<Ipv4GlobalRouting> gr = router->GetRoutingProtocol ();
|
||||
uint32_t j = 0;
|
||||
uint32_t nRoutes = gr->GetNRoutes ();
|
||||
NS_LOG_LOGIC ("Deleting " << gr->GetNRoutes ()<< " routes from node " << node->GetId ());
|
||||
// Each time we delete route 0, the route index shifts downward
|
||||
// We can delete all routes if we delete the route numbered 0
|
||||
// nRoutes times
|
||||
for (j = 0; j < nRoutes; j++)
|
||||
{
|
||||
NS_LOG_LOGIC ("Deleting global route " << j << " from node " << node->GetId ());
|
||||
gr->RemoveRoute (0);
|
||||
}
|
||||
NS_LOG_LOGIC ("Deleted " << j << " global routes from node "<< node->GetId ());
|
||||
Ptr<Ipv4> ipv4 = node->GetObject<Ipv4> ();
|
||||
NS_ASSERT_MSG (ipv4 != 0, "GlobalRouteManagerImpl requires IPv4 stack to be installed on the node");
|
||||
|
||||
Ptr<Ipv4GlobalRouting> gr = Ipv4RoutingHelper::
|
||||
GetRouting<Ipv4GlobalRouting> (ipv4->GetRoutingProtocol ());
|
||||
|
||||
NS_ASSERT_MSG (gr != 0, "GlobalRouteManagerImpl needs an instance of Ipv4GlobalRouting to be installed on the node");
|
||||
|
||||
gr->DeleteRoutes ();
|
||||
}
|
||||
if (m_lsdb)
|
||||
{
|
||||
@@ -588,6 +585,14 @@ GlobalRouteManagerImpl::DeleteGlobalRoutes ()
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
GlobalRouteManagerImpl::ClearLSDB ()
|
||||
{
|
||||
NS_LOG_LOGIC ("Deleting LSDB, creating new one");
|
||||
delete m_lsdb;
|
||||
m_lsdb = new GlobalRouteManagerLSDB ();
|
||||
}
|
||||
|
||||
//
|
||||
// In order to build the routing database, we need to walk the list of nodes
|
||||
// in the system and look for those that support the GlobalRouter interface.
|
||||
@@ -626,7 +631,14 @@ GlobalRouteManagerImpl::BuildGlobalRoutingDatabase ()
|
||||
// DiscoverLSAs () will get zero as the number since no routes have been
|
||||
// found.
|
||||
//
|
||||
Ptr<Ipv4GlobalRouting> grouting = rtr->GetRoutingProtocol ();
|
||||
Ptr<Ipv4> ipv4 = node->GetObject<Ipv4> ();
|
||||
NS_ASSERT_MSG (ipv4 != 0, "GlobalRouteManagerImpl requires IPv4 stack to be installed on the node");
|
||||
|
||||
Ptr<Ipv4GlobalRouting> grouting = Ipv4RoutingHelper::
|
||||
GetRouting<Ipv4GlobalRouting> (ipv4->GetRoutingProtocol ());
|
||||
|
||||
NS_ASSERT_MSG (grouting != 0, "GlobalRouteManagerImpl needs an instance of Ipv4GlobalRouting to be installed on the node");
|
||||
|
||||
uint32_t numLSAs = rtr->DiscoverLSAs ();
|
||||
NS_LOG_LOGIC ("Found " << numLSAs << " LSAs");
|
||||
|
||||
@@ -692,6 +704,7 @@ GlobalRouteManagerImpl::InitializeRoutes ()
|
||||
for (NodeList::Iterator i = NodeList::Begin (); i != listEnd; i++)
|
||||
{
|
||||
Ptr<Node> node = *i;
|
||||
|
||||
//
|
||||
// Look for the GlobalRouter interface that indicates that the node is
|
||||
// participating in routing.
|
||||
@@ -876,7 +889,7 @@ GlobalRouteManagerImpl::SPFNext (SPFVertex* v, CandidateQueue& candidate)
|
||||
else if (w_lsa->GetStatus () == GlobalRoutingLSA::LSA_SPF_CANDIDATE)
|
||||
{
|
||||
//
|
||||
// We have already considered the link represented by <w>. What wse have to
|
||||
// We have already considered the link represented by <w>. What we have to
|
||||
// do now is to decide if this new router represents a route with a shorter
|
||||
// distance metric.
|
||||
//
|
||||
@@ -1305,12 +1318,15 @@ GlobalRouteManagerImpl::CheckForStubNode (Ipv4Address root)
|
||||
if (lr->GetLinkId () == myRouterId)
|
||||
{
|
||||
// Next hop is stored in the LinkID field of lr
|
||||
Ptr<GlobalRouter> router = rlsa->GetNode ()->GetObject<GlobalRouter> ();
|
||||
NS_ASSERT (router);
|
||||
Ptr<Ipv4GlobalRouting> gr = router->GetRoutingProtocol ();
|
||||
NS_ASSERT (gr);
|
||||
gr->AddNetworkRouteTo (Ipv4Address ("0.0.0.0"), Ipv4Mask ("0.0.0.0"), lr->GetLinkData (),
|
||||
FindOutgoingInterfaceId (transitLink->GetLinkData ()));
|
||||
Ptr<Ipv4> ipv4 = rlsa->GetNode ()->GetObject<Ipv4> ();
|
||||
NS_ASSERT_MSG (ipv4 != 0, "GlobalRouteManagerImpl requires IPv4 stack to be installed on the node");
|
||||
|
||||
Ptr<Ipv4GlobalRouting> gr = Ipv4RoutingHelper::
|
||||
GetRouting<Ipv4GlobalRouting> (ipv4->GetRoutingProtocol ());
|
||||
|
||||
NS_ASSERT_MSG (gr != 0, "GlobalRouteManagerImpl needs an instance of Ipv4GlobalRouting to be installed on the node");
|
||||
gr->AddRouteTo (Ipv4Address ("0.0.0.0"), Ipv4Mask ("0.0.0.0"), lr->GetLinkData (),
|
||||
FindOutgoingInterfaceId (transitLink->GetLinkData ()));
|
||||
NS_LOG_LOGIC ("Inserting default route for node " << myRouterId << " to next hop " <<
|
||||
lr->GetLinkData () << " via interface " <<
|
||||
FindOutgoingInterfaceId (transitLink->GetLinkData ()));
|
||||
@@ -1329,11 +1345,8 @@ GlobalRouteManagerImpl::SPFCalculate (Ipv4Address root)
|
||||
NS_LOG_FUNCTION (this << root);
|
||||
|
||||
SPFVertex *v;
|
||||
//
|
||||
// Initialize the Link State Database.
|
||||
//
|
||||
m_lsdb->Initialize ();
|
||||
//
|
||||
|
||||
//
|
||||
// The candidate queue is a priority queue of SPFVertex objects, with the top
|
||||
// of the queue being the closest vertex in terms of distance from the root
|
||||
// of the tree. Initially, this queue is empty.
|
||||
@@ -1351,105 +1364,115 @@ GlobalRouteManagerImpl::SPFCalculate (Ipv4Address root)
|
||||
// We also mark this vertex as being in the SPF tree.
|
||||
//
|
||||
m_spfroot= v;
|
||||
|
||||
NS_ASSERT_MSG (m_spfroot->GetVertexType () == SPFVertex::VertexRouter,
|
||||
"Root node has to be router");
|
||||
|
||||
|
||||
//
|
||||
// Initialize the Link State Database.
|
||||
//
|
||||
m_lsdb->Initialize ();
|
||||
|
||||
v->SetDistanceFromRoot (0);
|
||||
v->GetLSA ()->SetStatus (GlobalRoutingLSA::LSA_SPF_IN_SPFTREE);
|
||||
NS_LOG_LOGIC ("Starting SPFCalculate for node " << root);
|
||||
|
||||
//
|
||||
// Optimize SPF calculation, for ns-3.
|
||||
// We do not need to calculate SPF for every node in the network if this
|
||||
// node has only one interface through which another router can be
|
||||
// reached. Instead, short-circuit this computation and just install
|
||||
// a default route in the CheckForStubNode() method.
|
||||
//
|
||||
if (NodeList::GetNNodes () > 0 && CheckForStubNode (root))
|
||||
{
|
||||
NS_LOG_LOGIC ("SPFCalculate truncated for stub node " << root);
|
||||
delete m_spfroot;
|
||||
return;
|
||||
}
|
||||
//
|
||||
// Optimize SPF calculation, for ns-3.
|
||||
// We do not need to calculate SPF for every node in the network if this
|
||||
// node has only one interface through which another router can be
|
||||
// reached. Instead, short-circuit this computation and just install
|
||||
// a default route in the CheckForStubNode() method.
|
||||
//
|
||||
// if (NodeList::GetNNodes () > 0 && CheckForStubNode (root))
|
||||
// {
|
||||
// NS_LOG_LOGIC ("SPFCalculate truncated for stub node " << root);
|
||||
// delete m_spfroot;
|
||||
// return;
|
||||
// }
|
||||
|
||||
for (;;)
|
||||
{
|
||||
//
|
||||
// The operations we need to do are given in the OSPF RFC which we reference
|
||||
// as we go along.
|
||||
//
|
||||
// RFC2328 16.1. (2).
|
||||
//
|
||||
// We examine the Global Router Link Records in the Link State
|
||||
// Advertisements of the current vertex. If there are any point-to-point
|
||||
// links to unexplored adjacent vertices we add them to the tree and update
|
||||
// the distance and next hop information on how to get there. We also add
|
||||
// the new vertices to the candidate queue (the priority queue ordered by
|
||||
// shortest path). If the new vertices represent shorter paths, we use them
|
||||
// and update the path cost.
|
||||
//
|
||||
//
|
||||
// The operations we need to do are given in the OSPF RFC which we reference
|
||||
// as we go along.
|
||||
//
|
||||
// RFC2328 16.1. (2).
|
||||
//
|
||||
// We examine the Global Router Link Records in the Link State
|
||||
// Advertisements of the current vertex. If there are any point-to-point
|
||||
// links to unexplored adjacent vertices we add them to the tree and update
|
||||
// the distance and next hop information on how to get there. We also add
|
||||
// the new vertices to the candidate queue (the priority queue ordered by
|
||||
// shortest path). If the new vertices represent shorter paths, we use them
|
||||
// and update the path cost.
|
||||
//
|
||||
SPFNext (v, candidate);
|
||||
//
|
||||
// RFC2328 16.1. (3).
|
||||
//
|
||||
// If at this step the candidate list is empty, the shortest-path tree (of
|
||||
// transit vertices) has been completely built and this stage of the
|
||||
// procedure terminates.
|
||||
//
|
||||
//
|
||||
// RFC2328 16.1. (3).
|
||||
//
|
||||
// If at this step the candidate list is empty, the shortest-path tree (of
|
||||
// transit vertices) has been completely built and this stage of the
|
||||
// procedure terminates.
|
||||
//
|
||||
if (candidate.Size () == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
//
|
||||
// Choose the vertex belonging to the candidate list that is closest to the
|
||||
// root, and add it to the shortest-path tree (removing it from the candidate
|
||||
// list in the process).
|
||||
//
|
||||
// Recall that in the previous step, we created SPFVertex structures for each
|
||||
// of the routers found in the Global Router Link Records and added tehm to
|
||||
// the candidate list.
|
||||
//
|
||||
//
|
||||
// Choose the vertex belonging to the candidate list that is closest to the
|
||||
// root, and add it to the shortest-path tree (removing it from the candidate
|
||||
// list in the process).
|
||||
//
|
||||
// Recall that in the previous step, we created SPFVertex structures for each
|
||||
// of the routers found in the Global Router Link Records and added tehm to
|
||||
// the candidate list.
|
||||
//
|
||||
NS_LOG_LOGIC (candidate);
|
||||
v = candidate.Pop ();
|
||||
NS_LOG_LOGIC ("Popped vertex " << v->GetVertexId ());
|
||||
//
|
||||
// Update the status field of the vertex to indicate that it is in the SPF
|
||||
// tree.
|
||||
//
|
||||
//
|
||||
// Update the status field of the vertex to indicate that it is in the SPF
|
||||
// tree.
|
||||
//
|
||||
v->GetLSA ()->SetStatus (GlobalRoutingLSA::LSA_SPF_IN_SPFTREE);
|
||||
//
|
||||
// The current vertex has a parent pointer. By calling this rather oddly
|
||||
// named method (blame quagga) we add the current vertex to the list of
|
||||
// children of that parent vertex. In the next hop calculation called during
|
||||
// SPFNext, the parent pointer was set but the vertex has been orphaned up
|
||||
// to now.
|
||||
//
|
||||
//
|
||||
// The current vertex has a parent pointer. By calling this rather oddly
|
||||
// named method (blame quagga) we add the current vertex to the list of
|
||||
// children of that parent vertex. In the next hop calculation called during
|
||||
// SPFNext, the parent pointer was set but the vertex has been orphaned up
|
||||
// to now.
|
||||
//
|
||||
SPFVertexAddParent (v);
|
||||
//
|
||||
// Note that when there is a choice of vertices closest to the root, network
|
||||
// vertices must be chosen before router vertices in order to necessarily
|
||||
// find all equal-cost paths.
|
||||
//
|
||||
// RFC2328 16.1. (4).
|
||||
//
|
||||
// This is the method that actually adds the routes. It'll walk the list
|
||||
// of nodes in the system, looking for the node corresponding to the router
|
||||
// ID of the root of the tree -- that is the router we're building the routes
|
||||
// for. It looks for the Ipv4 interface of that node and remembers it. So
|
||||
// we are only actually adding routes to that one node at the root of the SPF
|
||||
// tree.
|
||||
//
|
||||
// We're going to pop of a pointer to every vertex in the tree except the
|
||||
// root in order of distance from the root. For each of the vertices, we call
|
||||
// SPFIntraAddRouter (). Down in SPFIntraAddRouter, we look at all of the
|
||||
// point-to-point Global Router Link Records (the links to nodes adjacent to
|
||||
// the node represented by the vertex). We add a route to the IP address
|
||||
// specified by the m_linkData field of each of those link records. This will
|
||||
// be the *local* IP address associated with the interface attached to the
|
||||
// link. We use the outbound interface and next hop information present in
|
||||
// the vertex <v> which have possibly been inherited from the root.
|
||||
//
|
||||
// To summarize, we're going to look at the node represented by <v> and loop
|
||||
// through its point-to-point links, adding a *host* route to the local IP
|
||||
// address (at the <v> side) for each of those links.
|
||||
//
|
||||
//
|
||||
// Note that when there is a choice of vertices closest to the root, network
|
||||
// vertices must be chosen before router vertices in order to necessarily
|
||||
// find all equal-cost paths.
|
||||
//
|
||||
// RFC2328 16.1. (4).
|
||||
//
|
||||
// This is the method that actually adds the routes. It'll walk the list
|
||||
// of nodes in the system, looking for the node corresponding to the router
|
||||
// ID of the root of the tree -- that is the router we're building the routes
|
||||
// for. It looks for the Ipv4 interface of that node and remembers it. So
|
||||
// we are only actually adding routes to that one node at the root of the SPF
|
||||
// tree.
|
||||
//
|
||||
// We're going to pop of a pointer to every vertex in the tree except the
|
||||
// root in order of distance from the root. For each of the vertices, we call
|
||||
// SPFIntraAddRouter (). Down in SPFIntraAddRouter, we look at all of the
|
||||
// point-to-point Global Router Link Records (the links to nodes adjacent to
|
||||
// the node represented by the vertex). We add a route to the IP address
|
||||
// specified by the m_linkData field of each of those link records. This will
|
||||
// be the *local* IP address associated with the interface attached to the
|
||||
// link. We use the outbound interface and next hop information present in
|
||||
// the vertex <v> which have possibly been inherited from the root.
|
||||
//
|
||||
// To summarize, we're going to look at the node represented by <v> and loop
|
||||
// through its point-to-point links, adding a *host* route to the local IP
|
||||
// address (at the <v> side) for each of those links.
|
||||
//
|
||||
if (v->GetVertexType () == SPFVertex::VertexRouter)
|
||||
{
|
||||
SPFIntraAddRouter (v);
|
||||
@@ -1462,15 +1485,15 @@ GlobalRouteManagerImpl::SPFCalculate (Ipv4Address root)
|
||||
{
|
||||
NS_ASSERT_MSG (0, "illegal SPFVertex type");
|
||||
}
|
||||
//
|
||||
// RFC2328 16.1. (5).
|
||||
//
|
||||
// Iterate the algorithm by returning to Step 2 until there are no more
|
||||
// candidate vertices.
|
||||
//
|
||||
// RFC2328 16.1. (5).
|
||||
//
|
||||
// Iterate the algorithm by returning to Step 2 until there are no more
|
||||
// candidate vertices.
|
||||
|
||||
} // end for loop
|
||||
|
||||
// Second stage of SPF calculation procedure
|
||||
// Second stage of SPF calculation procedure
|
||||
SPFProcessStubs (m_spfroot);
|
||||
for (uint32_t i = 0; i < m_lsdb->GetNumExtLSAs (); i++)
|
||||
{
|
||||
@@ -1479,7 +1502,6 @@ GlobalRouteManagerImpl::SPFCalculate (Ipv4Address root)
|
||||
NS_LOG_LOGIC ("Processing External LSA with id " << extlsa->GetLinkStateId ());
|
||||
ProcessASExternals (m_spfroot, extlsa);
|
||||
}
|
||||
|
||||
//
|
||||
// We're all done setting the routing information for the node at the root of
|
||||
// the SPF tree. Delete all of the vertices and corresponding resources. Go
|
||||
@@ -1616,8 +1638,10 @@ GlobalRouteManagerImpl::SPFAddASExternal (GlobalRoutingLSA *extlsa, SPFVertex *v
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Ptr<Ipv4GlobalRouting> gr = router->GetRoutingProtocol ();
|
||||
NS_ASSERT (gr);
|
||||
Ptr<Ipv4GlobalRouting> gr = Ipv4RoutingHelper::
|
||||
GetRouting<Ipv4GlobalRouting> (ipv4->GetRoutingProtocol ());
|
||||
|
||||
NS_ASSERT_MSG (gr != 0, "GlobalRouteManagerImpl needs an instance of Ipv4GlobalRouting to be installed on the node");
|
||||
// walk through all next-hop-IPs and out-going-interfaces for reaching
|
||||
// the stub network gateway 'v' from the root node
|
||||
for (uint32_t i = 0; i < v->GetNRootExitDirections (); i++)
|
||||
@@ -1627,7 +1651,7 @@ GlobalRouteManagerImpl::SPFAddASExternal (GlobalRoutingLSA *extlsa, SPFVertex *v
|
||||
int32_t outIf = exit.second;
|
||||
if (outIf >= 0)
|
||||
{
|
||||
gr->AddASExternalRouteTo (tempip, tempmask, nextHop, outIf);
|
||||
gr->AddRouteTo (tempip, tempmask, nextHop, outIf, v->GetDistanceFromRoot ());
|
||||
NS_LOG_LOGIC ("(Route " << i << ") Node " << node->GetId () <<
|
||||
" add external network route to " << tempip <<
|
||||
" using next hop " << nextHop <<
|
||||
@@ -1702,7 +1726,7 @@ GlobalRouteManagerImpl::SPFIntraAddStub (GlobalRoutingLinkRecord *l, SPFVertex*
|
||||
NS_LOG_LOGIC ("Stub is on local host: " << v->GetVertexId () << "; returning");
|
||||
return;
|
||||
}
|
||||
NS_LOG_LOGIC ("Stub is on remote host: " << v->GetVertexId () << "; installing");
|
||||
NS_LOG_LOGIC ("Stub is on remote host: " << v->GetVertexId () << "; installing (" << v->GetDistanceFromRoot () << ")");
|
||||
//
|
||||
// The root of the Shortest Path First tree is the router to which we are
|
||||
// going to write the actual routing table entries. The vertex corresponding
|
||||
@@ -1787,8 +1811,10 @@ GlobalRouteManagerImpl::SPFIntraAddStub (GlobalRoutingLinkRecord *l, SPFVertex*
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Ptr<Ipv4GlobalRouting> gr = router->GetRoutingProtocol ();
|
||||
NS_ASSERT (gr);
|
||||
Ptr<Ipv4GlobalRouting> gr = Ipv4RoutingHelper::
|
||||
GetRouting<Ipv4GlobalRouting> (ipv4->GetRoutingProtocol ());
|
||||
|
||||
NS_ASSERT_MSG (gr != 0, "GlobalRouteManagerImpl needs an instance of Ipv4GlobalRouting to be installed on the node");
|
||||
// walk through all next-hop-IPs and out-going-interfaces for reaching
|
||||
// the stub network gateway 'v' from the root node
|
||||
for (uint32_t i = 0; i < v->GetNRootExitDirections (); i++)
|
||||
@@ -1798,11 +1824,12 @@ GlobalRouteManagerImpl::SPFIntraAddStub (GlobalRoutingLinkRecord *l, SPFVertex*
|
||||
int32_t outIf = exit.second;
|
||||
if (outIf >= 0)
|
||||
{
|
||||
gr->AddNetworkRouteTo (tempip, tempmask, nextHop, outIf);
|
||||
gr->AddRouteTo (tempip, tempmask, nextHop, outIf, v->GetDistanceFromRoot ());
|
||||
NS_LOG_LOGIC ("(Route " << i << ") Node " << node->GetId () <<
|
||||
" add network route to " << tempip <<
|
||||
" using next hop " << nextHop <<
|
||||
" via interface " << outIf);
|
||||
" via interface " << outIf <<
|
||||
" metric " << v->GetDistanceFromRoot () );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2021,33 +2048,36 @@ GlobalRouteManagerImpl::SPFIntraAddRouter (SPFVertex* v)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Ptr<Ipv4GlobalRouting> gr = router->GetRoutingProtocol ();
|
||||
NS_ASSERT (gr);
|
||||
// walk through all available exit directions due to ECMP,
|
||||
// and add host route for each of the exit direction toward
|
||||
// the vertex 'v'
|
||||
for (uint32_t i = 0; i < v->GetNRootExitDirections (); i++)
|
||||
{
|
||||
SPFVertex::NodeExit_t exit = v->GetRootExitDirection (i);
|
||||
Ipv4Address nextHop = exit.first;
|
||||
int32_t outIf = exit.second;
|
||||
if (outIf >= 0)
|
||||
{
|
||||
gr->AddHostRouteTo (lr->GetLinkData (), nextHop,
|
||||
outIf);
|
||||
NS_LOG_LOGIC ("(Route " << i << ") Node " << node->GetId () <<
|
||||
" adding host route to " << lr->GetLinkData () <<
|
||||
" using next hop " << nextHop <<
|
||||
" and outgoing interface " << outIf);
|
||||
}
|
||||
else
|
||||
{
|
||||
NS_LOG_LOGIC ("(Route " << i << ") Node " << node->GetId () <<
|
||||
" NOT able to add host route to " << lr->GetLinkData () <<
|
||||
" using next hop " << nextHop <<
|
||||
" since outgoing interface id is negative " << outIf);
|
||||
}
|
||||
} // for all routes from the root the vertex 'v'
|
||||
|
||||
// Ptr<Ipv4GlobalRouting> gr = Ipv4RoutingHelper::
|
||||
// GetRouting<Ipv4GlobalRouting> (ipv4->GetRoutingProtocol ());
|
||||
|
||||
// NS_ASSERT_MSG (gr != 0, "GlobalRouteManagerImpl needs an instance of Ipv4GlobalRouting to be installed on the node");
|
||||
// // walk through all available exit directions due to ECMP,
|
||||
// // and add host route for each of the exit direction toward
|
||||
// // the vertex 'v'
|
||||
// for (uint32_t i = 0; i < v->GetNRootExitDirections (); i++)
|
||||
// {
|
||||
// SPFVertex::NodeExit_t exit = v->GetRootExitDirection (i);
|
||||
// Ipv4Address nextHop = exit.first;
|
||||
// int32_t outIf = exit.second;
|
||||
// if (outIf >= 0)
|
||||
// {
|
||||
// gr->AddRouteTo (lr->GetLinkData (), Ipv4Mask::GetOnes (), nextHop,
|
||||
// outIf, v->GetDistanceFromRoot ());
|
||||
// NS_LOG_LOGIC ("(Route " << i << ") Node " << node->GetId () <<
|
||||
// " adding host route to " << lr->GetLinkData () <<
|
||||
// " using next hop " << nextHop <<
|
||||
// " and outgoing interface " << outIf);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// NS_LOG_LOGIC ("(Route " << i << ") Node " << node->GetId () <<
|
||||
// " NOT able to add host route to " << lr->GetLinkData () <<
|
||||
// " using next hop " << nextHop <<
|
||||
// " since outgoing interface id is negative " << outIf);
|
||||
// }
|
||||
// } // for all routes from the root the vertex 'v'
|
||||
}
|
||||
//
|
||||
// Done adding the routes for the selected node.
|
||||
@@ -2134,8 +2164,11 @@ GlobalRouteManagerImpl::SPFIntraAddTransit (SPFVertex* v)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Ptr<Ipv4GlobalRouting> gr = router->GetRoutingProtocol ();
|
||||
NS_ASSERT (gr);
|
||||
|
||||
Ptr<Ipv4GlobalRouting> gr = Ipv4RoutingHelper::
|
||||
GetRouting<Ipv4GlobalRouting> (ipv4->GetRoutingProtocol ());
|
||||
|
||||
NS_ASSERT_MSG (gr != 0, "GlobalRouteManagerImpl needs an instance of Ipv4GlobalRouting to be installed on the node");
|
||||
// walk through all available exit directions due to ECMP,
|
||||
// and add host route for each of the exit direction toward
|
||||
// the vertex 'v'
|
||||
@@ -2147,7 +2180,7 @@ GlobalRouteManagerImpl::SPFIntraAddTransit (SPFVertex* v)
|
||||
|
||||
if (outIf >= 0)
|
||||
{
|
||||
gr->AddNetworkRouteTo (tempip, tempmask, nextHop, outIf);
|
||||
gr->AddRouteTo (tempip, tempmask, nextHop, outIf, v->GetDistanceFromRoot ());
|
||||
NS_LOG_LOGIC ("(Route " << i << ") Node " << node->GetId () <<
|
||||
" add network route to " << tempip <<
|
||||
" using next hop " << nextHop <<
|
||||
|
||||
@@ -715,6 +715,11 @@ public:
|
||||
*/
|
||||
virtual void DeleteGlobalRoutes ();
|
||||
|
||||
/**
|
||||
* @brief Reset LSDB without clearing routing entries
|
||||
*/
|
||||
virtual void ClearLSDB ();
|
||||
|
||||
/**
|
||||
* @brief Build the routing database by gathering Link State Advertisements
|
||||
* from each node exporting a GlobalRouter interface.
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#include "global-route-manager.h"
|
||||
#include "global-route-manager-impl.h"
|
||||
|
||||
NS_LOG_COMPONENT_DEFINE ("GlobalRouteManager1");
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
@@ -35,13 +37,24 @@ namespace ns3 {
|
||||
void
|
||||
GlobalRouteManager::DeleteGlobalRoutes ()
|
||||
{
|
||||
NS_LOG_FUNCTION (0);
|
||||
SimulationSingleton<GlobalRouteManagerImpl>::Get ()->
|
||||
DeleteGlobalRoutes ();
|
||||
DeleteGlobalRoutes ();
|
||||
}
|
||||
|
||||
void
|
||||
GlobalRouteManager::ClearLSDB ()
|
||||
{
|
||||
NS_LOG_FUNCTION (0);
|
||||
SimulationSingleton<GlobalRouteManagerImpl>::Get ()->
|
||||
ClearLSDB ();
|
||||
}
|
||||
|
||||
void
|
||||
GlobalRouteManager::BuildGlobalRoutingDatabase (void)
|
||||
{
|
||||
NS_LOG_FUNCTION (0);
|
||||
|
||||
SimulationSingleton<GlobalRouteManagerImpl>::Get ()->
|
||||
BuildGlobalRoutingDatabase ();
|
||||
}
|
||||
@@ -49,6 +62,8 @@ GlobalRouteManager::BuildGlobalRoutingDatabase (void)
|
||||
void
|
||||
GlobalRouteManager::InitializeRoutes (void)
|
||||
{
|
||||
NS_LOG_FUNCTION (0);
|
||||
|
||||
SimulationSingleton<GlobalRouteManagerImpl>::Get ()->
|
||||
InitializeRoutes ();
|
||||
}
|
||||
@@ -56,6 +71,8 @@ GlobalRouteManager::InitializeRoutes (void)
|
||||
uint32_t
|
||||
GlobalRouteManager::AllocateRouterId (void)
|
||||
{
|
||||
NS_LOG_FUNCTION (0);
|
||||
|
||||
static uint32_t routerId = 0;
|
||||
return routerId++;
|
||||
}
|
||||
|
||||
@@ -52,6 +52,11 @@ public:
|
||||
*/
|
||||
static void DeleteGlobalRoutes ();
|
||||
|
||||
/**
|
||||
* @breif Clear LSA database without removing any entry in global routing table
|
||||
*/
|
||||
static void ClearLSDB ();
|
||||
|
||||
/**
|
||||
* @brief Build the routing database by gathering Link State Advertisements
|
||||
* from each node exporting a GlobalRouter interface.
|
||||
|
||||
@@ -28,9 +28,11 @@
|
||||
#include "ns3/ipv4.h"
|
||||
#include "ns3/bridge-net-device.h"
|
||||
#include "ipv4-global-routing.h"
|
||||
#include "ns3/loopback-net-device.h"
|
||||
#include "global-router-interface.h"
|
||||
#include <vector>
|
||||
|
||||
|
||||
NS_LOG_COMPONENT_DEFINE ("GlobalRouter");
|
||||
|
||||
namespace ns3 {
|
||||
@@ -526,28 +528,28 @@ GlobalRouter::~GlobalRouter ()
|
||||
ClearLSAs ();
|
||||
}
|
||||
|
||||
void
|
||||
GlobalRouter::SetRoutingProtocol (Ptr<Ipv4GlobalRouting> routing)
|
||||
{
|
||||
m_routingProtocol = routing;
|
||||
}
|
||||
Ptr<Ipv4GlobalRouting>
|
||||
GlobalRouter::GetRoutingProtocol (void)
|
||||
{
|
||||
return m_routingProtocol;
|
||||
}
|
||||
// void
|
||||
// GlobalRouter::SetRoutingProtocol (Ptr<Ipv4GlobalRouting> routing)
|
||||
// {
|
||||
// m_routingProtocol = routing;
|
||||
// }
|
||||
// Ptr<Ipv4GlobalRouting>
|
||||
// GlobalRouter::GetRoutingProtocol (void)
|
||||
// {
|
||||
// return m_routingProtocol;
|
||||
// }
|
||||
|
||||
void
|
||||
GlobalRouter::DoDispose ()
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
m_routingProtocol = 0;
|
||||
for (InjectedRoutesI k = m_injectedRoutes.begin ();
|
||||
k != m_injectedRoutes.end ();
|
||||
k = m_injectedRoutes.erase (k))
|
||||
{
|
||||
delete (*k);
|
||||
}
|
||||
// m_routingProtocol = 0;
|
||||
// for (InjectedRoutesI k = m_injectedRoutes.begin ();
|
||||
// k != m_injectedRoutes.end ();
|
||||
// k = m_injectedRoutes.erase (k))
|
||||
// {
|
||||
// delete (*k);
|
||||
// }
|
||||
Object::DoDispose ();
|
||||
}
|
||||
|
||||
@@ -717,17 +719,17 @@ GlobalRouter::DiscoverLSAs ()
|
||||
// Build injected route LSAs as external routes
|
||||
// RFC 2328, section 12.4.4
|
||||
//
|
||||
for (InjectedRoutesCI i = m_injectedRoutes.begin ();
|
||||
for (RouteList::const_iterator i = m_injectedRoutes.begin ();
|
||||
i != m_injectedRoutes.end ();
|
||||
i++)
|
||||
{
|
||||
GlobalRoutingLSA *pLSA = new GlobalRoutingLSA;
|
||||
pLSA->SetLSType (GlobalRoutingLSA::ASExternalLSAs);
|
||||
pLSA->SetLinkStateId ((*i)->GetDestNetwork ());
|
||||
pLSA->SetLinkStateId (i->GetDestNetwork ());
|
||||
pLSA->SetAdvertisingRouter (m_routerId);
|
||||
pLSA->SetNetworkLSANetworkMask ((*i)->GetDestNetworkMask ());
|
||||
pLSA->SetNetworkLSANetworkMask (i->GetDestNetworkMask ());
|
||||
pLSA->SetStatus (GlobalRoutingLSA::LSA_SPF_NOT_EXPLORED);
|
||||
m_LSAs.push_back (pLSA);
|
||||
m_LSAs.push_back (pLSA);
|
||||
}
|
||||
return m_LSAs.size ();
|
||||
}
|
||||
@@ -752,6 +754,8 @@ GlobalRouter::ProcessSingleBroadcastLink (Ptr<NetDevice> nd, GlobalRoutingLSA *p
|
||||
{
|
||||
NS_LOG_FUNCTION (nd << pLSA << &c);
|
||||
|
||||
if (DynamicCast<LoopbackNetDevice> (nd)) return; //don't announce loopback addresses
|
||||
|
||||
GlobalRoutingLinkRecord *plr = new GlobalRoutingLinkRecord;
|
||||
NS_ABORT_MSG_IF (plr == 0, "GlobalRouter::ProcessSingleBroadcastLink(): Can't alloc link record");
|
||||
|
||||
@@ -1503,77 +1507,74 @@ GlobalRouter::GetLSA (uint32_t n, GlobalRoutingLSA &lsa) const
|
||||
}
|
||||
|
||||
void
|
||||
GlobalRouter::InjectRoute (Ipv4Address network, Ipv4Mask networkMask)
|
||||
GlobalRouter::InjectRoute (Ipv4Address network, Ipv4Mask networkMask, uint32_t metric/*=1*/)
|
||||
{
|
||||
NS_LOG_FUNCTION (network << networkMask);
|
||||
Ipv4RoutingTableEntry *route = new Ipv4RoutingTableEntry ();
|
||||
//
|
||||
// Interface number does not matter here, using 1.
|
||||
//
|
||||
*route = Ipv4RoutingTableEntry::CreateNetworkRouteTo (network,
|
||||
networkMask,
|
||||
1);
|
||||
m_injectedRoutes.push_back (route);
|
||||
NS_LOG_FUNCTION (network << networkMask << metric);
|
||||
|
||||
WithdrawRoute (network, networkMask); //slight inefficiency to prevent duplicate routes
|
||||
m_injectedRoutes.push_back (Ipv4RoutingTableEntry::CreateNetworkRouteTo (network,
|
||||
networkMask,
|
||||
metric));
|
||||
}
|
||||
|
||||
Ipv4RoutingTableEntry *
|
||||
GlobalRouter::GetInjectedRoute (uint32_t index)
|
||||
{
|
||||
NS_LOG_FUNCTION (index);
|
||||
if (index < m_injectedRoutes.size ())
|
||||
{
|
||||
uint32_t tmp = 0;
|
||||
for (InjectedRoutesCI i = m_injectedRoutes.begin ();
|
||||
i != m_injectedRoutes.end ();
|
||||
i++)
|
||||
{
|
||||
if (tmp == index)
|
||||
{
|
||||
return *i;
|
||||
}
|
||||
tmp++;
|
||||
}
|
||||
}
|
||||
NS_ASSERT (false);
|
||||
// quiet compiler.
|
||||
return 0;
|
||||
}
|
||||
// Ipv4RoutingTableEntry *
|
||||
// GlobalRouter::GetInjectedRoute (uint32_t index)
|
||||
// {
|
||||
// NS_LOG_FUNCTION (index);
|
||||
// if (index < m_injectedRoutes.size ())
|
||||
// {
|
||||
// uint32_t tmp = 0;
|
||||
// for (InjectedRoutesCI i = m_injectedRoutes.begin ();
|
||||
// i != m_injectedRoutes.end ();
|
||||
// i++)
|
||||
// {
|
||||
// if (tmp == index)
|
||||
// {
|
||||
// return *i;
|
||||
// }
|
||||
// tmp++;
|
||||
// }
|
||||
// }
|
||||
// NS_ASSERT (false);
|
||||
// // quiet compiler.
|
||||
// return 0;
|
||||
// }
|
||||
|
||||
uint32_t
|
||||
GlobalRouter::GetNInjectedRoutes ()
|
||||
{
|
||||
return m_injectedRoutes.size ();
|
||||
}
|
||||
// uint32_t
|
||||
// GlobalRouter::GetNInjectedRoutes ()
|
||||
// {
|
||||
// return m_injectedRoutes.size ();
|
||||
// }
|
||||
|
||||
void
|
||||
GlobalRouter::RemoveInjectedRoute (uint32_t index)
|
||||
{
|
||||
NS_LOG_FUNCTION (index);
|
||||
NS_ASSERT (index < m_injectedRoutes.size ());
|
||||
uint32_t tmp = 0;
|
||||
for (InjectedRoutesI i = m_injectedRoutes.begin (); i != m_injectedRoutes.end (); i++)
|
||||
{
|
||||
if (tmp == index)
|
||||
{
|
||||
NS_LOG_LOGIC ("Removing route " << index << "; size = " << m_injectedRoutes.size ());
|
||||
delete *i;
|
||||
m_injectedRoutes.erase (i);
|
||||
return;
|
||||
}
|
||||
tmp++;
|
||||
}
|
||||
}
|
||||
// void
|
||||
// GlobalRouter::RemoveInjectedRoute (uint32_t index)
|
||||
// {
|
||||
// NS_LOG_FUNCTION (index);
|
||||
// NS_ASSERT (index < m_injectedRoutes.size ());
|
||||
// uint32_t tmp = 0;
|
||||
// for (InjectedRoutesI i = m_injectedRoutes.begin (); i != m_injectedRoutes.end (); i++)
|
||||
// {
|
||||
// if (tmp == index)
|
||||
// {
|
||||
// NS_LOG_LOGIC ("Removing route " << index << "; size = " << m_injectedRoutes.size ());
|
||||
// delete *i;
|
||||
// m_injectedRoutes.erase (i);
|
||||
// return;
|
||||
// }
|
||||
// tmp++;
|
||||
// }
|
||||
// }
|
||||
|
||||
bool
|
||||
GlobalRouter::WithdrawRoute (Ipv4Address network, Ipv4Mask networkMask)
|
||||
{
|
||||
NS_LOG_FUNCTION (network << networkMask);
|
||||
for (InjectedRoutesI i = m_injectedRoutes.begin (); i != m_injectedRoutes.end (); i++)
|
||||
|
||||
for (RouteList::iterator i = m_injectedRoutes.begin (); i != m_injectedRoutes.end (); i++)
|
||||
{
|
||||
if ((*i)->GetDestNetwork () == network && (*i)->GetDestNetworkMask () == networkMask)
|
||||
if (i->GetDestNetwork () == network && i->GetDestNetworkMask () == networkMask)
|
||||
{
|
||||
NS_LOG_LOGIC ("Withdrawing route to network/mask " << network << "/" << networkMask);
|
||||
delete *i;
|
||||
m_injectedRoutes.erase (i);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,6 @@
|
||||
namespace ns3 {
|
||||
|
||||
class GlobalRouter;
|
||||
class Ipv4GlobalRouting;
|
||||
|
||||
/**
|
||||
* @brief A single link record for a link state advertisement.
|
||||
@@ -588,10 +587,6 @@ public:
|
||||
*/
|
||||
GlobalRouter ();
|
||||
|
||||
|
||||
void SetRoutingProtocol (Ptr<Ipv4GlobalRouting> routing);
|
||||
Ptr<Ipv4GlobalRouting> GetRoutingProtocol (void);
|
||||
|
||||
/**
|
||||
* @brief Get the Router ID associated with this Global Router.
|
||||
*
|
||||
@@ -666,35 +661,35 @@ public:
|
||||
* @param network The Network to inject
|
||||
* @param networkMask The Network Mask to inject
|
||||
*/
|
||||
void InjectRoute (Ipv4Address network, Ipv4Mask networkMask);
|
||||
void InjectRoute (Ipv4Address network, Ipv4Mask networkMask, uint32_t metric=1);
|
||||
|
||||
/**
|
||||
* @brief Get the number of injected routes that have been added
|
||||
* to the routing table.
|
||||
* @return number of injected routes
|
||||
*/
|
||||
uint32_t GetNInjectedRoutes (void);
|
||||
// /**
|
||||
// * @brief Get the number of injected routes that have been added
|
||||
// * to the routing table.
|
||||
// * @return number of injected routes
|
||||
// */
|
||||
// uint32_t GetNInjectedRoutes (void) const;
|
||||
|
||||
/**
|
||||
* @brief Return the injected route indexed by i
|
||||
* @param i the index of the route
|
||||
* @return a pointer to that Ipv4RoutingTableEntry is returned
|
||||
*
|
||||
*/
|
||||
Ipv4RoutingTableEntry *GetInjectedRoute (uint32_t i);
|
||||
// /**
|
||||
// * @brief Return the injected route indexed by i
|
||||
// * @param i the index of the route
|
||||
// * @return a pointer to that Ipv4RoutingTableEntry is returned
|
||||
// *
|
||||
// */
|
||||
// const Ipv4RoutingTableEntry& GetInjectedRoute (uint32_t i) const;
|
||||
|
||||
/**
|
||||
* @brief Withdraw a route from the global unicast routing table.
|
||||
*
|
||||
* Calling this function will cause all indexed routes numbered above
|
||||
* index i to have their index decremented. For instance, it is possible to
|
||||
* remove N injected routes by calling RemoveInjectedRoute (0) N times.
|
||||
*
|
||||
* @param i The index (into the injected routing list) of the route to remove.
|
||||
*
|
||||
* @see GlobalRouter::WithdrawRoute ()
|
||||
*/
|
||||
void RemoveInjectedRoute (uint32_t i);
|
||||
// /**
|
||||
// * @brief Withdraw a route from the global unicast routing table.
|
||||
// *
|
||||
// * Calling this function will cause all indexed routes numbered above
|
||||
// * index i to have their index decremented. For instance, it is possible to
|
||||
// * remove N injected routes by calling RemoveInjectedRoute (0) N times.
|
||||
// *
|
||||
// * @param i The index (into the injected routing list) of the route to remove.
|
||||
// *
|
||||
// * @see GlobalRouter::WithdrawRoute ()
|
||||
// */
|
||||
// void RemoveInjectedRoute (uint32_t i);
|
||||
|
||||
/**
|
||||
* @brief Withdraw a route from the global unicast routing table.
|
||||
@@ -728,12 +723,10 @@ private:
|
||||
ListOfLSAs_t m_LSAs;
|
||||
|
||||
Ipv4Address m_routerId;
|
||||
Ptr<Ipv4GlobalRouting> m_routingProtocol;
|
||||
// Ptr<Ipv4GlobalRouting> m_routingProtocol;
|
||||
|
||||
typedef std::list<Ipv4RoutingTableEntry *> InjectedRoutes;
|
||||
typedef std::list<Ipv4RoutingTableEntry *>::const_iterator InjectedRoutesCI;
|
||||
typedef std::list<Ipv4RoutingTableEntry *>::iterator InjectedRoutesI;
|
||||
InjectedRoutes m_injectedRoutes; // Routes we are exporting
|
||||
typedef std::list<Ipv4RoutingTableEntry> RouteList;
|
||||
RouteList m_injectedRoutes; // Routes we are exporting
|
||||
|
||||
// inherited from Object
|
||||
virtual void DoDispose (void);
|
||||
|
||||
@@ -846,10 +846,10 @@ void Icmpv6L4Protocol::SendMessage (Ptr<Packet> packet, Ipv6Address src, Ipv6Add
|
||||
{
|
||||
NS_LOG_FUNCTION (this << packet << src << dst << (uint32_t)ttl);
|
||||
Ptr<Ipv6L3Protocol> ipv6 = m_node->GetObject<Ipv6L3Protocol> ();
|
||||
SocketIpTtlTag tag;
|
||||
NS_ASSERT (ipv6 != 0);
|
||||
|
||||
tag.SetTtl (ttl);
|
||||
Ptr<SocketIpTtlTag> tag = CreateObject<SocketIpTtlTag> ();
|
||||
tag->SetTtl (ttl);
|
||||
packet->AddPacketTag (tag);
|
||||
m_downTarget (packet, src, dst, PROT_NUMBER, 0);
|
||||
}
|
||||
@@ -860,7 +860,6 @@ void Icmpv6L4Protocol::SendMessage (Ptr<Packet> packet, Ipv6Address dst, Icmpv6H
|
||||
Ptr<Ipv6L3Protocol> ipv6 = m_node->GetObject<Ipv6L3Protocol> ();
|
||||
NS_ASSERT (ipv6 != 0 && ipv6->GetRoutingProtocol () != 0);
|
||||
Ipv6Header header;
|
||||
SocketIpTtlTag tag;
|
||||
Socket::SocketErrno err;
|
||||
Ptr<Ipv6Route> route;
|
||||
Ptr<NetDevice> oif (0); //specify non-zero if bound to a source address
|
||||
@@ -871,7 +870,8 @@ void Icmpv6L4Protocol::SendMessage (Ptr<Packet> packet, Ipv6Address dst, Icmpv6H
|
||||
if (route != 0)
|
||||
{
|
||||
NS_LOG_LOGIC ("Route exists");
|
||||
tag.SetTtl (ttl);
|
||||
Ptr<SocketIpTtlTag> tag = CreateObject<SocketIpTtlTag> ();
|
||||
tag->SetTtl (ttl);
|
||||
packet->AddPacketTag (tag);
|
||||
Ipv6Address src = route->GetSource ();
|
||||
|
||||
|
||||
@@ -0,0 +1,317 @@
|
||||
// -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*-
|
||||
//
|
||||
// Copyright (c) 2008 University of Washington
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
// published by the Free Software Foundation;
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
//
|
||||
|
||||
#include "ns3/names.h"
|
||||
#include "ns3/log.h"
|
||||
#include "ns3/simulator.h"
|
||||
#include "ns3/object.h"
|
||||
#include "ns3/packet.h"
|
||||
#include "ns3/net-device.h"
|
||||
#include "ns3/ipv4-route.h"
|
||||
#include "ipv4-global-routing-one-nexthop.h"
|
||||
|
||||
#include <iomanip>
|
||||
|
||||
NS_LOG_COMPONENT_DEFINE ("Ipv4GlobalRoutingOneNexthop");
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
NS_OBJECT_ENSURE_REGISTERED (Ipv4GlobalRoutingOneNexthop);
|
||||
|
||||
TypeId
|
||||
Ipv4GlobalRoutingOneNexthop::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::Ipv4GlobalRoutingOneNexthop")
|
||||
.SetParent<Ipv4GlobalRouting> ()
|
||||
.AddConstructor<Ipv4GlobalRoutingOneNexthop> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
|
||||
Ipv4GlobalRoutingOneNexthop::Ipv4GlobalRoutingOneNexthop ()
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
Ipv4GlobalRoutingOneNexthop::AddRouteTo (Ipv4Address dest,
|
||||
Ipv4Mask destMask,
|
||||
Ipv4Address nextHop,
|
||||
uint32_t interface,
|
||||
uint32_t metric/*=0*/)
|
||||
{
|
||||
NS_LOG_FUNCTION (dest << nextHop << interface);
|
||||
|
||||
// First, make sure we don't try to add route to ourselves
|
||||
int32_t iface = m_ipv4->GetInterfaceForPrefix (dest, destMask);
|
||||
NS_LOG_LOGIC ("Iface " << iface << " for " << dest);
|
||||
if (iface >= 0)
|
||||
{
|
||||
NS_LOG_LOGIC ("Do not add route to ourselves");
|
||||
return;
|
||||
}
|
||||
|
||||
// Second, there is no reason to add p2p route that equals to the next hop
|
||||
if (destMask == Ipv4Mask::GetOnes () && dest == nextHop)
|
||||
{
|
||||
NS_LOG_LOGIC ("Ignore route to nexthop via nexhop");
|
||||
return;
|
||||
}
|
||||
|
||||
Ipv4AddressTrie<Ipv4RoutingTableEntry>::iterator route =
|
||||
m_routes.find (dest.CombineMask (destMask));
|
||||
if (route == m_routes.end ())
|
||||
{
|
||||
NS_LOG_LOGIC ("Adding new route");
|
||||
m_routes[dest.CombineMask (destMask)] =
|
||||
Ipv4RoutingTableEntry::CreateNetworkRouteTo (dest, destMask, nextHop, interface, metric);
|
||||
}
|
||||
else
|
||||
if (route->second.GetMetric () > metric)
|
||||
{
|
||||
NS_LOG_LOGIC ("Replacing larger-metric route");
|
||||
m_routes[dest.CombineMask (destMask)] =
|
||||
Ipv4RoutingTableEntry::CreateNetworkRouteTo (dest, destMask, nextHop, interface, metric);
|
||||
}
|
||||
else
|
||||
{
|
||||
NS_LOG_LOGIC ("Don't update lower-metric route");
|
||||
}
|
||||
}
|
||||
|
||||
Ptr<Ipv4Route>
|
||||
Ipv4GlobalRoutingOneNexthop::LookupGlobal (Ipv4Address dest, Ptr<NetDevice> oif)
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
NS_LOG_LOGIC ("Looking for route for destination " << dest);
|
||||
|
||||
// Cheating with lookups. Need to redesign Trie
|
||||
Ipv4AddressTrieMap::const_iterator longest_prefix_map;
|
||||
Ipv4Mask mask ("255.255.255.255");
|
||||
do {
|
||||
NS_LOG_DEBUG ("Try mask " << mask);
|
||||
longest_prefix_map = m_routes.longest_prefix_match (dest.CombineMask (mask));
|
||||
mask = Ipv4Mask (mask.Get () << 8);
|
||||
} while (longest_prefix_map == m_routes.end () && !mask.IsEqual (Ipv4Mask::GetZero ()));
|
||||
|
||||
if (longest_prefix_map == m_routes.end ())
|
||||
{
|
||||
NS_LOG_LOGIC ("Route not found...");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (oif != 0 && oif == m_ipv4->GetNetDevice (longest_prefix_map->second.GetInterface ()))
|
||||
{
|
||||
NS_LOG_LOGIC ("Route points to the incoming interface. Return empty route");
|
||||
return 0;
|
||||
}
|
||||
|
||||
// create a Ipv4Route object from the selected routing table entry
|
||||
Ptr<Ipv4Route> rtentry = Create<Ipv4Route> ();
|
||||
rtentry->SetDestination (longest_prefix_map->second.GetDest ());
|
||||
rtentry->SetSource (m_ipv4->GetAddress (longest_prefix_map->second.GetInterface (), 0).GetLocal ());
|
||||
rtentry->SetGateway (longest_prefix_map->second.GetGateway ());
|
||||
rtentry->SetOutputDevice (m_ipv4->GetNetDevice (longest_prefix_map->second.GetInterface ()));
|
||||
return rtentry;
|
||||
}
|
||||
|
||||
void
|
||||
Ipv4GlobalRoutingOneNexthop::DeleteRoutes ()
|
||||
{
|
||||
m_routes.clear ();
|
||||
}
|
||||
|
||||
// Formatted like output of "route -n" command
|
||||
void
|
||||
Ipv4GlobalRoutingOneNexthop::PrintRoutingTable (Ptr<OutputStreamWrapper> stream) const
|
||||
{
|
||||
std::ostream* os = stream->GetStream ();
|
||||
if (m_routes.size () > 0)
|
||||
{
|
||||
*os << "Destination Gateway Genmask Flags Metric Ref Use Iface" << std::endl;
|
||||
for (Ipv4AddressTrieMap::const_iterator i=m_routes.begin (); i != m_routes.end (); i++)
|
||||
{
|
||||
std::ostringstream dest, gw, mask, flags;
|
||||
const Ipv4RoutingTableEntry &route = i->second;
|
||||
dest << route.GetDest ();
|
||||
*os << std::setiosflags (std::ios::left) << std::setw (16) << dest.str ();
|
||||
gw << route.GetGateway ();
|
||||
*os << std::setiosflags (std::ios::left) << std::setw (16) << gw.str ();
|
||||
mask << route.GetDestNetworkMask ();
|
||||
*os << std::setiosflags (std::ios::left) << std::setw (16) << mask.str ();
|
||||
flags << "U";
|
||||
if (route.IsHost ())
|
||||
{
|
||||
flags << "H";
|
||||
}
|
||||
else if (route.IsGateway ())
|
||||
{
|
||||
flags << "G";
|
||||
}
|
||||
*os << std::setiosflags (std::ios::left) << std::setw (6) << flags.str ();
|
||||
*os << std::setiosflags (std::ios::left) << std::setw (6) << route.GetMetric ();
|
||||
// Ref ct not implemented
|
||||
*os << "-" << " ";
|
||||
// Use not implemented
|
||||
*os << "-" << " ";
|
||||
if (Names::FindName (m_ipv4->GetNetDevice (route.GetInterface ())) != "")
|
||||
{
|
||||
*os << Names::FindName (m_ipv4->GetNetDevice (route.GetInterface ()));
|
||||
}
|
||||
else
|
||||
{
|
||||
*os << route.GetInterface ();
|
||||
}
|
||||
*os << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ptr<Ipv4Route>
|
||||
Ipv4GlobalRoutingOneNexthop::RouteOutput (Ptr<Packet> p, const Ipv4Header &header,
|
||||
Ptr<NetDevice> oif, Socket::SocketErrno &sockerr)
|
||||
{
|
||||
//
|
||||
// First, see if this is a multicast packet we have a route for. If we
|
||||
// have a route, then send the packet down each of the specified interfaces.
|
||||
//
|
||||
if (header.GetDestination ().IsMulticast ())
|
||||
{
|
||||
NS_LOG_LOGIC ("Multicast destination-- returning false");
|
||||
return 0; // Let other routing protocols try to handle this
|
||||
}
|
||||
//
|
||||
// See if this is a unicast packet we have a route for.
|
||||
//
|
||||
NS_LOG_LOGIC ("Unicast destination- looking up");
|
||||
Ptr<Ipv4Route> rtentry = LookupGlobal (header.GetDestination (), oif);
|
||||
if (rtentry)
|
||||
{
|
||||
sockerr = Socket::ERROR_NOTERROR;
|
||||
}
|
||||
else
|
||||
{
|
||||
sockerr = Socket::ERROR_NOROUTETOHOST;
|
||||
}
|
||||
return rtentry;
|
||||
}
|
||||
|
||||
bool
|
||||
Ipv4GlobalRoutingOneNexthop::RouteInput (Ptr<const Packet> p, const Ipv4Header &header,
|
||||
Ptr<const NetDevice> idev,
|
||||
UnicastForwardCallback ucb, MulticastForwardCallback mcb,
|
||||
LocalDeliverCallback lcb, ErrorCallback ecb)
|
||||
{
|
||||
|
||||
NS_LOG_FUNCTION (this << p << header << header.GetSource () << header.GetDestination () << idev);
|
||||
// Check if input device supports IP
|
||||
NS_ASSERT (m_ipv4->GetInterfaceForDevice (idev) >= 0);
|
||||
uint32_t iif = m_ipv4->GetInterfaceForDevice (idev);
|
||||
|
||||
if (header.GetDestination ().IsMulticast ())
|
||||
{
|
||||
NS_LOG_LOGIC ("Multicast destination-- returning false");
|
||||
return false; // Let other routing protocols try to handle this
|
||||
}
|
||||
|
||||
if (header.GetDestination ().IsBroadcast ())
|
||||
{
|
||||
NS_LOG_LOGIC ("For me (Ipv4Addr broadcast address)");
|
||||
// TODO: Local Deliver for broadcast
|
||||
// TODO: Forward broadcast
|
||||
}
|
||||
|
||||
// TODO: Configurable option to enable RFC 1222 Strong End System Model
|
||||
// Right now, we will be permissive and allow a source to send us
|
||||
// a packet to one of our other interface addresses; that is, the
|
||||
// destination unicast address does not match one of the iif addresses,
|
||||
// but we check our other interfaces. This could be an option
|
||||
// (to remove the outer loop immediately below and just check iif).
|
||||
for (uint32_t j = 0; j < m_ipv4->GetNInterfaces (); j++)
|
||||
{
|
||||
for (uint32_t i = 0; i < m_ipv4->GetNAddresses (j); i++)
|
||||
{
|
||||
Ipv4InterfaceAddress iaddr = m_ipv4->GetAddress (j, i);
|
||||
Ipv4Address addr = iaddr.GetLocal ();
|
||||
if (addr.IsEqual (header.GetDestination ()))
|
||||
{
|
||||
if (j == iif)
|
||||
{
|
||||
NS_LOG_LOGIC ("For me (destination " << addr << " match)");
|
||||
}
|
||||
else
|
||||
{
|
||||
NS_LOG_LOGIC ("For me (destination " << addr << " match) on another interface " << header.GetDestination ());
|
||||
}
|
||||
lcb (p, header, iif);
|
||||
return true;
|
||||
}
|
||||
if (header.GetDestination ().IsEqual (iaddr.GetBroadcast ()))
|
||||
{
|
||||
NS_LOG_LOGIC ("For me (interface broadcast address)");
|
||||
lcb (p, header, iif);
|
||||
return true;
|
||||
}
|
||||
NS_LOG_LOGIC ("Address "<< addr << " not a match");
|
||||
}
|
||||
}
|
||||
// Check if input device supports IP forwarding
|
||||
if (m_ipv4->IsForwarding (iif) == false)
|
||||
{
|
||||
NS_LOG_LOGIC ("Forwarding disabled for this interface");
|
||||
ecb (p, header, Socket::ERROR_NOROUTETOHOST);
|
||||
return false;
|
||||
}
|
||||
// Next, try to find a route
|
||||
NS_LOG_LOGIC ("Unicast destination- looking up global route");
|
||||
Ptr<Ipv4Route> rtentry = LookupGlobal (header.GetDestination ());
|
||||
if (rtentry != 0)
|
||||
{
|
||||
NS_LOG_LOGIC ("Found unicast destination- calling unicast callback");
|
||||
ucb (rtentry, p, header);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
NS_LOG_LOGIC ("Did not find unicast destination- returning false");
|
||||
return false; // Let other routing protocols try to handle this
|
||||
// route request.
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t
|
||||
Ipv4GlobalRoutingOneNexthop::GetNRoutes () const
|
||||
{
|
||||
return m_routes.size ();
|
||||
}
|
||||
|
||||
Ipv4RoutingTableEntry
|
||||
Ipv4GlobalRoutingOneNexthop::GetRoute (uint32_t i) const
|
||||
{
|
||||
uint32_t index = 0;
|
||||
for (Ipv4AddressTrieMap::const_iterator it = m_routes.begin ();
|
||||
index <= i && it != m_routes.end ();
|
||||
it++, index++)
|
||||
{
|
||||
if (index == i) return it->second;
|
||||
}
|
||||
NS_ASSERT (false);
|
||||
return Ipv4RoutingTableEntry ();
|
||||
}
|
||||
|
||||
|
||||
} // namespace ns3
|
||||
@@ -0,0 +1,83 @@
|
||||
// -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*-
|
||||
//
|
||||
// Copyright (c) 2008 University of Washington
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
// published by the Free Software Foundation;
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
//
|
||||
//
|
||||
|
||||
#ifndef IPV4_GLOBAL_ROUTING_ONE_NEXTHOP_H
|
||||
#define IPV4_GLOBAL_ROUTING_ONE_NEXTHOP_H
|
||||
|
||||
#include "ns3/ipv4-global-routing.h"
|
||||
#include "ns3/trie.h"
|
||||
#include "ns3/ipv4-routing-table-entry.h"
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
/**
|
||||
* \brief Global routing protocol for IP version 4 stacks.
|
||||
*
|
||||
* Each prefix entry stores a list of ordered by metric next-hops
|
||||
*
|
||||
* This class deals with Ipv4 unicast routes only.
|
||||
*
|
||||
* \see Ipv4GlobalRouting
|
||||
* \see Ipv4RoutingProtocol
|
||||
* \see GlobalRouteManager
|
||||
*/
|
||||
class Ipv4GlobalRoutingOneNexthop : public Ipv4GlobalRouting
|
||||
{
|
||||
public:
|
||||
static TypeId GetTypeId (void);
|
||||
|
||||
Ipv4GlobalRoutingOneNexthop ();
|
||||
|
||||
// These methods inherited from base class
|
||||
// from Ipv4RoutingProtocol
|
||||
virtual Ptr<Ipv4Route> RouteOutput (Ptr<Packet> p, const Ipv4Header &header,
|
||||
Ptr<NetDevice> oif, Socket::SocketErrno &sockerr);
|
||||
|
||||
virtual bool RouteInput (Ptr<const Packet> p, const Ipv4Header &header, Ptr<const NetDevice> idev,
|
||||
UnicastForwardCallback ucb, MulticastForwardCallback mcb,
|
||||
LocalDeliverCallback lcb, ErrorCallback ecb);
|
||||
|
||||
virtual void PrintRoutingTable (Ptr<OutputStreamWrapper> stream) const;
|
||||
|
||||
// from Ipv4GlobalRouting
|
||||
virtual void AddRouteTo (Ipv4Address dest,
|
||||
Ipv4Mask destMask,
|
||||
Ipv4Address nextHop,
|
||||
uint32_t interface,
|
||||
uint32_t metric=0);
|
||||
|
||||
virtual void DeleteRoutes ();
|
||||
|
||||
uint32_t
|
||||
GetNRoutes () const;
|
||||
|
||||
Ipv4RoutingTableEntry
|
||||
GetRoute (uint32_t i) const;
|
||||
|
||||
protected:
|
||||
virtual Ptr<Ipv4Route> LookupGlobal (Ipv4Address dest, Ptr<NetDevice> oif = 0);
|
||||
|
||||
private:
|
||||
typedef Ipv4AddressTrie<Ipv4RoutingTableEntry> Ipv4AddressTrieMap;
|
||||
Ipv4AddressTrieMap m_routes;
|
||||
};
|
||||
|
||||
} // Namespace ns3
|
||||
|
||||
#endif /* IPV4_GLOBAL_ROUTING_ONE_NEXTHOP_H */
|
||||
@@ -16,19 +16,13 @@
|
||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
//
|
||||
|
||||
#include <vector>
|
||||
#include <iomanip>
|
||||
#include "ns3/names.h"
|
||||
#include "ns3/log.h"
|
||||
#include "ns3/simulator.h"
|
||||
#include "ns3/object.h"
|
||||
#include "ns3/packet.h"
|
||||
#include "ns3/net-device.h"
|
||||
#include "ns3/ipv4-route.h"
|
||||
#include "ns3/ipv4-routing-table-entry.h"
|
||||
#include "ns3/global-route-manager.h"
|
||||
#include "ns3/boolean.h"
|
||||
#include "ipv4-global-routing.h"
|
||||
#include "global-route-manager.h"
|
||||
|
||||
NS_LOG_COMPONENT_DEFINE ("Ipv4GlobalRouting");
|
||||
|
||||
@@ -40,14 +34,10 @@ TypeId
|
||||
Ipv4GlobalRouting::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::Ipv4GlobalRouting")
|
||||
.SetParent<Object> ()
|
||||
.AddAttribute ("RandomEcmpRouting",
|
||||
"Set to true if packets are randomly routed among ECMP; set to false for using only one route consistently",
|
||||
BooleanValue (false),
|
||||
MakeBooleanAccessor (&Ipv4GlobalRouting::m_randomEcmpRouting),
|
||||
MakeBooleanChecker ())
|
||||
.SetParent<Ipv4RoutingProtocol> ()
|
||||
.AddAttribute ("RespondToInterfaceEvents",
|
||||
"Set to true if you want to dynamically recompute the global routes upon Interface notification events (up/down, or add/remove address)",
|
||||
"Set to true if you want to dynamically recompute the global routes "
|
||||
"upon Interface notification events (up/down, or add/remove address)",
|
||||
BooleanValue (false),
|
||||
MakeBooleanAccessor (&Ipv4GlobalRouting::m_respondToInterfaceEvents),
|
||||
MakeBooleanChecker ())
|
||||
@@ -55,491 +45,16 @@ Ipv4GlobalRouting::GetTypeId (void)
|
||||
return tid;
|
||||
}
|
||||
|
||||
Ipv4GlobalRouting::Ipv4GlobalRouting ()
|
||||
: m_randomEcmpRouting (false),
|
||||
m_respondToInterfaceEvents (false)
|
||||
Ipv4GlobalRouting::Ipv4GlobalRouting ()
|
||||
: m_respondToInterfaceEvents (false)
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
}
|
||||
|
||||
Ipv4GlobalRouting::~Ipv4GlobalRouting ()
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
}
|
||||
|
||||
void
|
||||
Ipv4GlobalRouting::AddHostRouteTo (Ipv4Address dest,
|
||||
Ipv4Address nextHop,
|
||||
uint32_t interface)
|
||||
{
|
||||
NS_LOG_FUNCTION (dest << nextHop << interface);
|
||||
Ipv4RoutingTableEntry *route = new Ipv4RoutingTableEntry ();
|
||||
*route = Ipv4RoutingTableEntry::CreateHostRouteTo (dest, nextHop, interface);
|
||||
m_hostRoutes.push_back (route);
|
||||
}
|
||||
|
||||
void
|
||||
Ipv4GlobalRouting::AddHostRouteTo (Ipv4Address dest,
|
||||
uint32_t interface)
|
||||
{
|
||||
NS_LOG_FUNCTION (dest << interface);
|
||||
Ipv4RoutingTableEntry *route = new Ipv4RoutingTableEntry ();
|
||||
*route = Ipv4RoutingTableEntry::CreateHostRouteTo (dest, interface);
|
||||
m_hostRoutes.push_back (route);
|
||||
}
|
||||
|
||||
void
|
||||
Ipv4GlobalRouting::AddNetworkRouteTo (Ipv4Address network,
|
||||
Ipv4Mask networkMask,
|
||||
Ipv4Address nextHop,
|
||||
uint32_t interface)
|
||||
{
|
||||
NS_LOG_FUNCTION (network << networkMask << nextHop << interface);
|
||||
Ipv4RoutingTableEntry *route = new Ipv4RoutingTableEntry ();
|
||||
*route = Ipv4RoutingTableEntry::CreateNetworkRouteTo (network,
|
||||
networkMask,
|
||||
nextHop,
|
||||
interface);
|
||||
m_networkRoutes.push_back (route);
|
||||
}
|
||||
|
||||
void
|
||||
Ipv4GlobalRouting::AddNetworkRouteTo (Ipv4Address network,
|
||||
Ipv4Mask networkMask,
|
||||
uint32_t interface)
|
||||
{
|
||||
NS_LOG_FUNCTION (network << networkMask << interface);
|
||||
Ipv4RoutingTableEntry *route = new Ipv4RoutingTableEntry ();
|
||||
*route = Ipv4RoutingTableEntry::CreateNetworkRouteTo (network,
|
||||
networkMask,
|
||||
interface);
|
||||
m_networkRoutes.push_back (route);
|
||||
}
|
||||
|
||||
void
|
||||
Ipv4GlobalRouting::AddASExternalRouteTo (Ipv4Address network,
|
||||
Ipv4Mask networkMask,
|
||||
Ipv4Address nextHop,
|
||||
uint32_t interface)
|
||||
{
|
||||
NS_LOG_FUNCTION (network << networkMask << nextHop);
|
||||
Ipv4RoutingTableEntry *route = new Ipv4RoutingTableEntry ();
|
||||
*route = Ipv4RoutingTableEntry::CreateNetworkRouteTo (network,
|
||||
networkMask,
|
||||
nextHop,
|
||||
interface);
|
||||
m_ASexternalRoutes.push_back (route);
|
||||
}
|
||||
|
||||
|
||||
Ptr<Ipv4Route>
|
||||
Ipv4GlobalRouting::LookupGlobal (Ipv4Address dest, Ptr<NetDevice> oif)
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
NS_LOG_LOGIC ("Looking for route for destination " << dest);
|
||||
Ptr<Ipv4Route> rtentry = 0;
|
||||
// store all available routes that bring packets to their destination
|
||||
typedef std::vector<Ipv4RoutingTableEntry*> RouteVec_t;
|
||||
RouteVec_t allRoutes;
|
||||
|
||||
NS_LOG_LOGIC ("Number of m_hostRoutes = " << m_hostRoutes.size ());
|
||||
for (HostRoutesCI i = m_hostRoutes.begin ();
|
||||
i != m_hostRoutes.end ();
|
||||
i++)
|
||||
{
|
||||
NS_ASSERT ((*i)->IsHost ());
|
||||
if ((*i)->GetDest ().IsEqual (dest))
|
||||
{
|
||||
if (oif != 0)
|
||||
{
|
||||
if (oif != m_ipv4->GetNetDevice ((*i)->GetInterface ()))
|
||||
{
|
||||
NS_LOG_LOGIC ("Not on requested interface, skipping");
|
||||
continue;
|
||||
}
|
||||
}
|
||||
allRoutes.push_back (*i);
|
||||
NS_LOG_LOGIC (allRoutes.size () << "Found global host route" << *i);
|
||||
}
|
||||
}
|
||||
if (allRoutes.size () == 0) // if no host route is found
|
||||
{
|
||||
NS_LOG_LOGIC ("Number of m_networkRoutes" << m_networkRoutes.size ());
|
||||
for (NetworkRoutesI j = m_networkRoutes.begin ();
|
||||
j != m_networkRoutes.end ();
|
||||
j++)
|
||||
{
|
||||
Ipv4Mask mask = (*j)->GetDestNetworkMask ();
|
||||
Ipv4Address entry = (*j)->GetDestNetwork ();
|
||||
if (mask.IsMatch (dest, entry))
|
||||
{
|
||||
if (oif != 0)
|
||||
{
|
||||
if (oif != m_ipv4->GetNetDevice ((*j)->GetInterface ()))
|
||||
{
|
||||
NS_LOG_LOGIC ("Not on requested interface, skipping");
|
||||
continue;
|
||||
}
|
||||
}
|
||||
allRoutes.push_back (*j);
|
||||
NS_LOG_LOGIC (allRoutes.size () << "Found global network route" << *j);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (allRoutes.size () == 0) // consider external if no host/network found
|
||||
{
|
||||
for (ASExternalRoutesI k = m_ASexternalRoutes.begin ();
|
||||
k != m_ASexternalRoutes.end ();
|
||||
k++)
|
||||
{
|
||||
Ipv4Mask mask = (*k)->GetDestNetworkMask ();
|
||||
Ipv4Address entry = (*k)->GetDestNetwork ();
|
||||
if (mask.IsMatch (dest, entry))
|
||||
{
|
||||
NS_LOG_LOGIC ("Found external route" << *k);
|
||||
if (oif != 0)
|
||||
{
|
||||
if (oif != m_ipv4->GetNetDevice ((*k)->GetInterface ()))
|
||||
{
|
||||
NS_LOG_LOGIC ("Not on requested interface, skipping");
|
||||
continue;
|
||||
}
|
||||
}
|
||||
allRoutes.push_back (*k);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (allRoutes.size () > 0 ) // if route(s) is found
|
||||
{
|
||||
// pick up one of the routes uniformly at random if random
|
||||
// ECMP routing is enabled, or always select the first route
|
||||
// consistently if random ECMP routing is disabled
|
||||
uint32_t selectIndex;
|
||||
if (m_randomEcmpRouting)
|
||||
{
|
||||
selectIndex = m_rand.GetInteger (0, allRoutes.size ()-1);
|
||||
}
|
||||
else
|
||||
{
|
||||
selectIndex = 0;
|
||||
}
|
||||
Ipv4RoutingTableEntry* route = allRoutes.at (selectIndex);
|
||||
// create a Ipv4Route object from the selected routing table entry
|
||||
rtentry = Create<Ipv4Route> ();
|
||||
rtentry->SetDestination (route->GetDest ());
|
||||
// XXX handle multi-address case
|
||||
rtentry->SetSource (m_ipv4->GetAddress (route->GetInterface (), 0).GetLocal ());
|
||||
rtentry->SetGateway (route->GetGateway ());
|
||||
uint32_t interfaceIdx = route->GetInterface ();
|
||||
rtentry->SetOutputDevice (m_ipv4->GetNetDevice (interfaceIdx));
|
||||
return rtentry;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t
|
||||
Ipv4GlobalRouting::GetNRoutes (void) const
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
uint32_t n = 0;
|
||||
n += m_hostRoutes.size ();
|
||||
n += m_networkRoutes.size ();
|
||||
n += m_ASexternalRoutes.size ();
|
||||
return n;
|
||||
}
|
||||
|
||||
Ipv4RoutingTableEntry *
|
||||
Ipv4GlobalRouting::GetRoute (uint32_t index) const
|
||||
{
|
||||
NS_LOG_FUNCTION (index);
|
||||
if (index < m_hostRoutes.size ())
|
||||
{
|
||||
uint32_t tmp = 0;
|
||||
for (HostRoutesCI i = m_hostRoutes.begin ();
|
||||
i != m_hostRoutes.end ();
|
||||
i++)
|
||||
{
|
||||
if (tmp == index)
|
||||
{
|
||||
return *i;
|
||||
}
|
||||
tmp++;
|
||||
}
|
||||
}
|
||||
index -= m_hostRoutes.size ();
|
||||
uint32_t tmp = 0;
|
||||
if (index < m_networkRoutes.size ())
|
||||
{
|
||||
for (NetworkRoutesCI j = m_networkRoutes.begin ();
|
||||
j != m_networkRoutes.end ();
|
||||
j++)
|
||||
{
|
||||
if (tmp == index)
|
||||
{
|
||||
return *j;
|
||||
}
|
||||
tmp++;
|
||||
}
|
||||
}
|
||||
index -= m_networkRoutes.size ();
|
||||
tmp = 0;
|
||||
for (ASExternalRoutesCI k = m_ASexternalRoutes.begin ();
|
||||
k != m_ASexternalRoutes.end ();
|
||||
k++)
|
||||
{
|
||||
if (tmp == index)
|
||||
{
|
||||
return *k;
|
||||
}
|
||||
tmp++;
|
||||
}
|
||||
NS_ASSERT (false);
|
||||
// quiet compiler.
|
||||
return 0;
|
||||
}
|
||||
void
|
||||
Ipv4GlobalRouting::RemoveRoute (uint32_t index)
|
||||
{
|
||||
NS_LOG_FUNCTION (index);
|
||||
if (index < m_hostRoutes.size ())
|
||||
{
|
||||
uint32_t tmp = 0;
|
||||
for (HostRoutesI i = m_hostRoutes.begin ();
|
||||
i != m_hostRoutes.end ();
|
||||
i++)
|
||||
{
|
||||
if (tmp == index)
|
||||
{
|
||||
NS_LOG_LOGIC ("Removing route " << index << "; size = " << m_hostRoutes.size ());
|
||||
delete *i;
|
||||
m_hostRoutes.erase (i);
|
||||
NS_LOG_LOGIC ("Done removing host route " << index << "; host route remaining size = " << m_hostRoutes.size ());
|
||||
return;
|
||||
}
|
||||
tmp++;
|
||||
}
|
||||
}
|
||||
index -= m_hostRoutes.size ();
|
||||
uint32_t tmp = 0;
|
||||
for (NetworkRoutesI j = m_networkRoutes.begin ();
|
||||
j != m_networkRoutes.end ();
|
||||
j++)
|
||||
{
|
||||
if (tmp == index)
|
||||
{
|
||||
NS_LOG_LOGIC ("Removing route " << index << "; size = " << m_networkRoutes.size ());
|
||||
delete *j;
|
||||
m_networkRoutes.erase (j);
|
||||
NS_LOG_LOGIC ("Done removing network route " << index << "; network route remaining size = " << m_networkRoutes.size ());
|
||||
return;
|
||||
}
|
||||
tmp++;
|
||||
}
|
||||
index -= m_networkRoutes.size ();
|
||||
tmp = 0;
|
||||
for (ASExternalRoutesI k = m_ASexternalRoutes.begin ();
|
||||
k != m_ASexternalRoutes.end ();
|
||||
k++)
|
||||
{
|
||||
if (tmp == index)
|
||||
{
|
||||
NS_LOG_LOGIC ("Removing route " << index << "; size = " << m_ASexternalRoutes.size ());
|
||||
delete *k;
|
||||
m_ASexternalRoutes.erase (k);
|
||||
NS_LOG_LOGIC ("Done removing network route " << index << "; network route remaining size = " << m_networkRoutes.size ());
|
||||
return;
|
||||
}
|
||||
tmp++;
|
||||
}
|
||||
NS_ASSERT (false);
|
||||
}
|
||||
|
||||
void
|
||||
Ipv4GlobalRouting::DoDispose (void)
|
||||
Ipv4GlobalRouting::FixRoutes ()
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
for (HostRoutesI i = m_hostRoutes.begin ();
|
||||
i != m_hostRoutes.end ();
|
||||
i = m_hostRoutes.erase (i))
|
||||
{
|
||||
delete (*i);
|
||||
}
|
||||
for (NetworkRoutesI j = m_networkRoutes.begin ();
|
||||
j != m_networkRoutes.end ();
|
||||
j = m_networkRoutes.erase (j))
|
||||
{
|
||||
delete (*j);
|
||||
}
|
||||
for (ASExternalRoutesI l = m_ASexternalRoutes.begin ();
|
||||
l != m_ASexternalRoutes.end ();
|
||||
l = m_ASexternalRoutes.erase (l))
|
||||
{
|
||||
delete (*l);
|
||||
}
|
||||
|
||||
Ipv4RoutingProtocol::DoDispose ();
|
||||
}
|
||||
|
||||
// Formatted like output of "route -n" command
|
||||
void
|
||||
Ipv4GlobalRouting::PrintRoutingTable (Ptr<OutputStreamWrapper> stream) const
|
||||
{
|
||||
std::ostream* os = stream->GetStream ();
|
||||
if (GetNRoutes () > 0)
|
||||
{
|
||||
*os << "Destination Gateway Genmask Flags Metric Ref Use Iface" << std::endl;
|
||||
for (uint32_t j = 0; j < GetNRoutes (); j++)
|
||||
{
|
||||
std::ostringstream dest, gw, mask, flags;
|
||||
Ipv4RoutingTableEntry route = GetRoute (j);
|
||||
dest << route.GetDest ();
|
||||
*os << std::setiosflags (std::ios::left) << std::setw (16) << dest.str ();
|
||||
gw << route.GetGateway ();
|
||||
*os << std::setiosflags (std::ios::left) << std::setw (16) << gw.str ();
|
||||
mask << route.GetDestNetworkMask ();
|
||||
*os << std::setiosflags (std::ios::left) << std::setw (16) << mask.str ();
|
||||
flags << "U";
|
||||
if (route.IsHost ())
|
||||
{
|
||||
flags << "H";
|
||||
}
|
||||
else if (route.IsGateway ())
|
||||
{
|
||||
flags << "G";
|
||||
}
|
||||
*os << std::setiosflags (std::ios::left) << std::setw (6) << flags.str ();
|
||||
// Metric not implemented
|
||||
*os << "-" << " ";
|
||||
// Ref ct not implemented
|
||||
*os << "-" << " ";
|
||||
// Use not implemented
|
||||
*os << "-" << " ";
|
||||
if (Names::FindName (m_ipv4->GetNetDevice (route.GetInterface ())) != "")
|
||||
{
|
||||
*os << Names::FindName (m_ipv4->GetNetDevice (route.GetInterface ()));
|
||||
}
|
||||
else
|
||||
{
|
||||
*os << route.GetInterface ();
|
||||
}
|
||||
*os << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ptr<Ipv4Route>
|
||||
Ipv4GlobalRouting::RouteOutput (Ptr<Packet> p, const Ipv4Header &header, Ptr<NetDevice> oif, Socket::SocketErrno &sockerr)
|
||||
{
|
||||
|
||||
//
|
||||
// First, see if this is a multicast packet we have a route for. If we
|
||||
// have a route, then send the packet down each of the specified interfaces.
|
||||
//
|
||||
if (header.GetDestination ().IsMulticast ())
|
||||
{
|
||||
NS_LOG_LOGIC ("Multicast destination-- returning false");
|
||||
return 0; // Let other routing protocols try to handle this
|
||||
}
|
||||
//
|
||||
// See if this is a unicast packet we have a route for.
|
||||
//
|
||||
NS_LOG_LOGIC ("Unicast destination- looking up");
|
||||
Ptr<Ipv4Route> rtentry = LookupGlobal (header.GetDestination (), oif);
|
||||
if (rtentry)
|
||||
{
|
||||
sockerr = Socket::ERROR_NOTERROR;
|
||||
}
|
||||
else
|
||||
{
|
||||
sockerr = Socket::ERROR_NOROUTETOHOST;
|
||||
}
|
||||
return rtentry;
|
||||
}
|
||||
|
||||
bool
|
||||
Ipv4GlobalRouting::RouteInput (Ptr<const Packet> p, const Ipv4Header &header, Ptr<const NetDevice> idev, UnicastForwardCallback ucb, MulticastForwardCallback mcb,
|
||||
LocalDeliverCallback lcb, ErrorCallback ecb)
|
||||
{
|
||||
|
||||
NS_LOG_FUNCTION (this << p << header << header.GetSource () << header.GetDestination () << idev);
|
||||
// Check if input device supports IP
|
||||
NS_ASSERT (m_ipv4->GetInterfaceForDevice (idev) >= 0);
|
||||
uint32_t iif = m_ipv4->GetInterfaceForDevice (idev);
|
||||
|
||||
if (header.GetDestination ().IsMulticast ())
|
||||
{
|
||||
NS_LOG_LOGIC ("Multicast destination-- returning false");
|
||||
return false; // Let other routing protocols try to handle this
|
||||
}
|
||||
|
||||
if (header.GetDestination ().IsBroadcast ())
|
||||
{
|
||||
NS_LOG_LOGIC ("For me (Ipv4Addr broadcast address)");
|
||||
// TODO: Local Deliver for broadcast
|
||||
// TODO: Forward broadcast
|
||||
}
|
||||
|
||||
// TODO: Configurable option to enable RFC 1222 Strong End System Model
|
||||
// Right now, we will be permissive and allow a source to send us
|
||||
// a packet to one of our other interface addresses; that is, the
|
||||
// destination unicast address does not match one of the iif addresses,
|
||||
// but we check our other interfaces. This could be an option
|
||||
// (to remove the outer loop immediately below and just check iif).
|
||||
for (uint32_t j = 0; j < m_ipv4->GetNInterfaces (); j++)
|
||||
{
|
||||
for (uint32_t i = 0; i < m_ipv4->GetNAddresses (j); i++)
|
||||
{
|
||||
Ipv4InterfaceAddress iaddr = m_ipv4->GetAddress (j, i);
|
||||
Ipv4Address addr = iaddr.GetLocal ();
|
||||
if (addr.IsEqual (header.GetDestination ()))
|
||||
{
|
||||
if (j == iif)
|
||||
{
|
||||
NS_LOG_LOGIC ("For me (destination " << addr << " match)");
|
||||
}
|
||||
else
|
||||
{
|
||||
NS_LOG_LOGIC ("For me (destination " << addr << " match) on another interface " << header.GetDestination ());
|
||||
}
|
||||
lcb (p, header, iif);
|
||||
return true;
|
||||
}
|
||||
if (header.GetDestination ().IsEqual (iaddr.GetBroadcast ()))
|
||||
{
|
||||
NS_LOG_LOGIC ("For me (interface broadcast address)");
|
||||
lcb (p, header, iif);
|
||||
return true;
|
||||
}
|
||||
NS_LOG_LOGIC ("Address "<< addr << " not a match");
|
||||
}
|
||||
}
|
||||
// Check if input device supports IP forwarding
|
||||
if (m_ipv4->IsForwarding (iif) == false)
|
||||
{
|
||||
NS_LOG_LOGIC ("Forwarding disabled for this interface");
|
||||
ecb (p, header, Socket::ERROR_NOROUTETOHOST);
|
||||
return false;
|
||||
}
|
||||
// Next, try to find a route
|
||||
NS_LOG_LOGIC ("Unicast destination- looking up global route");
|
||||
Ptr<Ipv4Route> rtentry = LookupGlobal (header.GetDestination ());
|
||||
if (rtentry != 0)
|
||||
{
|
||||
NS_LOG_LOGIC ("Found unicast destination- calling unicast callback");
|
||||
ucb (rtentry, p, header);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
NS_LOG_LOGIC ("Did not find unicast destination- returning false");
|
||||
return false; // Let other routing protocols try to handle this
|
||||
// route request.
|
||||
}
|
||||
}
|
||||
void
|
||||
Ipv4GlobalRouting::NotifyInterfaceUp (uint32_t i)
|
||||
{
|
||||
|
||||
@@ -20,26 +20,16 @@
|
||||
#ifndef IPV4_GLOBAL_ROUTING_H
|
||||
#define IPV4_GLOBAL_ROUTING_H
|
||||
|
||||
#include <list>
|
||||
#include <stdint.h>
|
||||
#include "ns3/ipv4-address.h"
|
||||
#include "ns3/ipv4-header.h"
|
||||
#include "ns3/ptr.h"
|
||||
#include "ns3/ipv4.h"
|
||||
#include "ns3/ipv4-routing-protocol.h"
|
||||
#include "ns3/random-variable.h"
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
class Packet;
|
||||
class NetDevice;
|
||||
class Ipv4Interface;
|
||||
class Ipv4Address;
|
||||
class Ipv4Header;
|
||||
class Ipv4RoutingTableEntry;
|
||||
class Ipv4MulticastRoutingTableEntry;
|
||||
class Node;
|
||||
|
||||
|
||||
/**
|
||||
* \brief Global routing protocol for IP version 4 stacks.
|
||||
@@ -70,175 +60,50 @@ class Ipv4GlobalRouting : public Ipv4RoutingProtocol
|
||||
{
|
||||
public:
|
||||
static TypeId GetTypeId (void);
|
||||
/**
|
||||
* \brief Construct an empty Ipv4GlobalRouting routing protocol,
|
||||
*
|
||||
* The Ipv4GlobalRouting class supports host and network unicast routes.
|
||||
* This method initializes the lists containing these routes to empty.
|
||||
*
|
||||
* \see Ipv4GlobalRouting
|
||||
*/
|
||||
|
||||
Ipv4GlobalRouting ();
|
||||
virtual ~Ipv4GlobalRouting ();
|
||||
|
||||
// These methods inherited from base class
|
||||
virtual Ptr<Ipv4Route> RouteOutput (Ptr<Packet> p, const Ipv4Header &header, Ptr<NetDevice> oif, Socket::SocketErrno &sockerr);
|
||||
|
||||
virtual bool RouteInput (Ptr<const Packet> p, const Ipv4Header &header, Ptr<const NetDevice> idev,
|
||||
UnicastForwardCallback ucb, MulticastForwardCallback mcb,
|
||||
LocalDeliverCallback lcb, ErrorCallback ecb);
|
||||
virtual void NotifyInterfaceUp (uint32_t interface);
|
||||
virtual void NotifyInterfaceDown (uint32_t interface);
|
||||
virtual void NotifyAddAddress (uint32_t interface, Ipv4InterfaceAddress address);
|
||||
virtual void NotifyRemoveAddress (uint32_t interface, Ipv4InterfaceAddress address);
|
||||
virtual void SetIpv4 (Ptr<Ipv4> ipv4);
|
||||
virtual void PrintRoutingTable (Ptr<OutputStreamWrapper> stream) const;
|
||||
|
||||
/**
|
||||
* \brief Add a host route to the global routing table.
|
||||
* \brief Add a route to the global routing table.
|
||||
*
|
||||
* \param dest The Ipv4Address destination for this route.
|
||||
* \param destMask The Ipv4Mask to extract the network.
|
||||
* \param nextHop The Ipv4Address of the next hop in the route.
|
||||
* \param interface The network interface index used to send packets to the
|
||||
* destination.
|
||||
*
|
||||
* \see Ipv4Address
|
||||
*/
|
||||
void AddHostRouteTo (Ipv4Address dest,
|
||||
Ipv4Address nextHop,
|
||||
uint32_t interface);
|
||||
/**
|
||||
* \brief Add a host route to the global routing table.
|
||||
*
|
||||
* \param dest The Ipv4Address destination for this route.
|
||||
* \param interface The network interface index used to send packets to the
|
||||
* destination.
|
||||
*
|
||||
* \see Ipv4Address
|
||||
*/
|
||||
void AddHostRouteTo (Ipv4Address dest,
|
||||
uint32_t interface);
|
||||
virtual void AddRouteTo (Ipv4Address dest,
|
||||
Ipv4Mask destMask,
|
||||
Ipv4Address nextHop,
|
||||
uint32_t interface,
|
||||
uint32_t metric=0) = 0;
|
||||
|
||||
/**
|
||||
* \brief Add a network route to the global routing table.
|
||||
*
|
||||
* \param network The Ipv4Address network for this route.
|
||||
* \param networkMask The Ipv4Mask to extract the network.
|
||||
* \param nextHop The next hop in the route to the destination network.
|
||||
* \param interface The network interface index used to send packets to the
|
||||
* destination.
|
||||
*
|
||||
* \see Ipv4Address
|
||||
*/
|
||||
void AddNetworkRouteTo (Ipv4Address network,
|
||||
Ipv4Mask networkMask,
|
||||
Ipv4Address nextHop,
|
||||
uint32_t interface);
|
||||
/**
|
||||
* \brief Function to remove all routes
|
||||
*/
|
||||
virtual void DeleteRoutes () = 0;
|
||||
|
||||
/**
|
||||
* \brief Add a network route to the global routing table.
|
||||
*
|
||||
* \param network The Ipv4Address network for this route.
|
||||
* \param networkMask The Ipv4Mask to extract the network.
|
||||
* \param interface The network interface index used to send packets to the
|
||||
* destination.
|
||||
*
|
||||
* \see Ipv4Address
|
||||
*/
|
||||
void AddNetworkRouteTo (Ipv4Address network,
|
||||
Ipv4Mask networkMask,
|
||||
uint32_t interface);
|
||||
|
||||
/**
|
||||
* \brief Add an external route to the global routing table.
|
||||
*
|
||||
* \param network The Ipv4Address network for this route.
|
||||
* \param networkMask The Ipv4Mask to extract the network.
|
||||
* \param nextHop The next hop Ipv4Address
|
||||
* \param interface The network interface index used to send packets to the
|
||||
* destination.
|
||||
*/
|
||||
void AddASExternalRouteTo (Ipv4Address network,
|
||||
Ipv4Mask networkMask,
|
||||
Ipv4Address nextHop,
|
||||
uint32_t interface);
|
||||
|
||||
/**
|
||||
* \brief Get the number of individual unicast routes that have been added
|
||||
* to the routing table.
|
||||
*
|
||||
* \warning The default route counts as one of the routes.
|
||||
*/
|
||||
uint32_t GetNRoutes (void) const;
|
||||
|
||||
/**
|
||||
* \brief Get a route from the global unicast routing table.
|
||||
*
|
||||
* Externally, the unicast global routing table appears simply as a table with
|
||||
* n entries. The one subtlety of note is that if a default route has been set
|
||||
* it will appear as the zeroth entry in the table. This means that if you
|
||||
* add only a default route, the table will have one entry that can be accessed
|
||||
* either by explicitly calling GetDefaultRoute () or by calling GetRoute (0).
|
||||
*
|
||||
* Similarly, if the default route has been set, calling RemoveRoute (0) will
|
||||
* remove the default route.
|
||||
*
|
||||
* \param i The index (into the routing table) of the route to retrieve. If
|
||||
* the default route has been set, it will occupy index zero.
|
||||
* \return If route is set, a pointer to that Ipv4RoutingTableEntry is returned, otherwise
|
||||
* a zero pointer is returned.
|
||||
*
|
||||
* \see Ipv4RoutingTableEntry
|
||||
* \see Ipv4GlobalRouting::RemoveRoute
|
||||
*/
|
||||
Ipv4RoutingTableEntry *GetRoute (uint32_t i) const;
|
||||
|
||||
/**
|
||||
* \brief Remove a route from the global unicast routing table.
|
||||
*
|
||||
* Externally, the unicast global routing table appears simply as a table with
|
||||
* n entries. The one subtlety of note is that if a default route has been set
|
||||
* it will appear as the zeroth entry in the table. This means that if the
|
||||
* default route has been set, calling RemoveRoute (0) will remove the
|
||||
* default route.
|
||||
*
|
||||
* \param i The index (into the routing table) of the route to remove. If
|
||||
* the default route has been set, it will occupy index zero.
|
||||
*
|
||||
* \see Ipv4RoutingTableEntry
|
||||
* \see Ipv4GlobalRouting::GetRoute
|
||||
* \see Ipv4GlobalRouting::AddRoute
|
||||
*/
|
||||
void RemoveRoute (uint32_t i);
|
||||
/**
|
||||
* \brief Function to fix current routes (will make sense only for multiple route implementation)
|
||||
*/
|
||||
virtual void FixRoutes ();
|
||||
|
||||
protected:
|
||||
void DoDispose (void);
|
||||
// virtual Ptr<Ipv4Route> LookupGlobal (Ipv4Address dest, Ptr<NetDevice> oif = 0) = 0;
|
||||
|
||||
Ptr<Ipv4> m_ipv4;
|
||||
|
||||
private:
|
||||
/// Set to true if packets are randomly routed among ECMP; set to false for using only one route consistently
|
||||
bool m_randomEcmpRouting;
|
||||
/// Set to true if this interface should respond to interface events by globallly recomputing routes
|
||||
bool m_respondToInterfaceEvents;
|
||||
/// A uniform random number generator for randomly routing packets among ECMP
|
||||
UniformVariable m_rand;
|
||||
|
||||
typedef std::list<Ipv4RoutingTableEntry *> HostRoutes;
|
||||
typedef std::list<Ipv4RoutingTableEntry *>::const_iterator HostRoutesCI;
|
||||
typedef std::list<Ipv4RoutingTableEntry *>::iterator HostRoutesI;
|
||||
typedef std::list<Ipv4RoutingTableEntry *> NetworkRoutes;
|
||||
typedef std::list<Ipv4RoutingTableEntry *>::const_iterator NetworkRoutesCI;
|
||||
typedef std::list<Ipv4RoutingTableEntry *>::iterator NetworkRoutesI;
|
||||
typedef std::list<Ipv4RoutingTableEntry *> ASExternalRoutes;
|
||||
typedef std::list<Ipv4RoutingTableEntry *>::const_iterator ASExternalRoutesCI;
|
||||
typedef std::list<Ipv4RoutingTableEntry *>::iterator ASExternalRoutesI;
|
||||
|
||||
Ptr<Ipv4Route> LookupGlobal (Ipv4Address dest, Ptr<NetDevice> oif = 0);
|
||||
|
||||
HostRoutes m_hostRoutes;
|
||||
NetworkRoutes m_networkRoutes;
|
||||
ASExternalRoutes m_ASexternalRoutes; // External routes imported
|
||||
|
||||
Ptr<Ipv4> m_ipv4;
|
||||
};
|
||||
|
||||
} // Namespace ns3
|
||||
|
||||
@@ -547,11 +547,10 @@ Ipv4L3Protocol::Send (Ptr<Packet> packet,
|
||||
Ipv4Header ipHeader;
|
||||
bool mayFragment = true;
|
||||
uint8_t ttl = m_defaultTtl;
|
||||
SocketIpTtlTag tag;
|
||||
bool found = packet->RemovePacketTag (tag);
|
||||
if (found)
|
||||
Ptr<const SocketIpTtlTag> tag = packet->RemovePacketTag<SocketIpTtlTag> ();
|
||||
if (tag != 0)
|
||||
{
|
||||
ttl = tag.GetTtl ();
|
||||
ttl = tag->GetTtl ();
|
||||
}
|
||||
|
||||
// Handle a few cases:
|
||||
@@ -1187,6 +1186,11 @@ Ipv4L3Protocol::DoFragmentation (Ptr<Packet> packet, uint32_t outIfaceMtu, std::
|
||||
|
||||
NS_LOG_LOGIC ("Fragment check - " << fragmentHeader.GetFragmentOffset () );
|
||||
|
||||
if (Node::ChecksumEnabled ())
|
||||
{
|
||||
fragmentHeader.EnableChecksum ();
|
||||
}
|
||||
|
||||
NS_LOG_LOGIC ("New fragment Header " << fragmentHeader);
|
||||
fragment->AddHeader (fragmentHeader);
|
||||
|
||||
|
||||
@@ -320,9 +320,10 @@ Ipv4RawSocketImpl::ForwardUp (Ptr<const Packet> p, Ipv4Header ipHeader, Ptr<Ipv4
|
||||
// Should check via getsockopt ()..
|
||||
if (IsRecvPktInfo ())
|
||||
{
|
||||
Ipv4PacketInfoTag tag;
|
||||
copy->RemovePacketTag (tag);
|
||||
tag.SetRecvIf (incomingInterface->GetDevice ()->GetIfIndex ());
|
||||
Ptr<const Ipv4PacketInfoTag> origTag = copy->RemovePacketTag<Ipv4PacketInfoTag> ();
|
||||
NS_ASSERT (origTag != 0);
|
||||
Ptr<Ipv4PacketInfoTag> tag = CreateObject<Ipv4PacketInfoTag> (*origTag);
|
||||
tag->SetRecvIf (incomingInterface->GetDevice ()->GetIfIndex ());
|
||||
copy->AddPacketTag (tag);
|
||||
}
|
||||
if (m_protocol == 1)
|
||||
|
||||
@@ -32,4 +32,8 @@ TypeId Ipv4RoutingProtocol::GetTypeId (void)
|
||||
return tid;
|
||||
}
|
||||
|
||||
Ipv4RoutingProtocol::~Ipv4RoutingProtocol ()
|
||||
{
|
||||
}
|
||||
|
||||
} // namespace ns3
|
||||
@@ -51,6 +51,7 @@ class Ipv4RoutingProtocol : public Object
|
||||
{
|
||||
public:
|
||||
static TypeId GetTypeId (void);
|
||||
virtual ~Ipv4RoutingProtocol ();
|
||||
|
||||
typedef Callback<void, Ptr<Ipv4Route>, Ptr<const Packet>, const Ipv4Header &> UnicastForwardCallback;
|
||||
typedef Callback<void, Ptr<Ipv4MulticastRoute>, Ptr<const Packet>, const Ipv4Header &> MulticastForwardCallback;
|
||||
|
||||
@@ -35,7 +35,8 @@ Ipv4RoutingTableEntry::Ipv4RoutingTableEntry (Ipv4RoutingTableEntry const &route
|
||||
: m_dest (route.m_dest),
|
||||
m_destNetworkMask (route.m_destNetworkMask),
|
||||
m_gateway (route.m_gateway),
|
||||
m_interface (route.m_interface)
|
||||
m_interface (route.m_interface),
|
||||
m_metric (route.m_metric)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -43,44 +44,53 @@ Ipv4RoutingTableEntry::Ipv4RoutingTableEntry (Ipv4RoutingTableEntry const *route
|
||||
: m_dest (route->m_dest),
|
||||
m_destNetworkMask (route->m_destNetworkMask),
|
||||
m_gateway (route->m_gateway),
|
||||
m_interface (route->m_interface)
|
||||
m_interface (route->m_interface),
|
||||
m_metric (route->m_metric)
|
||||
{
|
||||
}
|
||||
|
||||
Ipv4RoutingTableEntry::Ipv4RoutingTableEntry (Ipv4Address dest,
|
||||
Ipv4Address gateway,
|
||||
uint32_t interface)
|
||||
uint32_t interface,
|
||||
uint32_t metric/*=0*/)
|
||||
: m_dest (dest),
|
||||
m_destNetworkMask (Ipv4Mask::GetOnes ()),
|
||||
m_gateway (gateway),
|
||||
m_interface (interface)
|
||||
m_interface (interface),
|
||||
m_metric (metric)
|
||||
{
|
||||
}
|
||||
Ipv4RoutingTableEntry::Ipv4RoutingTableEntry (Ipv4Address dest,
|
||||
uint32_t interface)
|
||||
uint32_t interface,
|
||||
uint32_t metric/*=0*/)
|
||||
: m_dest (dest),
|
||||
m_destNetworkMask (Ipv4Mask::GetOnes ()),
|
||||
m_gateway (Ipv4Address::GetZero ()),
|
||||
m_interface (interface)
|
||||
m_interface (interface),
|
||||
m_metric (metric)
|
||||
{
|
||||
}
|
||||
Ipv4RoutingTableEntry::Ipv4RoutingTableEntry (Ipv4Address network,
|
||||
Ipv4Mask networkMask,
|
||||
Ipv4Address gateway,
|
||||
uint32_t interface)
|
||||
uint32_t interface,
|
||||
uint32_t metric/*=0*/)
|
||||
: m_dest (network),
|
||||
m_destNetworkMask (networkMask),
|
||||
m_gateway (gateway),
|
||||
m_interface (interface)
|
||||
m_interface (interface),
|
||||
m_metric (metric)
|
||||
{
|
||||
}
|
||||
Ipv4RoutingTableEntry::Ipv4RoutingTableEntry (Ipv4Address network,
|
||||
Ipv4Mask networkMask,
|
||||
uint32_t interface)
|
||||
uint32_t interface,
|
||||
uint32_t metric/*=0*/)
|
||||
: m_dest (network),
|
||||
m_destNetworkMask (networkMask),
|
||||
m_gateway (Ipv4Address::GetZero ()),
|
||||
m_interface (interface)
|
||||
m_interface (interface),
|
||||
m_metric (metric)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -151,41 +161,58 @@ Ipv4RoutingTableEntry::GetInterface (void) const
|
||||
return m_interface;
|
||||
}
|
||||
|
||||
uint32_t
|
||||
Ipv4RoutingTableEntry::GetMetric () const
|
||||
{
|
||||
return m_metric;
|
||||
}
|
||||
|
||||
void
|
||||
Ipv4RoutingTableEntry::SetMetric (uint32_t metric)
|
||||
{
|
||||
m_metric = metric;
|
||||
}
|
||||
|
||||
Ipv4RoutingTableEntry
|
||||
Ipv4RoutingTableEntry::CreateHostRouteTo (Ipv4Address dest,
|
||||
Ipv4Address nextHop,
|
||||
uint32_t interface)
|
||||
uint32_t interface,
|
||||
uint32_t metric/*=0*/)
|
||||
{
|
||||
return Ipv4RoutingTableEntry (dest, nextHop, interface);
|
||||
return Ipv4RoutingTableEntry (dest, nextHop, interface, metric);
|
||||
}
|
||||
Ipv4RoutingTableEntry
|
||||
Ipv4RoutingTableEntry::CreateHostRouteTo (Ipv4Address dest,
|
||||
uint32_t interface)
|
||||
uint32_t interface,
|
||||
uint32_t metric/*=0*/)
|
||||
{
|
||||
return Ipv4RoutingTableEntry (dest, interface);
|
||||
return Ipv4RoutingTableEntry (dest, interface, metric);
|
||||
}
|
||||
Ipv4RoutingTableEntry
|
||||
Ipv4RoutingTableEntry::CreateNetworkRouteTo (Ipv4Address network,
|
||||
Ipv4Mask networkMask,
|
||||
Ipv4Address nextHop,
|
||||
uint32_t interface)
|
||||
uint32_t interface,
|
||||
uint32_t metric/*=0*/)
|
||||
{
|
||||
return Ipv4RoutingTableEntry (network, networkMask,
|
||||
nextHop, interface);
|
||||
nextHop, interface, metric);
|
||||
}
|
||||
Ipv4RoutingTableEntry
|
||||
Ipv4RoutingTableEntry::CreateNetworkRouteTo (Ipv4Address network,
|
||||
Ipv4Mask networkMask,
|
||||
uint32_t interface)
|
||||
uint32_t interface,
|
||||
uint32_t metric/*=0*/)
|
||||
{
|
||||
return Ipv4RoutingTableEntry (network, networkMask,
|
||||
interface);
|
||||
interface, metric);
|
||||
}
|
||||
Ipv4RoutingTableEntry
|
||||
Ipv4RoutingTableEntry::CreateDefaultRoute (Ipv4Address nextHop,
|
||||
uint32_t interface)
|
||||
uint32_t interface,
|
||||
uint32_t metric/*=0*/)
|
||||
{
|
||||
return Ipv4RoutingTableEntry (Ipv4Address::GetZero (), nextHop, interface);
|
||||
return Ipv4RoutingTableEntry (Ipv4Address::GetZero (), nextHop, interface, metric);
|
||||
}
|
||||
|
||||
|
||||
@@ -216,20 +243,21 @@ std::ostream& operator<< (std::ostream& os, Ipv4RoutingTableEntry const& route)
|
||||
{
|
||||
os << "network=" << route.GetDestNetwork () <<
|
||||
", mask=" << route.GetDestNetworkMask () <<
|
||||
",out=" << route.GetInterface () <<
|
||||
", out=" << route.GetInterface () <<
|
||||
", next hop=" << route.GetGateway ();
|
||||
}
|
||||
else
|
||||
{
|
||||
os << "network=" << route.GetDestNetwork () <<
|
||||
", mask=" << route.GetDestNetworkMask () <<
|
||||
",out=" << route.GetInterface ();
|
||||
", out=" << route.GetInterface ();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
NS_ASSERT (false);
|
||||
}
|
||||
os << ", metric=" << route.GetMetric ();
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
@@ -88,6 +88,15 @@ public:
|
||||
* \return The Ipv4 interface number used for sending outgoing packets
|
||||
*/
|
||||
uint32_t GetInterface (void) const;
|
||||
/**
|
||||
* \return Routing metric
|
||||
*/
|
||||
uint32_t GetMetric () const;
|
||||
/**
|
||||
* Set/Updates metric of the routing table entry
|
||||
*/
|
||||
void SetMetric (uint32_t metric);
|
||||
|
||||
/**
|
||||
* \return An Ipv4RoutingTableEntry object corresponding to the input parameters.
|
||||
* \param dest Ipv4Address of the destination
|
||||
@@ -96,14 +105,16 @@ public:
|
||||
*/
|
||||
static Ipv4RoutingTableEntry CreateHostRouteTo (Ipv4Address dest,
|
||||
Ipv4Address nextHop,
|
||||
uint32_t interface);
|
||||
uint32_t interface,
|
||||
uint32_t metric=0);
|
||||
/**
|
||||
* \return An Ipv4RoutingTableEntry object corresponding to the input parameters.
|
||||
* \param dest Ipv4Address of the destination
|
||||
* \param interface Outgoing interface
|
||||
*/
|
||||
static Ipv4RoutingTableEntry CreateHostRouteTo (Ipv4Address dest,
|
||||
uint32_t interface);
|
||||
uint32_t interface,
|
||||
uint32_t metric=0);
|
||||
/**
|
||||
* \return An Ipv4RoutingTableEntry object corresponding to the input parameters.
|
||||
* \param network Ipv4Address of the destination network
|
||||
@@ -114,7 +125,8 @@ public:
|
||||
static Ipv4RoutingTableEntry CreateNetworkRouteTo (Ipv4Address network,
|
||||
Ipv4Mask networkMask,
|
||||
Ipv4Address nextHop,
|
||||
uint32_t interface);
|
||||
uint32_t interface,
|
||||
uint32_t metric=0);
|
||||
/**
|
||||
* \return An Ipv4RoutingTableEntry object corresponding to the input parameters.
|
||||
* \param network Ipv4Address of the destination network
|
||||
@@ -123,7 +135,8 @@ public:
|
||||
*/
|
||||
static Ipv4RoutingTableEntry CreateNetworkRouteTo (Ipv4Address network,
|
||||
Ipv4Mask networkMask,
|
||||
uint32_t interface);
|
||||
uint32_t interface,
|
||||
uint32_t metric=0);
|
||||
/**
|
||||
* \return An Ipv4RoutingTableEntry object corresponding to the input
|
||||
* parameters. This route is distinguished; it will match any
|
||||
@@ -132,26 +145,32 @@ public:
|
||||
* \param interface Outgoing interface
|
||||
*/
|
||||
static Ipv4RoutingTableEntry CreateDefaultRoute (Ipv4Address nextHop,
|
||||
uint32_t interface);
|
||||
uint32_t interface,
|
||||
uint32_t metric=0);
|
||||
|
||||
private:
|
||||
Ipv4RoutingTableEntry (Ipv4Address network,
|
||||
Ipv4Mask mask,
|
||||
Ipv4Address gateway,
|
||||
uint32_t interface);
|
||||
uint32_t interface,
|
||||
uint32_t metric=0);
|
||||
Ipv4RoutingTableEntry (Ipv4Address dest,
|
||||
Ipv4Mask mask,
|
||||
uint32_t interface);
|
||||
uint32_t interface,
|
||||
uint32_t metric=0);
|
||||
Ipv4RoutingTableEntry (Ipv4Address dest,
|
||||
Ipv4Address gateway,
|
||||
uint32_t interface);
|
||||
uint32_t interface,
|
||||
uint32_t metric=0);
|
||||
Ipv4RoutingTableEntry (Ipv4Address dest,
|
||||
uint32_t interface);
|
||||
uint32_t interface,
|
||||
uint32_t metric=0);
|
||||
|
||||
Ipv4Address m_dest;
|
||||
Ipv4Mask m_destNetworkMask;
|
||||
Ipv4Address m_gateway;
|
||||
uint32_t m_interface;
|
||||
uint32_t m_metric;
|
||||
};
|
||||
|
||||
std::ostream& operator<< (std::ostream& os, Ipv4RoutingTableEntry const& route);
|
||||
|
||||
@@ -36,8 +36,6 @@
|
||||
|
||||
NS_LOG_COMPONENT_DEFINE ("Ipv4StaticRouting");
|
||||
|
||||
using std::make_pair;
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
NS_OBJECT_ENSURE_REGISTERED (Ipv4StaticRouting);
|
||||
@@ -70,8 +68,9 @@ Ipv4StaticRouting::AddNetworkRouteTo (Ipv4Address network,
|
||||
*route = Ipv4RoutingTableEntry::CreateNetworkRouteTo (network,
|
||||
networkMask,
|
||||
nextHop,
|
||||
interface);
|
||||
m_networkRoutes.push_back (make_pair (route,metric));
|
||||
interface,
|
||||
metric);
|
||||
m_networkRoutes.push_back (route);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -84,8 +83,9 @@ Ipv4StaticRouting::AddNetworkRouteTo (Ipv4Address network,
|
||||
Ipv4RoutingTableEntry *route = new Ipv4RoutingTableEntry ();
|
||||
*route = Ipv4RoutingTableEntry::CreateNetworkRouteTo (network,
|
||||
networkMask,
|
||||
interface);
|
||||
m_networkRoutes.push_back (make_pair (route,metric));
|
||||
interface,
|
||||
metric);
|
||||
m_networkRoutes.push_back (route);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -142,7 +142,7 @@ Ipv4StaticRouting::SetDefaultMulticastRoute (uint32_t outputInterface)
|
||||
*route = Ipv4RoutingTableEntry::CreateNetworkRouteTo (network,
|
||||
networkMask,
|
||||
outputInterface);
|
||||
m_networkRoutes.push_back (make_pair (route,0));
|
||||
m_networkRoutes.push_back (route);
|
||||
}
|
||||
|
||||
uint32_t
|
||||
@@ -162,7 +162,7 @@ Ipv4StaticRouting::GetMulticastRoute (uint32_t index) const
|
||||
if (index < m_multicastRoutes.size ())
|
||||
{
|
||||
uint32_t tmp = 0;
|
||||
for (MulticastRoutesCI i = m_multicastRoutes.begin ();
|
||||
for (MulticastRoutes::const_iterator i = m_multicastRoutes.begin ();
|
||||
i != m_multicastRoutes.end ();
|
||||
i++)
|
||||
{
|
||||
@@ -182,7 +182,7 @@ Ipv4StaticRouting::RemoveMulticastRoute (Ipv4Address origin,
|
||||
uint32_t inputInterface)
|
||||
{
|
||||
NS_LOG_FUNCTION (this << origin << " " << group << " " << inputInterface);
|
||||
for (MulticastRoutesI i = m_multicastRoutes.begin ();
|
||||
for (MulticastRoutes::iterator i = m_multicastRoutes.begin ();
|
||||
i != m_multicastRoutes.end ();
|
||||
i++)
|
||||
{
|
||||
@@ -204,7 +204,7 @@ Ipv4StaticRouting::RemoveMulticastRoute (uint32_t index)
|
||||
{
|
||||
NS_LOG_FUNCTION (this << index);
|
||||
uint32_t tmp = 0;
|
||||
for (MulticastRoutesI i = m_multicastRoutes.begin ();
|
||||
for (MulticastRoutes::iterator i = m_multicastRoutes.begin ();
|
||||
i != m_multicastRoutes.end ();
|
||||
i++)
|
||||
{
|
||||
@@ -239,12 +239,12 @@ Ipv4StaticRouting::LookupStatic (Ipv4Address dest, Ptr<NetDevice> oif)
|
||||
}
|
||||
|
||||
|
||||
for (NetworkRoutesI i = m_networkRoutes.begin ();
|
||||
for (NetworkRoutes::iterator i = m_networkRoutes.begin ();
|
||||
i != m_networkRoutes.end ();
|
||||
i++)
|
||||
{
|
||||
Ipv4RoutingTableEntry *j=i->first;
|
||||
uint32_t metric =i->second;
|
||||
Ipv4RoutingTableEntry *j=*i;
|
||||
uint32_t metric =j->GetMetric ();
|
||||
Ipv4Mask mask = (j)->GetDestNetworkMask ();
|
||||
uint16_t masklen = mask.GetPrefixLength ();
|
||||
Ipv4Address entry = (j)->GetDestNetwork ();
|
||||
@@ -305,7 +305,7 @@ Ipv4StaticRouting::LookupStatic (
|
||||
NS_LOG_FUNCTION (this << origin << " " << group << " " << interface);
|
||||
Ptr<Ipv4MulticastRoute> mrtentry = 0;
|
||||
|
||||
for (MulticastRoutesI i = m_multicastRoutes.begin ();
|
||||
for (MulticastRoutes::iterator i = m_multicastRoutes.begin ();
|
||||
i != m_multicastRoutes.end ();
|
||||
i++)
|
||||
{
|
||||
@@ -363,13 +363,13 @@ Ipv4StaticRouting::GetDefaultRoute ()
|
||||
Ipv4Address dest ("0.0.0.0");
|
||||
uint32_t shortest_metric = 0xffffffff;
|
||||
Ipv4RoutingTableEntry *result = 0;
|
||||
for (NetworkRoutesI i = m_networkRoutes.begin ();
|
||||
for (NetworkRoutes::iterator i = m_networkRoutes.begin ();
|
||||
i != m_networkRoutes.end ();
|
||||
i++)
|
||||
{
|
||||
Ipv4RoutingTableEntry *j = i->first;
|
||||
uint32_t metric = i->second;
|
||||
Ipv4Mask mask = (j)->GetDestNetworkMask ();
|
||||
Ipv4RoutingTableEntry *j = *i;
|
||||
uint32_t metric = j->GetMetric ();
|
||||
Ipv4Mask mask = j->GetDestNetworkMask ();
|
||||
uint16_t masklen = mask.GetPrefixLength ();
|
||||
if (masklen != 0)
|
||||
{
|
||||
@@ -397,13 +397,13 @@ Ipv4StaticRouting::GetRoute (uint32_t index) const
|
||||
{
|
||||
NS_LOG_FUNCTION (this << index);
|
||||
uint32_t tmp = 0;
|
||||
for (NetworkRoutesCI j = m_networkRoutes.begin ();
|
||||
for (NetworkRoutes::const_iterator j = m_networkRoutes.begin ();
|
||||
j != m_networkRoutes.end ();
|
||||
j++)
|
||||
{
|
||||
if (tmp == index)
|
||||
{
|
||||
return j->first;
|
||||
return *j;
|
||||
}
|
||||
tmp++;
|
||||
}
|
||||
@@ -417,13 +417,13 @@ Ipv4StaticRouting::GetMetric (uint32_t index) const
|
||||
{
|
||||
NS_LOG_FUNCTION (this << index);
|
||||
uint32_t tmp = 0;
|
||||
for (NetworkRoutesCI j = m_networkRoutes.begin ();
|
||||
for (NetworkRoutes::const_iterator j = m_networkRoutes.begin ();
|
||||
j != m_networkRoutes.end ();
|
||||
j++)
|
||||
{
|
||||
if (tmp == index)
|
||||
{
|
||||
return j->second;
|
||||
return (*j)->GetMetric ();
|
||||
}
|
||||
tmp++;
|
||||
}
|
||||
@@ -436,13 +436,13 @@ Ipv4StaticRouting::RemoveRoute (uint32_t index)
|
||||
{
|
||||
NS_LOG_FUNCTION (this << index);
|
||||
uint32_t tmp = 0;
|
||||
for (NetworkRoutesI j = m_networkRoutes.begin ();
|
||||
for (NetworkRoutes::iterator j = m_networkRoutes.begin ();
|
||||
j != m_networkRoutes.end ();
|
||||
j++)
|
||||
{
|
||||
if (tmp == index)
|
||||
{
|
||||
delete j->first;
|
||||
delete *j;
|
||||
m_networkRoutes.erase (j);
|
||||
return;
|
||||
}
|
||||
@@ -584,13 +584,13 @@ Ipv4StaticRouting::~Ipv4StaticRouting ()
|
||||
void
|
||||
Ipv4StaticRouting::DoDispose (void)
|
||||
{
|
||||
for (NetworkRoutesI j = m_networkRoutes.begin ();
|
||||
for (NetworkRoutes::iterator j = m_networkRoutes.begin ();
|
||||
j != m_networkRoutes.end ();
|
||||
j = m_networkRoutes.erase (j))
|
||||
{
|
||||
delete (j->first);
|
||||
delete *j;
|
||||
}
|
||||
for (MulticastRoutesI i = m_multicastRoutes.begin ();
|
||||
for (MulticastRoutes::iterator i = m_multicastRoutes.begin ();
|
||||
i != m_multicastRoutes.end ();
|
||||
i = m_multicastRoutes.erase (i))
|
||||
{
|
||||
@@ -700,6 +700,7 @@ Ipv4StaticRouting::SetIpv4 (Ptr<Ipv4> ipv4)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Formatted like output of "route -n" command
|
||||
void
|
||||
Ipv4StaticRouting::PrintRoutingTable (Ptr<OutputStreamWrapper> stream) const
|
||||
@@ -707,16 +708,20 @@ Ipv4StaticRouting::PrintRoutingTable (Ptr<OutputStreamWrapper> stream) const
|
||||
std::ostream* os = stream->GetStream ();
|
||||
if (GetNRoutes () > 0)
|
||||
{
|
||||
*os << "Node: " << m_ipv4->GetObject<Node> ()->GetId () << std::endl;
|
||||
*os << "Destination Gateway Genmask Flags Metric Ref Use Iface" << std::endl;
|
||||
for (uint32_t j = 0; j < GetNRoutes (); j++)
|
||||
for (NetworkRoutes::const_iterator j = m_networkRoutes.begin ();
|
||||
j != m_networkRoutes.end ();
|
||||
j++)
|
||||
{
|
||||
std::ostringstream dest, gw, mask, flags;
|
||||
Ipv4RoutingTableEntry route = GetRoute (j);
|
||||
dest << route.GetDest ();
|
||||
Ipv4RoutingTableEntry &route = *(*j);
|
||||
|
||||
dest << route.GetDest ();
|
||||
*os << std::setiosflags (std::ios::left) << std::setw (16) << dest.str ();
|
||||
gw << route.GetGateway ();
|
||||
gw << route.GetGateway ();
|
||||
*os << std::setiosflags (std::ios::left) << std::setw (16) << gw.str ();
|
||||
mask << route.GetDestNetworkMask ();
|
||||
mask << route.GetDestNetworkMask ();
|
||||
*os << std::setiosflags (std::ios::left) << std::setw (16) << mask.str ();
|
||||
flags << "U";
|
||||
if (route.IsHost ())
|
||||
@@ -728,7 +733,7 @@ Ipv4StaticRouting::PrintRoutingTable (Ptr<OutputStreamWrapper> stream) const
|
||||
flags << "GS";
|
||||
}
|
||||
*os << std::setiosflags (std::ios::left) << std::setw (6) << flags.str ();
|
||||
*os << std::setiosflags (std::ios::left) << std::setw (7) << GetMetric (j);
|
||||
*os << std::setiosflags (std::ios::left) << std::setw (6) << route.GetMetric ();
|
||||
// Ref ct not implemented
|
||||
*os << "-" << " ";
|
||||
// Use not implemented
|
||||
|
||||
@@ -374,14 +374,14 @@ public:
|
||||
protected:
|
||||
virtual void DoDispose (void);
|
||||
|
||||
private:
|
||||
typedef std::list<std::pair <Ipv4RoutingTableEntry *, uint32_t> > NetworkRoutes;
|
||||
typedef std::list<std::pair <Ipv4RoutingTableEntry *, uint32_t> >::const_iterator NetworkRoutesCI;
|
||||
typedef std::list<std::pair <Ipv4RoutingTableEntry *, uint32_t> >::iterator NetworkRoutesI;
|
||||
protected:
|
||||
typedef std::list<Ipv4RoutingTableEntry *> NetworkRoutes;
|
||||
// typedef std::list<Ipv4RoutingTableEntry *>::const_iterator NetworkRoutesCI;
|
||||
// typedef std::list<Ipv4RoutingTableEntry *>::iterator NetworkRoutesI;
|
||||
|
||||
typedef std::list<Ipv4MulticastRoutingTableEntry *> MulticastRoutes;
|
||||
typedef std::list<Ipv4MulticastRoutingTableEntry *>::const_iterator MulticastRoutesCI;
|
||||
typedef std::list<Ipv4MulticastRoutingTableEntry *>::iterator MulticastRoutesI;
|
||||
// typedef std::list<Ipv4MulticastRoutingTableEntry *>::const_iterator MulticastRoutesCI;
|
||||
// typedef std::list<Ipv4MulticastRoutingTableEntry *>::iterator MulticastRoutesI;
|
||||
|
||||
Ptr<Ipv4Route> LookupStatic (Ipv4Address dest, Ptr<NetDevice> oif = 0);
|
||||
Ptr<Ipv4MulticastRoute> LookupStatic (Ipv4Address origin, Ipv4Address group,
|
||||
|
||||
@@ -610,12 +610,11 @@ void Ipv6L3Protocol::Send (Ptr<Packet> packet, Ipv6Address source, Ipv6Address d
|
||||
NS_LOG_FUNCTION (this << packet << source << destination << (uint32_t)protocol << route);
|
||||
Ipv6Header hdr;
|
||||
uint8_t ttl = m_defaultTtl;
|
||||
SocketIpTtlTag tag;
|
||||
bool found = packet->RemovePacketTag (tag);
|
||||
Ptr<const SocketIpTtlTag> tag = packet->RemovePacketTag<SocketIpTtlTag> ();
|
||||
|
||||
if (found)
|
||||
if (tag != 0)
|
||||
{
|
||||
ttl = tag.GetTtl ();
|
||||
ttl = tag->GetTtl ();
|
||||
}
|
||||
|
||||
/* Handle 3 cases:
|
||||
|
||||
@@ -340,9 +340,9 @@ bool Ipv6RawSocketImpl::ForwardUp (Ptr<const Packet> p, Ipv6Header hdr, Ptr<NetD
|
||||
// Should check via getsockopt ()..
|
||||
if (IsRecvPktInfo ())
|
||||
{
|
||||
Ipv6PacketInfoTag tag;
|
||||
copy->RemovePacketTag (tag);
|
||||
tag.SetRecvIf (device->GetIfIndex ());
|
||||
Ptr<const Ipv6PacketInfoTag> origTag = copy->RemovePacketTag<Ipv6PacketInfoTag> ();
|
||||
Ptr<Ipv6PacketInfoTag> tag = CreateObject<Ipv6PacketInfoTag> (*origTag);
|
||||
tag->SetRecvIf (device->GetIfIndex ());
|
||||
copy->AddPacketTag (tag);
|
||||
}
|
||||
|
||||
|
||||
@@ -269,7 +269,7 @@ TcpSocketBase::Bind6 (void)
|
||||
{
|
||||
m_errno = ERROR_ADDRNOTAVAIL;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
m_tcp->m_sockets.push_back (this);
|
||||
return SetupCallback ();
|
||||
}
|
||||
@@ -281,30 +281,30 @@ TcpSocketBase::Bind (const Address &address)
|
||||
NS_LOG_FUNCTION (this << address);
|
||||
if (InetSocketAddress::IsMatchingType (address))
|
||||
{
|
||||
InetSocketAddress transport = InetSocketAddress::ConvertFrom (address);
|
||||
Ipv4Address ipv4 = transport.GetIpv4 ();
|
||||
uint16_t port = transport.GetPort ();
|
||||
if (ipv4 == Ipv4Address::GetAny () && port == 0)
|
||||
{
|
||||
m_endPoint = m_tcp->Allocate ();
|
||||
}
|
||||
else if (ipv4 == Ipv4Address::GetAny () && port != 0)
|
||||
{
|
||||
m_endPoint = m_tcp->Allocate (port);
|
||||
}
|
||||
else if (ipv4 != Ipv4Address::GetAny () && port == 0)
|
||||
{
|
||||
m_endPoint = m_tcp->Allocate (ipv4);
|
||||
}
|
||||
else if (ipv4 != Ipv4Address::GetAny () && port != 0)
|
||||
{
|
||||
m_endPoint = m_tcp->Allocate (ipv4, port);
|
||||
}
|
||||
if (0 == m_endPoint)
|
||||
{
|
||||
m_errno = port ? ERROR_ADDRINUSE : ERROR_ADDRNOTAVAIL;
|
||||
return -1;
|
||||
}
|
||||
InetSocketAddress transport = InetSocketAddress::ConvertFrom (address);
|
||||
Ipv4Address ipv4 = transport.GetIpv4 ();
|
||||
uint16_t port = transport.GetPort ();
|
||||
if (ipv4 == Ipv4Address::GetAny () && port == 0)
|
||||
{
|
||||
m_endPoint = m_tcp->Allocate ();
|
||||
}
|
||||
else if (ipv4 == Ipv4Address::GetAny () && port != 0)
|
||||
{
|
||||
m_endPoint = m_tcp->Allocate (port);
|
||||
}
|
||||
else if (ipv4 != Ipv4Address::GetAny () && port == 0)
|
||||
{
|
||||
m_endPoint = m_tcp->Allocate (ipv4);
|
||||
}
|
||||
else if (ipv4 != Ipv4Address::GetAny () && port != 0)
|
||||
{
|
||||
m_endPoint = m_tcp->Allocate (ipv4, port);
|
||||
}
|
||||
if (0 == m_endPoint)
|
||||
{
|
||||
m_errno = port ? ERROR_ADDRINUSE : ERROR_ADDRNOTAVAIL;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
else if (Inet6SocketAddress::IsMatchingType (address))
|
||||
{
|
||||
@@ -353,24 +353,24 @@ TcpSocketBase::Connect (const Address & address)
|
||||
// If haven't do so, Bind() this socket first
|
||||
if (InetSocketAddress::IsMatchingType (address) && m_endPoint6 == 0)
|
||||
{
|
||||
if (m_endPoint == 0)
|
||||
if (m_endPoint == 0)
|
||||
{
|
||||
if (Bind () == -1)
|
||||
{
|
||||
if (Bind () == -1)
|
||||
{
|
||||
NS_ASSERT (m_endPoint == 0);
|
||||
return -1; // Bind() failed
|
||||
}
|
||||
NS_ASSERT (m_endPoint != 0);
|
||||
NS_ASSERT (m_endPoint == 0);
|
||||
return -1; // Bind() failed
|
||||
}
|
||||
InetSocketAddress transport = InetSocketAddress::ConvertFrom (address);
|
||||
m_endPoint->SetPeer (transport.GetIpv4 (), transport.GetPort ());
|
||||
NS_ASSERT (m_endPoint != 0);
|
||||
}
|
||||
InetSocketAddress transport = InetSocketAddress::ConvertFrom (address);
|
||||
m_endPoint->SetPeer (transport.GetIpv4 (), transport.GetPort ());
|
||||
m_endPoint6 = 0;
|
||||
|
||||
// Get the appropriate local address and port number from the routing protocol and set up endpoint
|
||||
if (SetupEndpoint () != 0)
|
||||
{ // Route to destination does not exist
|
||||
return -1;
|
||||
}
|
||||
// Get the appropriate local address and port number from the routing protocol and set up endpoint
|
||||
if (SetupEndpoint () != 0)
|
||||
{ // Route to destination does not exist
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
else if (Inet6SocketAddress::IsMatchingType (address) && m_endPoint == 0)
|
||||
{
|
||||
@@ -381,7 +381,7 @@ TcpSocketBase::Connect (const Address & address)
|
||||
if (v6Addr.IsIpv4MappedAddress () == true)
|
||||
{
|
||||
Ipv4Address v4Addr = v6Addr.GetIpv4MappedAddress ();
|
||||
return Connect (InetSocketAddress (v4Addr, transport.GetPort ()));
|
||||
return Connect(InetSocketAddress(v4Addr, transport.GetPort ()));
|
||||
}
|
||||
|
||||
if (m_endPoint6 == 0)
|
||||
@@ -526,15 +526,16 @@ TcpSocketBase::Recv (uint32_t maxSize, uint32_t flags)
|
||||
Ptr<Packet> outPacket = m_rxBuffer.Extract (maxSize);
|
||||
if (outPacket != 0 && outPacket->GetSize () != 0)
|
||||
{
|
||||
SocketAddressTag tag;
|
||||
Ptr<SocketAddressTag> tag = CreateObject<SocketAddressTag> ();
|
||||
if (m_endPoint != 0)
|
||||
{
|
||||
tag.SetAddress (InetSocketAddress (m_endPoint->GetPeerAddress (), m_endPoint->GetPeerPort ()));
|
||||
tag->SetAddress (InetSocketAddress (m_endPoint->GetPeerAddress (), m_endPoint->GetPeerPort ()));
|
||||
}
|
||||
else if (m_endPoint6 != 0)
|
||||
{
|
||||
tag.SetAddress (Inet6SocketAddress (m_endPoint6->GetPeerAddress (), m_endPoint6->GetPeerPort ()));
|
||||
tag->SetAddress (Inet6SocketAddress (m_endPoint6->GetPeerAddress (), m_endPoint6->GetPeerPort ()));
|
||||
}
|
||||
|
||||
outPacket->AddPacketTag (tag);
|
||||
}
|
||||
return outPacket;
|
||||
@@ -621,7 +622,7 @@ TcpSocketBase::BindToNetDevice (Ptr<NetDevice> netdevice)
|
||||
|
||||
if (m_endPoint != 0)
|
||||
{
|
||||
m_endPoint->BindToNetDevice (netdevice);
|
||||
m_endPoint->BindToNetDevice (netdevice);
|
||||
}
|
||||
// No BindToNetDevice() for Ipv6EndPoint
|
||||
return;
|
||||
@@ -639,8 +640,8 @@ TcpSocketBase::SetupCallback (void)
|
||||
}
|
||||
if (m_endPoint != 0)
|
||||
{
|
||||
m_endPoint->SetRxCallback (MakeCallback (&TcpSocketBase::ForwardUp, Ptr<TcpSocketBase> (this)));
|
||||
m_endPoint->SetDestroyCallback (MakeCallback (&TcpSocketBase::Destroy, Ptr<TcpSocketBase> (this)));
|
||||
m_endPoint->SetRxCallback (MakeCallback (&TcpSocketBase::ForwardUp, Ptr<TcpSocketBase> (this)));
|
||||
m_endPoint->SetDestroyCallback (MakeCallback (&TcpSocketBase::Destroy, Ptr<TcpSocketBase> (this)));
|
||||
}
|
||||
if (m_endPoint6 != 0)
|
||||
{
|
||||
@@ -791,7 +792,7 @@ TcpSocketBase::DoForwardUp (Ptr<Packet> packet, Ipv4Header header, uint16_t port
|
||||
TcpHeader tcpHeader;
|
||||
packet->RemoveHeader (tcpHeader);
|
||||
if (tcpHeader.GetFlags () & TcpHeader::ACK)
|
||||
{
|
||||
{
|
||||
EstimateRtt (tcpHeader);
|
||||
}
|
||||
ReadOptions (tcpHeader);
|
||||
@@ -810,7 +811,7 @@ TcpSocketBase::DoForwardUp (Ptr<Packet> packet, Ipv4Header header, uint16_t port
|
||||
{
|
||||
NS_LOG_LOGIC ("At state " << TcpStateName[m_state] <<
|
||||
" received packet of seq [" << tcpHeader.GetSequenceNumber () <<
|
||||
":" << tcpHeader.GetSequenceNumber () + packet->GetSize () <<
|
||||
":" << tcpHeader.GetSequenceNumber () + packet->GetSize() <<
|
||||
") out of range [" << m_rxBuffer.NextRxSequence () << ":" <<
|
||||
m_rxBuffer.MaxRxSequence () << ")");
|
||||
// Acknowledgement should be sent for all unacceptable packets (RFC793, p.69)
|
||||
@@ -905,7 +906,7 @@ TcpSocketBase::DoForwardUp (Ptr<Packet> packet, Ipv6Address saddr, Ipv6Address d
|
||||
{
|
||||
NS_LOG_LOGIC ("At state " << TcpStateName[m_state] <<
|
||||
" received packet of seq [" << tcpHeader.GetSequenceNumber () <<
|
||||
":" << tcpHeader.GetSequenceNumber () + packet->GetSize () <<
|
||||
":" << tcpHeader.GetSequenceNumber () + packet->GetSize() <<
|
||||
") out of range [" << m_rxBuffer.NextRxSequence () << ":" <<
|
||||
m_rxBuffer.MaxRxSequence () << ")");
|
||||
// Acknowledgement should be sent for all unacceptable packets (RFC793, p.69)
|
||||
@@ -1130,7 +1131,7 @@ TcpSocketBase::ProcessSynSent (Ptr<Packet> packet, const TcpHeader& tcpHeader)
|
||||
{ // Other in-sequence input
|
||||
if (tcpflags != TcpHeader::RST)
|
||||
{ // When (1) rx of FIN+ACK; (2) rx of FIN; (3) rx of bad flags
|
||||
NS_LOG_LOGIC ("Illegal flag " << std::hex << static_cast<uint32_t> (tcpflags) << std::dec << " received. Reset packet is sent.");
|
||||
NS_LOG_LOGIC ("Illegal flag " << std::hex << static_cast<uint32_t>(tcpflags) << std::dec << " received. Reset packet is sent.");
|
||||
SendRST ();
|
||||
}
|
||||
CloseAndNotify ();
|
||||
@@ -1149,7 +1150,7 @@ TcpSocketBase::ProcessSynRcvd (Ptr<Packet> packet, const TcpHeader& tcpHeader,
|
||||
|
||||
if (tcpflags == 0
|
||||
|| (tcpflags == TcpHeader::ACK
|
||||
&& m_nextTxSequence + SequenceNumber32 (1) == tcpHeader.GetAckNumber ()))
|
||||
&& m_nextTxSequence + SequenceNumber32 (1) == tcpHeader.GetAckNumber ()))
|
||||
{ // If it is bare data, accept it and move to ESTABLISHED state. This is
|
||||
// possibly due to ACK lost in 3WHS. If in-sequence ACK is received, the
|
||||
// handshake is completed nicely.
|
||||
@@ -1161,8 +1162,8 @@ TcpSocketBase::ProcessSynRcvd (Ptr<Packet> packet, const TcpHeader& tcpHeader,
|
||||
m_txBuffer.SetHeadSequence (m_nextTxSequence);
|
||||
if (m_endPoint)
|
||||
{
|
||||
m_endPoint->SetPeer (InetSocketAddress::ConvertFrom (fromAddress).GetIpv4 (),
|
||||
InetSocketAddress::ConvertFrom (fromAddress).GetPort ());
|
||||
m_endPoint->SetPeer (InetSocketAddress::ConvertFrom (fromAddress).GetIpv4 (),
|
||||
InetSocketAddress::ConvertFrom (fromAddress).GetPort ());
|
||||
}
|
||||
else if (m_endPoint6)
|
||||
{
|
||||
@@ -1195,8 +1196,8 @@ TcpSocketBase::ProcessSynRcvd (Ptr<Packet> packet, const TcpHeader& tcpHeader,
|
||||
m_txBuffer.SetHeadSequence (m_nextTxSequence);
|
||||
if (m_endPoint)
|
||||
{
|
||||
m_endPoint->SetPeer (InetSocketAddress::ConvertFrom (fromAddress).GetIpv4 (),
|
||||
InetSocketAddress::ConvertFrom (fromAddress).GetPort ());
|
||||
m_endPoint->SetPeer (InetSocketAddress::ConvertFrom (fromAddress).GetIpv4 (),
|
||||
InetSocketAddress::ConvertFrom (fromAddress).GetPort ());
|
||||
}
|
||||
else if (m_endPoint6)
|
||||
{
|
||||
@@ -1213,8 +1214,8 @@ TcpSocketBase::ProcessSynRcvd (Ptr<Packet> packet, const TcpHeader& tcpHeader,
|
||||
NS_LOG_LOGIC ("Illegal flag " << tcpflags << " received. Reset packet is sent.");
|
||||
if (m_endPoint)
|
||||
{
|
||||
m_endPoint->SetPeer (InetSocketAddress::ConvertFrom (fromAddress).GetIpv4 (),
|
||||
InetSocketAddress::ConvertFrom (fromAddress).GetPort ());
|
||||
m_endPoint->SetPeer (InetSocketAddress::ConvertFrom (fromAddress).GetIpv4 (),
|
||||
InetSocketAddress::ConvertFrom (fromAddress).GetPort ());
|
||||
}
|
||||
else if (m_endPoint6)
|
||||
{
|
||||
@@ -1294,9 +1295,9 @@ TcpSocketBase::ProcessWait (Ptr<Packet> packet, const TcpHeader& tcpHeader)
|
||||
if (!m_shutdownRecv)
|
||||
{
|
||||
NotifyDataRecv ();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Received a packet upon CLOSING */
|
||||
void
|
||||
@@ -1450,12 +1451,12 @@ TcpSocketBase::Destroy (void)
|
||||
m_endPoint = 0;
|
||||
if (m_tcp != 0)
|
||||
{
|
||||
std::vector<Ptr<TcpSocketBase> >::iterator it
|
||||
= std::find (m_tcp->m_sockets.begin (), m_tcp->m_sockets.end (), this);
|
||||
if (it != m_tcp->m_sockets.end ())
|
||||
{
|
||||
m_tcp->m_sockets.erase (it);
|
||||
}
|
||||
std::vector<Ptr<TcpSocketBase> >::iterator it
|
||||
= std::find (m_tcp->m_sockets.begin (), m_tcp->m_sockets.end (), this);
|
||||
if (it != m_tcp->m_sockets.end ())
|
||||
{
|
||||
m_tcp->m_sockets.erase (it);
|
||||
}
|
||||
}
|
||||
NS_LOG_LOGIC (this << " Cancelled ReTxTimeout event which was set to expire at " <<
|
||||
(Simulator::Now () + Simulator::GetDelayLeft (m_retxEvent)).GetSeconds ());
|
||||
@@ -1511,8 +1512,8 @@ TcpSocketBase::SendEmptyPacket (uint8_t flags)
|
||||
header.SetAckNumber (m_rxBuffer.NextRxSequence ());
|
||||
if (m_endPoint != 0)
|
||||
{
|
||||
header.SetSourcePort (m_endPoint->GetLocalPort ());
|
||||
header.SetDestinationPort (m_endPoint->GetPeerPort ());
|
||||
header.SetSourcePort (m_endPoint->GetLocalPort ());
|
||||
header.SetDestinationPort (m_endPoint->GetPeerPort ());
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1601,7 +1602,7 @@ TcpSocketBase::DeallocateEndPoint (void)
|
||||
if (it != m_tcp->m_sockets.end ())
|
||||
{
|
||||
m_tcp->m_sockets.erase (it);
|
||||
}
|
||||
}
|
||||
CancelAllTimers ();
|
||||
}
|
||||
}
|
||||
@@ -1677,10 +1678,10 @@ TcpSocketBase::CompleteFork (Ptr<Packet> p, const TcpHeader& h,
|
||||
// Get port and address from peer (connecting host)
|
||||
if (InetSocketAddress::IsMatchingType (toAddress))
|
||||
{
|
||||
m_endPoint = m_tcp->Allocate (InetSocketAddress::ConvertFrom (toAddress).GetIpv4 (),
|
||||
InetSocketAddress::ConvertFrom (toAddress).GetPort (),
|
||||
InetSocketAddress::ConvertFrom (fromAddress).GetIpv4 (),
|
||||
InetSocketAddress::ConvertFrom (fromAddress).GetPort ());
|
||||
m_endPoint = m_tcp->Allocate (InetSocketAddress::ConvertFrom (toAddress).GetIpv4 (),
|
||||
InetSocketAddress::ConvertFrom (toAddress).GetPort (),
|
||||
InetSocketAddress::ConvertFrom (fromAddress).GetIpv4 (),
|
||||
InetSocketAddress::ConvertFrom (fromAddress).GetPort ());
|
||||
m_endPoint6 = 0;
|
||||
}
|
||||
else if (Inet6SocketAddress::IsMatchingType (toAddress))
|
||||
@@ -1748,8 +1749,8 @@ TcpSocketBase::SendDataPacket (SequenceNumber32 seq, uint32_t maxSize, bool with
|
||||
header.SetAckNumber (m_rxBuffer.NextRxSequence ());
|
||||
if (m_endPoint)
|
||||
{
|
||||
header.SetSourcePort (m_endPoint->GetLocalPort ());
|
||||
header.SetDestinationPort (m_endPoint->GetPeerPort ());
|
||||
header.SetSourcePort (m_endPoint->GetLocalPort ());
|
||||
header.SetDestinationPort (m_endPoint->GetPeerPort ());
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1769,8 +1770,8 @@ TcpSocketBase::SendDataPacket (SequenceNumber32 seq, uint32_t maxSize, bool with
|
||||
NS_LOG_LOGIC ("Send packet via TcpL4Protocol with flags 0x" << std::hex << static_cast<uint32_t> (flags) << std::dec);
|
||||
if (m_endPoint)
|
||||
{
|
||||
m_tcp->SendPacket (p, header, m_endPoint->GetLocalAddress (),
|
||||
m_endPoint->GetPeerAddress (), m_boundnetdevice);
|
||||
m_tcp->SendPacket (p, header, m_endPoint->GetLocalAddress (),
|
||||
m_endPoint->GetPeerAddress (), m_boundnetdevice);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2061,8 +2062,8 @@ TcpSocketBase::PersistTimeout ()
|
||||
tcpHeader.SetWindowSize (AdvertisedWindowSize ());
|
||||
if (m_endPoint != 0)
|
||||
{
|
||||
tcpHeader.SetSourcePort (m_endPoint->GetLocalPort ());
|
||||
tcpHeader.SetDestinationPort (m_endPoint->GetPeerPort ());
|
||||
tcpHeader.SetSourcePort (m_endPoint->GetLocalPort ());
|
||||
tcpHeader.SetDestinationPort (m_endPoint->GetPeerPort ());
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2073,8 +2074,8 @@ TcpSocketBase::PersistTimeout ()
|
||||
|
||||
if (m_endPoint != 0)
|
||||
{
|
||||
m_tcp->SendPacket (p, tcpHeader, m_endPoint->GetLocalAddress (),
|
||||
m_endPoint->GetPeerAddress (), m_boundnetdevice);
|
||||
m_tcp->SendPacket (p, tcpHeader, m_endPoint->GetLocalAddress (),
|
||||
m_endPoint->GetPeerAddress (), m_boundnetdevice);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2149,7 +2150,7 @@ TcpSocketBase::TimeWait ()
|
||||
CancelAllTimers ();
|
||||
// Move from TIME_WAIT to CLOSED after 2*MSL. Max segment lifetime is 2 min
|
||||
// according to RFC793, p.28
|
||||
m_timewaitEvent = Simulator::Schedule (Seconds (2 * m_msl),
|
||||
m_timewaitEvent = Simulator::Schedule (Seconds (2*m_msl),
|
||||
&TcpSocketBase::CloseAndNotify, this);
|
||||
}
|
||||
|
||||
|
||||
@@ -180,9 +180,9 @@ UdpSocketImpl::FinishBind (void)
|
||||
bool done = false;
|
||||
if (m_endPoint != 0)
|
||||
{
|
||||
m_endPoint->SetRxCallback (MakeCallback (&UdpSocketImpl::ForwardUp, Ptr<UdpSocketImpl> (this)));
|
||||
m_endPoint->SetIcmpCallback (MakeCallback (&UdpSocketImpl::ForwardIcmp, Ptr<UdpSocketImpl> (this)));
|
||||
m_endPoint->SetDestroyCallback (MakeCallback (&UdpSocketImpl::Destroy, Ptr<UdpSocketImpl> (this)));
|
||||
m_endPoint->SetRxCallback (MakeCallback (&UdpSocketImpl::ForwardUp, Ptr<UdpSocketImpl> (this)));
|
||||
m_endPoint->SetIcmpCallback (MakeCallback (&UdpSocketImpl::ForwardIcmp, Ptr<UdpSocketImpl> (this)));
|
||||
m_endPoint->SetDestroyCallback (MakeCallback (&UdpSocketImpl::Destroy, Ptr<UdpSocketImpl> (this)));
|
||||
done = true;
|
||||
}
|
||||
if (m_endPoint6 != 0)
|
||||
@@ -194,8 +194,8 @@ UdpSocketImpl::FinishBind (void)
|
||||
}
|
||||
if (done)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -207,7 +207,7 @@ UdpSocketImpl::Bind (void)
|
||||
return FinishBind ();
|
||||
}
|
||||
|
||||
int
|
||||
int
|
||||
UdpSocketImpl::Bind6 (void)
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
@@ -222,25 +222,25 @@ UdpSocketImpl::Bind (const Address &address)
|
||||
|
||||
if (InetSocketAddress::IsMatchingType (address))
|
||||
{
|
||||
InetSocketAddress transport = InetSocketAddress::ConvertFrom (address);
|
||||
Ipv4Address ipv4 = transport.GetIpv4 ();
|
||||
uint16_t port = transport.GetPort ();
|
||||
if (ipv4 == Ipv4Address::GetAny () && port == 0)
|
||||
{
|
||||
m_endPoint = m_udp->Allocate ();
|
||||
}
|
||||
else if (ipv4 == Ipv4Address::GetAny () && port != 0)
|
||||
{
|
||||
m_endPoint = m_udp->Allocate (port);
|
||||
}
|
||||
else if (ipv4 != Ipv4Address::GetAny () && port == 0)
|
||||
{
|
||||
m_endPoint = m_udp->Allocate (ipv4);
|
||||
}
|
||||
else if (ipv4 != Ipv4Address::GetAny () && port != 0)
|
||||
{
|
||||
m_endPoint = m_udp->Allocate (ipv4, port);
|
||||
}
|
||||
InetSocketAddress transport = InetSocketAddress::ConvertFrom (address);
|
||||
Ipv4Address ipv4 = transport.GetIpv4 ();
|
||||
uint16_t port = transport.GetPort ();
|
||||
if (ipv4 == Ipv4Address::GetAny () && port == 0)
|
||||
{
|
||||
m_endPoint = m_udp->Allocate ();
|
||||
}
|
||||
else if (ipv4 == Ipv4Address::GetAny () && port != 0)
|
||||
{
|
||||
m_endPoint = m_udp->Allocate (port);
|
||||
}
|
||||
else if (ipv4 != Ipv4Address::GetAny () && port == 0)
|
||||
{
|
||||
m_endPoint = m_udp->Allocate (ipv4);
|
||||
}
|
||||
else if (ipv4 != Ipv4Address::GetAny () && port != 0)
|
||||
{
|
||||
m_endPoint = m_udp->Allocate (ipv4, port);
|
||||
}
|
||||
}
|
||||
else if (Inet6SocketAddress::IsMatchingType (address))
|
||||
{
|
||||
@@ -310,11 +310,11 @@ UdpSocketImpl::Connect (const Address & address)
|
||||
NS_LOG_FUNCTION (this << address);
|
||||
if (InetSocketAddress::IsMatchingType(address) == true)
|
||||
{
|
||||
InetSocketAddress transport = InetSocketAddress::ConvertFrom (address);
|
||||
InetSocketAddress transport = InetSocketAddress::ConvertFrom (address);
|
||||
m_defaultAddress = Address(transport.GetIpv4 ());
|
||||
m_defaultPort = transport.GetPort ();
|
||||
m_connected = true;
|
||||
NotifyConnectionSucceeded ();
|
||||
m_defaultPort = transport.GetPort ();
|
||||
m_connected = true;
|
||||
NotifyConnectionSucceeded ();
|
||||
}
|
||||
else if (Inet6SocketAddress::IsMatchingType(address) == true)
|
||||
{
|
||||
@@ -393,11 +393,11 @@ UdpSocketImpl::DoSendTo (Ptr<Packet> p, const Address &address)
|
||||
NS_LOG_LOGIC ("Not connected");
|
||||
if (InetSocketAddress::IsMatchingType(address) == true)
|
||||
{
|
||||
InetSocketAddress transport = InetSocketAddress::ConvertFrom (address);
|
||||
Ipv4Address ipv4 = transport.GetIpv4 ();
|
||||
uint16_t port = transport.GetPort ();
|
||||
return DoSendTo (p, ipv4, port);
|
||||
}
|
||||
InetSocketAddress transport = InetSocketAddress::ConvertFrom (address);
|
||||
Ipv4Address ipv4 = transport.GetIpv4 ();
|
||||
uint16_t port = transport.GetPort ();
|
||||
return DoSendTo (p, ipv4, port);
|
||||
}
|
||||
else if (Inet6SocketAddress::IsMatchingType(address) == true)
|
||||
{
|
||||
Inet6SocketAddress transport = Inet6SocketAddress::ConvertFrom (address);
|
||||
@@ -405,8 +405,8 @@ UdpSocketImpl::DoSendTo (Ptr<Packet> p, const Address &address)
|
||||
uint16_t port = transport.GetPort ();
|
||||
return DoSendTo (p, ipv6, port);
|
||||
}
|
||||
else
|
||||
{
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@@ -417,11 +417,11 @@ UdpSocketImpl::DoSendTo (Ptr<Packet> p, const Address &address)
|
||||
if (Ipv4Address::IsMatchingType(m_defaultAddress))
|
||||
{
|
||||
return DoSendTo (p, Ipv4Address::ConvertFrom(m_defaultAddress), m_defaultPort);
|
||||
}
|
||||
}
|
||||
else if (Ipv6Address::IsMatchingType(m_defaultAddress))
|
||||
{
|
||||
return DoSendTo (p, Ipv6Address::ConvertFrom(m_defaultAddress), m_defaultPort);
|
||||
}
|
||||
}
|
||||
}
|
||||
m_errno = ERROR_AFNOSUPPORT;
|
||||
return(-1);
|
||||
@@ -468,28 +468,29 @@ UdpSocketImpl::DoSendTo (Ptr<Packet> p, Ipv4Address dest, uint16_t port)
|
||||
// the same as a unicast, but it will be fixed further down the stack
|
||||
if (m_ipMulticastTtl != 0 && dest.IsMulticast ())
|
||||
{
|
||||
SocketIpTtlTag tag;
|
||||
tag.SetTtl (m_ipMulticastTtl);
|
||||
Ptr<SocketIpTtlTag> tag = CreateObject<SocketIpTtlTag> ();
|
||||
tag->SetTtl (m_ipMulticastTtl);
|
||||
p->AddPacketTag (tag);
|
||||
}
|
||||
else if (m_ipTtl != 0 && !dest.IsMulticast () && !dest.IsBroadcast ())
|
||||
{
|
||||
SocketIpTtlTag tag;
|
||||
tag.SetTtl (m_ipTtl);
|
||||
Ptr<SocketIpTtlTag> tag = CreateObject<SocketIpTtlTag> ();
|
||||
tag->SetTtl (m_ipTtl);
|
||||
p->AddPacketTag (tag);
|
||||
}
|
||||
{
|
||||
SocketSetDontFragmentTag tag;
|
||||
bool found = p->RemovePacketTag (tag);
|
||||
if (!found)
|
||||
|
||||
// !!! Previously, header was removed, checked, but never added back. Guess, this was wrong
|
||||
if (p->PeekPacketTag<SocketSetDontFragmentTag> () == 0)
|
||||
{
|
||||
Ptr<SocketSetDontFragmentTag> tag = CreateObject<SocketSetDontFragmentTag> ();
|
||||
if (m_mtuDiscover)
|
||||
{
|
||||
tag.Enable ();
|
||||
tag->Enable ();
|
||||
}
|
||||
else
|
||||
{
|
||||
tag.Disable ();
|
||||
tag->Disable ();
|
||||
}
|
||||
p->AddPacketTag (tag);
|
||||
}
|
||||
@@ -656,14 +657,14 @@ UdpSocketImpl::DoSendTo (Ptr<Packet> p, Ipv6Address dest, uint16_t port)
|
||||
// the same as a unicast, but it will be fixed further down the stack
|
||||
if (m_ipMulticastTtl != 0 && dest.IsMulticast ())
|
||||
{
|
||||
SocketIpTtlTag tag;
|
||||
tag.SetTtl (m_ipMulticastTtl);
|
||||
Ptr<SocketIpTtlTag> tag = CreateObject<SocketIpTtlTag> ();
|
||||
tag->SetTtl (m_ipMulticastTtl);
|
||||
p->AddPacketTag (tag);
|
||||
}
|
||||
else if (m_ipTtl != 0 && !dest.IsMulticast ())
|
||||
{
|
||||
SocketIpTtlTag tag;
|
||||
tag.SetTtl (m_ipTtl);
|
||||
Ptr<SocketIpTtlTag> tag = CreateObject<SocketIpTtlTag> ();
|
||||
tag->SetTtl (m_ipTtl);
|
||||
p->AddPacketTag (tag);
|
||||
}
|
||||
// There is no analgous to an IPv4 broadcast address in IPv6.
|
||||
@@ -734,11 +735,11 @@ UdpSocketImpl::SendTo (Ptr<Packet> p, uint32_t flags, const Address &address)
|
||||
NS_LOG_FUNCTION (this << p << flags << address);
|
||||
if (InetSocketAddress::IsMatchingType (address))
|
||||
{
|
||||
InetSocketAddress transport = InetSocketAddress::ConvertFrom (address);
|
||||
Ipv4Address ipv4 = transport.GetIpv4 ();
|
||||
uint16_t port = transport.GetPort ();
|
||||
return DoSendTo (p, ipv4, port);
|
||||
}
|
||||
InetSocketAddress transport = InetSocketAddress::ConvertFrom (address);
|
||||
Ipv4Address ipv4 = transport.GetIpv4 ();
|
||||
uint16_t port = transport.GetPort ();
|
||||
return DoSendTo (p, ipv4, port);
|
||||
}
|
||||
else if (Inet6SocketAddress::IsMatchingType (address))
|
||||
{
|
||||
Inet6SocketAddress transport = Inet6SocketAddress::ConvertFrom (address);
|
||||
@@ -788,11 +789,9 @@ UdpSocketImpl::RecvFrom (uint32_t maxSize, uint32_t flags,
|
||||
Ptr<Packet> packet = Recv (maxSize, flags);
|
||||
if (packet != 0)
|
||||
{
|
||||
SocketAddressTag tag;
|
||||
bool found;
|
||||
found = packet->PeekPacketTag (tag);
|
||||
NS_ASSERT (found);
|
||||
fromAddress = tag.GetAddress ();
|
||||
Ptr<const SocketAddressTag> tag = packet->PeekPacketTag<SocketAddressTag> ();
|
||||
NS_ASSERT (tag != 0);
|
||||
fromAddress = tag->GetAddress ();
|
||||
}
|
||||
return packet;
|
||||
}
|
||||
@@ -874,17 +873,17 @@ UdpSocketImpl::ForwardUp (Ptr<Packet> packet, Ipv4Header header, uint16_t port,
|
||||
// Should check via getsockopt ()..
|
||||
if (IsRecvPktInfo ())
|
||||
{
|
||||
Ipv4PacketInfoTag tag;
|
||||
packet->RemovePacketTag (tag);
|
||||
tag.SetRecvIf (incomingInterface->GetDevice ()->GetIfIndex ());
|
||||
Ptr<const Ipv4PacketInfoTag> origTag = packet->RemovePacketTag<Ipv4PacketInfoTag> ();
|
||||
Ptr<Ipv4PacketInfoTag> tag = CreateObject<Ipv4PacketInfoTag> (*origTag);
|
||||
tag->SetRecvIf (incomingInterface->GetDevice ()->GetIfIndex ());
|
||||
packet->AddPacketTag (tag);
|
||||
}
|
||||
|
||||
if ((m_rxAvailable + packet->GetSize ()) <= m_rcvBufSize)
|
||||
{
|
||||
Address address = InetSocketAddress (header.GetSource (), port);
|
||||
SocketAddressTag tag;
|
||||
tag.SetAddress (address);
|
||||
Ptr<SocketAddressTag> tag = CreateObject<SocketAddressTag> ();
|
||||
tag->SetAddress (address);
|
||||
packet->AddPacketTag (tag);
|
||||
m_deliveryQueue.push (packet);
|
||||
m_rxAvailable += packet->GetSize ();
|
||||
@@ -902,7 +901,7 @@ UdpSocketImpl::ForwardUp (Ptr<Packet> packet, Ipv4Header header, uint16_t port,
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
void
|
||||
UdpSocketImpl::ForwardUp6 (Ptr<Packet> packet, Ipv6Address saddr, Ipv6Address daddr, uint16_t port)
|
||||
{
|
||||
NS_LOG_FUNCTION (this << packet << saddr << port);
|
||||
@@ -915,8 +914,8 @@ UdpSocketImpl::ForwardUp6 (Ptr<Packet> packet, Ipv6Address saddr, Ipv6Address da
|
||||
if ((m_rxAvailable + packet->GetSize ()) <= m_rcvBufSize)
|
||||
{
|
||||
Address address = Inet6SocketAddress (saddr, port);
|
||||
SocketAddressTag tag;
|
||||
tag.SetAddress (address);
|
||||
Ptr<SocketAddressTag> tag = CreateObject<SocketAddressTag> ();
|
||||
tag->SetAddress (address);
|
||||
packet->AddPacketTag (tag);
|
||||
m_deliveryQueue.push (packet);
|
||||
m_rxAvailable += packet->GetSize ();
|
||||
|
||||
@@ -97,10 +97,8 @@ Ipv4PacketInfoTagTest::RxCb (Ptr<Socket> socket)
|
||||
m_receivedPacket = socket->Recv (std::numeric_limits<uint32_t>::max (), 0);
|
||||
NS_TEST_ASSERT_MSG_EQ (availableData, m_receivedPacket->GetSize (), "Did not read expected data");
|
||||
|
||||
Ipv4PacketInfoTag tag;
|
||||
bool found;
|
||||
found = m_receivedPacket->RemovePacketTag (tag);
|
||||
NS_TEST_ASSERT_MSG_EQ (found, true, "Could not find tag");
|
||||
Ptr<const Ipv4PacketInfoTag> tag = m_receivedPacket->RemovePacketTag<Ipv4PacketInfoTag> ();
|
||||
NS_TEST_ASSERT_MSG_NE (tag, 0, "Could not find tag");
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -93,10 +93,8 @@ Ipv6PacketInfoTagTest::RxCb (Ptr<Socket> socket)
|
||||
m_receivedPacket = socket->Recv (std::numeric_limits<uint32_t>::max (), 0);
|
||||
NS_TEST_ASSERT_MSG_EQ (availableData, m_receivedPacket->GetSize (), "Did not read expected data");
|
||||
|
||||
Ipv6PacketInfoTag tag;
|
||||
bool found;
|
||||
found = m_receivedPacket->RemovePacketTag (tag);
|
||||
NS_TEST_ASSERT_MSG_EQ (found, true, "Could not find tag");
|
||||
Ptr<const Ipv6PacketInfoTag> tag = m_receivedPacket->RemovePacketTag<Ipv6PacketInfoTag> ();
|
||||
NS_TEST_ASSERT_MSG_NE (tag, 0, "Could not find tag");
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -93,6 +93,7 @@ def configure(conf):
|
||||
def build(bld):
|
||||
# bridge and mpi dependencies are due to global routing
|
||||
obj = bld.create_ns3_module('internet', ['bridge', 'mpi', 'network', 'core'])
|
||||
|
||||
obj.source = [
|
||||
'model/ip-l4-protocol.cc',
|
||||
'model/udp-header.cc',
|
||||
@@ -173,6 +174,7 @@ def build(bld):
|
||||
'model/global-route-manager-impl.cc',
|
||||
'model/candidate-queue.cc',
|
||||
'model/ipv4-global-routing.cc',
|
||||
'model/ipv4-global-routing-one-nexthop.cc',
|
||||
'helper/ipv4-global-routing-helper.cc',
|
||||
'helper/internet-stack-helper.cc',
|
||||
'helper/internet-trace-helper.cc',
|
||||
@@ -269,6 +271,7 @@ def build(bld):
|
||||
'model/global-route-manager-impl.h',
|
||||
'model/candidate-queue.h',
|
||||
'model/ipv4-global-routing.h',
|
||||
'model/ipv4-global-routing-one-nexthop.h',
|
||||
'helper/ipv4-global-routing-helper.h',
|
||||
'helper/internet-stack-helper.h',
|
||||
'helper/internet-trace-helper.h',
|
||||
@@ -279,6 +282,7 @@ def build(bld):
|
||||
'helper/ipv6-interface-container.h',
|
||||
'helper/ipv6-routing-helper.h',
|
||||
'model/ipv6-address-generator.h',
|
||||
'model/rtt-estimator.h',
|
||||
]
|
||||
|
||||
if bld.env['NSC_ENABLED']:
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
callback_classes = [
|
||||
['void', 'ns3::Ptr<ns3::Packet>', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
|
||||
['void', 'ns3::Ptr<ns3::Packet const>', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
|
||||
['void', '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'],
|
||||
['void', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
|
||||
['bool', 'ns3::Ptr<ns3::Packet>', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
|
||||
['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'],
|
||||
['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'],
|
||||
['void', 'ns3::Ptr<ns3::Packet const>', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
|
||||
['void', 'ns3::Ptr<ns3::Packet>', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'],
|
||||
]
|
||||
@@ -96,24 +96,16 @@ def register_types(module):
|
||||
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
|
||||
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
|
||||
module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator [class]
|
||||
module.add_class('PacketTagIterator', import_from_module='ns.network')
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
|
||||
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
|
||||
module.add_class('PacketTagList', import_from_module='ns.network')
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
|
||||
module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
|
||||
## random-variable.h (module 'core'): ns3::RandomVariable [class]
|
||||
module.add_class('RandomVariable', import_from_module='ns.core')
|
||||
## random-variable.h (module 'core'): ns3::SeedManager [class]
|
||||
module.add_class('SeedManager', import_from_module='ns.core')
|
||||
## random-variable.h (module 'core'): ns3::SequentialVariable [class]
|
||||
module.add_class('SequentialVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable'])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Chunk', 'ns3::ObjectBase', 'ns3::DefaultDeleter<ns3::Chunk>'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
|
||||
module.add_class('TagBuffer', import_from_module='ns.network')
|
||||
## wimax-tlv.h (module 'wimax'): ns3::TlvValue [class]
|
||||
@@ -155,7 +147,7 @@ def register_types(module):
|
||||
## int64x64-double.h (module 'core'): ns3::int64x64_t [class]
|
||||
module.add_class('int64x64_t', import_from_module='ns.core')
|
||||
## chunk.h (module 'network'): ns3::Chunk [class]
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
## wimax-tlv.h (module 'wimax'): ns3::ClassificationRuleVectorTlvValue [class]
|
||||
module.add_class('ClassificationRuleVectorTlvValue', import_from_module='ns.wimax', parent=root_module['ns3::VectorTlvValue'])
|
||||
## wimax-tlv.h (module 'wimax'): ns3::ClassificationRuleVectorTlvValue::ClassificationRuleTlvType [enumeration]
|
||||
@@ -258,6 +250,8 @@ def register_types(module):
|
||||
module.add_class('SpectrumSignalParameters', import_from_module='ns.spectrum', parent=root_module['ns3::SimpleRefCount< ns3::SpectrumSignalParameters, ns3::empty, ns3::DefaultDeleter<ns3::SpectrumSignalParameters> >'])
|
||||
## spectrum-value.h (module 'spectrum'): ns3::SpectrumValue [class]
|
||||
module.add_class('SpectrumValue', import_from_module='ns.spectrum', parent=root_module['ns3::SimpleRefCount< ns3::SpectrumValue, ns3::empty, ns3::DefaultDeleter<ns3::SpectrumValue> >'])
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::Object'])
|
||||
## nstime.h (module 'core'): ns3::Time [class]
|
||||
module.add_class('Time', import_from_module='ns.core')
|
||||
## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
|
||||
@@ -442,29 +436,26 @@ def register_types(module):
|
||||
module.add_container('std::list< ns3::PdcchMapIdealControlMessage::IdealPdcchRecord >', 'ns3::PdcchMapIdealControlMessage::IdealPdcchRecord', container_type='list')
|
||||
module.add_container('std::list< ns3::CqiIdealControlMessage::CqiFeedback >', 'ns3::CqiIdealControlMessage::CqiFeedback', container_type='list')
|
||||
module.add_container('std::vector< ns3::Ptr< ns3::SpectrumPhy > >', 'ns3::Ptr< ns3::SpectrumPhy >', container_type='vector')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ns3::GenericPhyRxEndOkCallback')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >*', 'ns3::GenericPhyRxEndOkCallback*')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >&', 'ns3::GenericPhyRxEndOkCallback&')
|
||||
typehandlers.add_type_alias('std::vector< ns3::BandInfo, std::allocator< ns3::BandInfo > >', 'ns3::Bands')
|
||||
typehandlers.add_type_alias('std::vector< ns3::BandInfo, std::allocator< ns3::BandInfo > >*', 'ns3::Bands*')
|
||||
typehandlers.add_type_alias('std::vector< ns3::BandInfo, std::allocator< ns3::BandInfo > >&', 'ns3::Bands&')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue', 'ns3::VectorValue')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue*', 'ns3::VectorValue*')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue&', 'ns3::VectorValue&')
|
||||
module.add_typedef(root_module['ns3::Vector3DValue'], 'VectorValue')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) *', 'ns3::LogNodePrinter')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) **', 'ns3::LogNodePrinter*')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) *&', 'ns3::LogNodePrinter&')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ns3::GenericPhyTxEndCallback')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >*', 'ns3::GenericPhyTxEndCallback*')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >&', 'ns3::GenericPhyTxEndCallback&')
|
||||
typehandlers.add_type_alias('ns3::Vector3D', 'ns3::Vector')
|
||||
typehandlers.add_type_alias('ns3::Vector3D*', 'ns3::Vector*')
|
||||
typehandlers.add_type_alias('ns3::Vector3D&', 'ns3::Vector&')
|
||||
module.add_typedef(root_module['ns3::Vector3D'], 'Vector')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ns3::GenericPhyRxStartCallback')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >*', 'ns3::GenericPhyRxStartCallback*')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >&', 'ns3::GenericPhyRxStartCallback&')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue', 'ns3::VectorValue')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue*', 'ns3::VectorValue*')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue&', 'ns3::VectorValue&')
|
||||
module.add_typedef(root_module['ns3::Vector3DValue'], 'VectorValue')
|
||||
typehandlers.add_type_alias('uint32_t', 'ns3::SpectrumModelUid_t')
|
||||
typehandlers.add_type_alias('uint32_t*', 'ns3::SpectrumModelUid_t*')
|
||||
typehandlers.add_type_alias('uint32_t&', 'ns3::SpectrumModelUid_t&')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ns3::GenericPhyRxStartCallback')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >*', 'ns3::GenericPhyRxStartCallback*')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >&', 'ns3::GenericPhyRxStartCallback&')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) *', 'ns3::LogNodePrinter')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) **', 'ns3::LogNodePrinter*')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) *&', 'ns3::LogNodePrinter&')
|
||||
typehandlers.add_type_alias('ns3::Vector3DChecker', 'ns3::VectorChecker')
|
||||
typehandlers.add_type_alias('ns3::Vector3DChecker*', 'ns3::VectorChecker*')
|
||||
typehandlers.add_type_alias('ns3::Vector3DChecker&', 'ns3::VectorChecker&')
|
||||
@@ -472,18 +463,21 @@ def register_types(module):
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) *', 'ns3::LogTimePrinter')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) **', 'ns3::LogTimePrinter*')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) *&', 'ns3::LogTimePrinter&')
|
||||
typehandlers.add_type_alias('ns3::Callback< bool, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ns3::GenericPhyTxStartCallback')
|
||||
typehandlers.add_type_alias('ns3::Callback< bool, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >*', 'ns3::GenericPhyTxStartCallback*')
|
||||
typehandlers.add_type_alias('ns3::Callback< bool, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >&', 'ns3::GenericPhyTxStartCallback&')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ns3::GenericPhyRxEndErrorCallback')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >*', 'ns3::GenericPhyRxEndErrorCallback*')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >&', 'ns3::GenericPhyRxEndErrorCallback&')
|
||||
typehandlers.add_type_alias('std::vector< double, std::allocator< double > >', 'ns3::Values')
|
||||
typehandlers.add_type_alias('std::vector< double, std::allocator< double > >*', 'ns3::Values*')
|
||||
typehandlers.add_type_alias('std::vector< double, std::allocator< double > >&', 'ns3::Values&')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ns3::GenericPhyTxEndCallback')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >*', 'ns3::GenericPhyTxEndCallback*')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >&', 'ns3::GenericPhyTxEndCallback&')
|
||||
typehandlers.add_type_alias('ns3::Callback< bool, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ns3::GenericPhyTxStartCallback')
|
||||
typehandlers.add_type_alias('ns3::Callback< bool, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >*', 'ns3::GenericPhyTxStartCallback*')
|
||||
typehandlers.add_type_alias('ns3::Callback< bool, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >&', 'ns3::GenericPhyTxStartCallback&')
|
||||
typehandlers.add_type_alias('std::vector< ns3::BandInfo, std::allocator< ns3::BandInfo > >', 'ns3::Bands')
|
||||
typehandlers.add_type_alias('std::vector< ns3::BandInfo, std::allocator< ns3::BandInfo > >*', 'ns3::Bands*')
|
||||
typehandlers.add_type_alias('std::vector< ns3::BandInfo, std::allocator< ns3::BandInfo > >&', 'ns3::Bands&')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ns3::GenericPhyRxEndOkCallback')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >*', 'ns3::GenericPhyRxEndOkCallback*')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >&', 'ns3::GenericPhyRxEndOkCallback&')
|
||||
|
||||
## Register a nested module for the namespace FatalImpl
|
||||
|
||||
@@ -547,15 +541,11 @@ def register_methods(root_module):
|
||||
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_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
|
||||
register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
|
||||
register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
|
||||
register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
|
||||
register_Ns3RandomVariable_methods(root_module, root_module['ns3::RandomVariable'])
|
||||
register_Ns3SeedManager_methods(root_module, root_module['ns3::SeedManager'])
|
||||
register_Ns3SequentialVariable_methods(root_module, root_module['ns3::SequentialVariable'])
|
||||
register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
|
||||
register_Ns3TlvValue_methods(root_module, root_module['ns3::TlvValue'])
|
||||
register_Ns3TosTlvValue_methods(root_module, root_module['ns3::TosTlvValue'])
|
||||
@@ -622,6 +612,7 @@ def register_methods(root_module):
|
||||
register_Ns3SpectrumPropagationLossModel_methods(root_module, root_module['ns3::SpectrumPropagationLossModel'])
|
||||
register_Ns3SpectrumSignalParameters_methods(root_module, root_module['ns3::SpectrumSignalParameters'])
|
||||
register_Ns3SpectrumValue_methods(root_module, root_module['ns3::SpectrumValue'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3Time_methods(root_module, root_module['ns3::Time'])
|
||||
register_Ns3Tlv_methods(root_module, root_module['ns3::Tlv'])
|
||||
register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
|
||||
@@ -960,6 +951,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Next',
|
||||
'void',
|
||||
[param('uint32_t', 'delta')])
|
||||
## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function]
|
||||
cls.add_method('PeekU8',
|
||||
'uint8_t',
|
||||
[])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
|
||||
cls.add_method('Prev',
|
||||
'void',
|
||||
@@ -972,6 +967,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function]
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
|
||||
cls.add_method('ReadLsbtohU16',
|
||||
'uint16_t',
|
||||
@@ -1362,9 +1361,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
@@ -1999,6 +1998,21 @@ def register_Ns3NodeContainer_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::NodeContainer other) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::NodeContainer', 'other')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::Ptr<ns3::Node> node) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::Ptr< ns3::Node >', 'node')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(std::string nodeName) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('std::string', 'nodeName')],
|
||||
custom_name='__call__')
|
||||
return
|
||||
|
||||
def register_Ns3ObjectBase_methods(root_module, cls):
|
||||
@@ -2223,80 +2237,6 @@ def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIterator_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
|
||||
## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
|
||||
cls.add_method('HasNext',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::PacketTagIterator::Item',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
|
||||
## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('GetTag',
|
||||
'void',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagList_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
|
||||
cls.add_method('Add',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
|
||||
cls.add_method('Head',
|
||||
'ns3::PacketTagList::TagData const *',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('Peek',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
|
||||
cls.add_method('Remove',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
|
||||
cls.add_method('RemoveAll',
|
||||
'void',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagListTagData_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
|
||||
cls.add_instance_attribute('count', 'uint32_t', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
|
||||
cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
|
||||
cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
|
||||
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
|
||||
return
|
||||
|
||||
def register_Ns3RandomVariable_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## random-variable.h (module 'core'): ns3::RandomVariable::RandomVariable() [constructor]
|
||||
@@ -2356,6 +2296,18 @@ def register_Ns3SequentialVariable_methods(root_module, cls):
|
||||
cls.add_constructor([param('double', 'f'), param('double', 'l'), param('ns3::RandomVariable const &', 'i'), param('uint32_t', 'c', default_value='1')])
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter< ns3::Chunk > > const &', 'o')])
|
||||
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::Cleanup() [member function]
|
||||
cls.add_method('Cleanup',
|
||||
'void',
|
||||
[],
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -2368,38 +2320,6 @@ def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TagBuffer_methods(root_module, cls):
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
|
||||
@@ -2855,12 +2775,25 @@ def register_Ns3UniformVariable_methods(root_module, cls):
|
||||
|
||||
def register_Ns3Vector2D_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('double', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('/', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('double', 'right'))
|
||||
## vector.h (module 'core'): ns3::Vector2D::Vector2D(ns3::Vector2D const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Vector2D const &', 'arg0')])
|
||||
## vector.h (module 'core'): ns3::Vector2D::Vector2D(double _x, double _y) [constructor]
|
||||
cls.add_constructor([param('double', '_x'), param('double', '_y')])
|
||||
## vector.h (module 'core'): ns3::Vector2D::Vector2D() [constructor]
|
||||
cls.add_constructor([])
|
||||
## vector.h (module 'core'): double ns3::Vector2D::GetLength() const [member function]
|
||||
cls.add_method('GetLength',
|
||||
'double',
|
||||
[],
|
||||
is_const=True)
|
||||
## vector.h (module 'core'): ns3::Vector2D::x [variable]
|
||||
cls.add_instance_attribute('x', 'double', is_const=False)
|
||||
## vector.h (module 'core'): ns3::Vector2D::y [variable]
|
||||
@@ -2869,12 +2802,25 @@ def register_Ns3Vector2D_methods(root_module, cls):
|
||||
|
||||
def register_Ns3Vector3D_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('double', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('/', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('double', 'right'))
|
||||
## vector.h (module 'core'): ns3::Vector3D::Vector3D(ns3::Vector3D const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Vector3D const &', 'arg0')])
|
||||
## vector.h (module 'core'): ns3::Vector3D::Vector3D(double _x, double _y, double _z) [constructor]
|
||||
cls.add_constructor([param('double', '_x'), param('double', '_y'), param('double', '_z')])
|
||||
## vector.h (module 'core'): ns3::Vector3D::Vector3D() [constructor]
|
||||
cls.add_constructor([])
|
||||
## vector.h (module 'core'): double ns3::Vector3D::GetLength() const [member function]
|
||||
cls.add_method('GetLength',
|
||||
'double',
|
||||
[],
|
||||
is_const=True)
|
||||
## vector.h (module 'core'): ns3::Vector3D::x [variable]
|
||||
cls.add_instance_attribute('x', 'double', is_const=False)
|
||||
## vector.h (module 'core'): ns3::Vector3D::y [variable]
|
||||
@@ -4235,6 +4181,39 @@ def register_Ns3SpectrumValue_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Time_methods(root_module, cls):
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
@@ -6049,11 +6028,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('AddHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Ptr<const ns3::Tag> tag) [member function]
|
||||
cls.add_method('AddPacketTag',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
[param('ns3::Ptr< ns3::Tag const >', 'tag')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
|
||||
cls.add_method('AddPaddingAtEnd',
|
||||
'void',
|
||||
@@ -6112,11 +6090,6 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::NixVector >',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
|
||||
cls.add_method('GetPacketTagIterator',
|
||||
'ns3::PacketTagIterator',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
@@ -6142,10 +6115,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::PeekPacketTag(ns3::TypeId tagType) const [member function]
|
||||
cls.add_method('PeekPacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('PeekTrailer',
|
||||
@@ -6186,10 +6159,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('RemoveHeader',
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')])
|
||||
## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::RemovePacketTag(ns3::TypeId tagType) [member function]
|
||||
cls.add_method('RemovePacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')])
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('RemoveTrailer',
|
||||
'uint32_t',
|
||||
|
||||
@@ -96,24 +96,16 @@ def register_types(module):
|
||||
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
|
||||
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
|
||||
module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator [class]
|
||||
module.add_class('PacketTagIterator', import_from_module='ns.network')
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
|
||||
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
|
||||
module.add_class('PacketTagList', import_from_module='ns.network')
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
|
||||
module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
|
||||
## random-variable.h (module 'core'): ns3::RandomVariable [class]
|
||||
module.add_class('RandomVariable', import_from_module='ns.core')
|
||||
## random-variable.h (module 'core'): ns3::SeedManager [class]
|
||||
module.add_class('SeedManager', import_from_module='ns.core')
|
||||
## random-variable.h (module 'core'): ns3::SequentialVariable [class]
|
||||
module.add_class('SequentialVariable', import_from_module='ns.core', parent=root_module['ns3::RandomVariable'])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Chunk', 'ns3::ObjectBase', 'ns3::DefaultDeleter<ns3::Chunk>'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
|
||||
module.add_class('TagBuffer', import_from_module='ns.network')
|
||||
## wimax-tlv.h (module 'wimax'): ns3::TlvValue [class]
|
||||
@@ -155,7 +147,7 @@ def register_types(module):
|
||||
## int64x64-double.h (module 'core'): ns3::int64x64_t [class]
|
||||
module.add_class('int64x64_t', import_from_module='ns.core')
|
||||
## chunk.h (module 'network'): ns3::Chunk [class]
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
## wimax-tlv.h (module 'wimax'): ns3::ClassificationRuleVectorTlvValue [class]
|
||||
module.add_class('ClassificationRuleVectorTlvValue', import_from_module='ns.wimax', parent=root_module['ns3::VectorTlvValue'])
|
||||
## wimax-tlv.h (module 'wimax'): ns3::ClassificationRuleVectorTlvValue::ClassificationRuleTlvType [enumeration]
|
||||
@@ -258,6 +250,8 @@ def register_types(module):
|
||||
module.add_class('SpectrumSignalParameters', import_from_module='ns.spectrum', parent=root_module['ns3::SimpleRefCount< ns3::SpectrumSignalParameters, ns3::empty, ns3::DefaultDeleter<ns3::SpectrumSignalParameters> >'])
|
||||
## spectrum-value.h (module 'spectrum'): ns3::SpectrumValue [class]
|
||||
module.add_class('SpectrumValue', import_from_module='ns.spectrum', parent=root_module['ns3::SimpleRefCount< ns3::SpectrumValue, ns3::empty, ns3::DefaultDeleter<ns3::SpectrumValue> >'])
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::Object'])
|
||||
## nstime.h (module 'core'): ns3::Time [class]
|
||||
module.add_class('Time', import_from_module='ns.core')
|
||||
## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
|
||||
@@ -442,29 +436,26 @@ def register_types(module):
|
||||
module.add_container('std::list< ns3::PdcchMapIdealControlMessage::IdealPdcchRecord >', 'ns3::PdcchMapIdealControlMessage::IdealPdcchRecord', container_type='list')
|
||||
module.add_container('std::list< ns3::CqiIdealControlMessage::CqiFeedback >', 'ns3::CqiIdealControlMessage::CqiFeedback', container_type='list')
|
||||
module.add_container('std::vector< ns3::Ptr< ns3::SpectrumPhy > >', 'ns3::Ptr< ns3::SpectrumPhy >', container_type='vector')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ns3::GenericPhyRxEndOkCallback')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >*', 'ns3::GenericPhyRxEndOkCallback*')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >&', 'ns3::GenericPhyRxEndOkCallback&')
|
||||
typehandlers.add_type_alias('std::vector< ns3::BandInfo, std::allocator< ns3::BandInfo > >', 'ns3::Bands')
|
||||
typehandlers.add_type_alias('std::vector< ns3::BandInfo, std::allocator< ns3::BandInfo > >*', 'ns3::Bands*')
|
||||
typehandlers.add_type_alias('std::vector< ns3::BandInfo, std::allocator< ns3::BandInfo > >&', 'ns3::Bands&')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue', 'ns3::VectorValue')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue*', 'ns3::VectorValue*')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue&', 'ns3::VectorValue&')
|
||||
module.add_typedef(root_module['ns3::Vector3DValue'], 'VectorValue')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) *', 'ns3::LogNodePrinter')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) **', 'ns3::LogNodePrinter*')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) *&', 'ns3::LogNodePrinter&')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ns3::GenericPhyTxEndCallback')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >*', 'ns3::GenericPhyTxEndCallback*')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >&', 'ns3::GenericPhyTxEndCallback&')
|
||||
typehandlers.add_type_alias('ns3::Vector3D', 'ns3::Vector')
|
||||
typehandlers.add_type_alias('ns3::Vector3D*', 'ns3::Vector*')
|
||||
typehandlers.add_type_alias('ns3::Vector3D&', 'ns3::Vector&')
|
||||
module.add_typedef(root_module['ns3::Vector3D'], 'Vector')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ns3::GenericPhyRxStartCallback')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >*', 'ns3::GenericPhyRxStartCallback*')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >&', 'ns3::GenericPhyRxStartCallback&')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue', 'ns3::VectorValue')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue*', 'ns3::VectorValue*')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue&', 'ns3::VectorValue&')
|
||||
module.add_typedef(root_module['ns3::Vector3DValue'], 'VectorValue')
|
||||
typehandlers.add_type_alias('uint32_t', 'ns3::SpectrumModelUid_t')
|
||||
typehandlers.add_type_alias('uint32_t*', 'ns3::SpectrumModelUid_t*')
|
||||
typehandlers.add_type_alias('uint32_t&', 'ns3::SpectrumModelUid_t&')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ns3::GenericPhyRxStartCallback')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >*', 'ns3::GenericPhyRxStartCallback*')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >&', 'ns3::GenericPhyRxStartCallback&')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) *', 'ns3::LogNodePrinter')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) **', 'ns3::LogNodePrinter*')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) *&', 'ns3::LogNodePrinter&')
|
||||
typehandlers.add_type_alias('ns3::Vector3DChecker', 'ns3::VectorChecker')
|
||||
typehandlers.add_type_alias('ns3::Vector3DChecker*', 'ns3::VectorChecker*')
|
||||
typehandlers.add_type_alias('ns3::Vector3DChecker&', 'ns3::VectorChecker&')
|
||||
@@ -472,18 +463,21 @@ def register_types(module):
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) *', 'ns3::LogTimePrinter')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) **', 'ns3::LogTimePrinter*')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) *&', 'ns3::LogTimePrinter&')
|
||||
typehandlers.add_type_alias('ns3::Callback< bool, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ns3::GenericPhyTxStartCallback')
|
||||
typehandlers.add_type_alias('ns3::Callback< bool, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >*', 'ns3::GenericPhyTxStartCallback*')
|
||||
typehandlers.add_type_alias('ns3::Callback< bool, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >&', 'ns3::GenericPhyTxStartCallback&')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ns3::GenericPhyRxEndErrorCallback')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >*', 'ns3::GenericPhyRxEndErrorCallback*')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >&', 'ns3::GenericPhyRxEndErrorCallback&')
|
||||
typehandlers.add_type_alias('std::vector< double, std::allocator< double > >', 'ns3::Values')
|
||||
typehandlers.add_type_alias('std::vector< double, std::allocator< double > >*', 'ns3::Values*')
|
||||
typehandlers.add_type_alias('std::vector< double, std::allocator< double > >&', 'ns3::Values&')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ns3::GenericPhyTxEndCallback')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >*', 'ns3::GenericPhyTxEndCallback*')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet const >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >&', 'ns3::GenericPhyTxEndCallback&')
|
||||
typehandlers.add_type_alias('ns3::Callback< bool, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ns3::GenericPhyTxStartCallback')
|
||||
typehandlers.add_type_alias('ns3::Callback< bool, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >*', 'ns3::GenericPhyTxStartCallback*')
|
||||
typehandlers.add_type_alias('ns3::Callback< bool, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >&', 'ns3::GenericPhyTxStartCallback&')
|
||||
typehandlers.add_type_alias('std::vector< ns3::BandInfo, std::allocator< ns3::BandInfo > >', 'ns3::Bands')
|
||||
typehandlers.add_type_alias('std::vector< ns3::BandInfo, std::allocator< ns3::BandInfo > >*', 'ns3::Bands*')
|
||||
typehandlers.add_type_alias('std::vector< ns3::BandInfo, std::allocator< ns3::BandInfo > >&', 'ns3::Bands&')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >', 'ns3::GenericPhyRxEndOkCallback')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >*', 'ns3::GenericPhyRxEndOkCallback*')
|
||||
typehandlers.add_type_alias('ns3::Callback< void, ns3::Ptr< ns3::Packet >, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty >&', 'ns3::GenericPhyRxEndOkCallback&')
|
||||
|
||||
## Register a nested module for the namespace FatalImpl
|
||||
|
||||
@@ -547,15 +541,11 @@ def register_methods(root_module):
|
||||
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_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
|
||||
register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
|
||||
register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
|
||||
register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
|
||||
register_Ns3RandomVariable_methods(root_module, root_module['ns3::RandomVariable'])
|
||||
register_Ns3SeedManager_methods(root_module, root_module['ns3::SeedManager'])
|
||||
register_Ns3SequentialVariable_methods(root_module, root_module['ns3::SequentialVariable'])
|
||||
register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
|
||||
register_Ns3TlvValue_methods(root_module, root_module['ns3::TlvValue'])
|
||||
register_Ns3TosTlvValue_methods(root_module, root_module['ns3::TosTlvValue'])
|
||||
@@ -622,6 +612,7 @@ def register_methods(root_module):
|
||||
register_Ns3SpectrumPropagationLossModel_methods(root_module, root_module['ns3::SpectrumPropagationLossModel'])
|
||||
register_Ns3SpectrumSignalParameters_methods(root_module, root_module['ns3::SpectrumSignalParameters'])
|
||||
register_Ns3SpectrumValue_methods(root_module, root_module['ns3::SpectrumValue'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3Time_methods(root_module, root_module['ns3::Time'])
|
||||
register_Ns3Tlv_methods(root_module, root_module['ns3::Tlv'])
|
||||
register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
|
||||
@@ -960,6 +951,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Next',
|
||||
'void',
|
||||
[param('uint32_t', 'delta')])
|
||||
## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function]
|
||||
cls.add_method('PeekU8',
|
||||
'uint8_t',
|
||||
[])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
|
||||
cls.add_method('Prev',
|
||||
'void',
|
||||
@@ -972,6 +967,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function]
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
|
||||
cls.add_method('ReadLsbtohU16',
|
||||
'uint16_t',
|
||||
@@ -1362,9 +1361,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
@@ -1999,6 +1998,21 @@ def register_Ns3NodeContainer_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::NodeContainer other) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::NodeContainer', 'other')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::Ptr<ns3::Node> node) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::Ptr< ns3::Node >', 'node')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(std::string nodeName) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('std::string', 'nodeName')],
|
||||
custom_name='__call__')
|
||||
return
|
||||
|
||||
def register_Ns3ObjectBase_methods(root_module, cls):
|
||||
@@ -2223,80 +2237,6 @@ def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIterator_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
|
||||
## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
|
||||
cls.add_method('HasNext',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::PacketTagIterator::Item',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
|
||||
## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('GetTag',
|
||||
'void',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagList_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
|
||||
cls.add_method('Add',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
|
||||
cls.add_method('Head',
|
||||
'ns3::PacketTagList::TagData const *',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('Peek',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
|
||||
cls.add_method('Remove',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
|
||||
cls.add_method('RemoveAll',
|
||||
'void',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagListTagData_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
|
||||
cls.add_instance_attribute('count', 'uint32_t', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
|
||||
cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
|
||||
cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
|
||||
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
|
||||
return
|
||||
|
||||
def register_Ns3RandomVariable_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## random-variable.h (module 'core'): ns3::RandomVariable::RandomVariable() [constructor]
|
||||
@@ -2356,6 +2296,18 @@ def register_Ns3SequentialVariable_methods(root_module, cls):
|
||||
cls.add_constructor([param('double', 'f'), param('double', 'l'), param('ns3::RandomVariable const &', 'i'), param('uint32_t', 'c', default_value='1')])
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter< ns3::Chunk > > const &', 'o')])
|
||||
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::Cleanup() [member function]
|
||||
cls.add_method('Cleanup',
|
||||
'void',
|
||||
[],
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -2368,38 +2320,6 @@ def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TagBuffer_methods(root_module, cls):
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
|
||||
@@ -2855,12 +2775,25 @@ def register_Ns3UniformVariable_methods(root_module, cls):
|
||||
|
||||
def register_Ns3Vector2D_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('double', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('/', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('double', 'right'))
|
||||
## vector.h (module 'core'): ns3::Vector2D::Vector2D(ns3::Vector2D const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Vector2D const &', 'arg0')])
|
||||
## vector.h (module 'core'): ns3::Vector2D::Vector2D(double _x, double _y) [constructor]
|
||||
cls.add_constructor([param('double', '_x'), param('double', '_y')])
|
||||
## vector.h (module 'core'): ns3::Vector2D::Vector2D() [constructor]
|
||||
cls.add_constructor([])
|
||||
## vector.h (module 'core'): double ns3::Vector2D::GetLength() const [member function]
|
||||
cls.add_method('GetLength',
|
||||
'double',
|
||||
[],
|
||||
is_const=True)
|
||||
## vector.h (module 'core'): ns3::Vector2D::x [variable]
|
||||
cls.add_instance_attribute('x', 'double', is_const=False)
|
||||
## vector.h (module 'core'): ns3::Vector2D::y [variable]
|
||||
@@ -2869,12 +2802,25 @@ def register_Ns3Vector2D_methods(root_module, cls):
|
||||
|
||||
def register_Ns3Vector3D_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('double', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('/', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('double', 'right'))
|
||||
## vector.h (module 'core'): ns3::Vector3D::Vector3D(ns3::Vector3D const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Vector3D const &', 'arg0')])
|
||||
## vector.h (module 'core'): ns3::Vector3D::Vector3D(double _x, double _y, double _z) [constructor]
|
||||
cls.add_constructor([param('double', '_x'), param('double', '_y'), param('double', '_z')])
|
||||
## vector.h (module 'core'): ns3::Vector3D::Vector3D() [constructor]
|
||||
cls.add_constructor([])
|
||||
## vector.h (module 'core'): double ns3::Vector3D::GetLength() const [member function]
|
||||
cls.add_method('GetLength',
|
||||
'double',
|
||||
[],
|
||||
is_const=True)
|
||||
## vector.h (module 'core'): ns3::Vector3D::x [variable]
|
||||
cls.add_instance_attribute('x', 'double', is_const=False)
|
||||
## vector.h (module 'core'): ns3::Vector3D::y [variable]
|
||||
@@ -4235,6 +4181,39 @@ def register_Ns3SpectrumValue_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Time_methods(root_module, cls):
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
@@ -6049,11 +6028,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('AddHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Ptr<const ns3::Tag> tag) [member function]
|
||||
cls.add_method('AddPacketTag',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
[param('ns3::Ptr< ns3::Tag const >', 'tag')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
|
||||
cls.add_method('AddPaddingAtEnd',
|
||||
'void',
|
||||
@@ -6112,11 +6090,6 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::NixVector >',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
|
||||
cls.add_method('GetPacketTagIterator',
|
||||
'ns3::PacketTagIterator',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
@@ -6142,10 +6115,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::PeekPacketTag(ns3::TypeId tagType) const [member function]
|
||||
cls.add_method('PeekPacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('PeekTrailer',
|
||||
@@ -6186,10 +6159,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('RemoveHeader',
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')])
|
||||
## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::RemovePacketTag(ns3::TypeId tagType) [member function]
|
||||
cls.add_method('RemovePacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')])
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('RemoveTrailer',
|
||||
'uint32_t',
|
||||
|
||||
@@ -118,14 +118,6 @@ def register_types(module):
|
||||
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
|
||||
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
|
||||
module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator [class]
|
||||
module.add_class('PacketTagIterator', import_from_module='ns.network')
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
|
||||
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
|
||||
module.add_class('PacketTagList', import_from_module='ns.network')
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
|
||||
module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
|
||||
## pcap-file.h (module 'network'): ns3::PcapFile [class]
|
||||
module.add_class('PcapFile', import_from_module='ns.network')
|
||||
## trace-helper.h (module 'network'): ns3::PcapHelper [class]
|
||||
@@ -134,14 +126,14 @@ def register_types(module):
|
||||
module.add_enum('', ['DLT_NULL', 'DLT_EN10MB', 'DLT_PPP', 'DLT_RAW', 'DLT_IEEE802_11', 'DLT_PRISM_HEADER', 'DLT_IEEE802_11_RADIO'], outer_class=root_module['ns3::PcapHelper'], import_from_module='ns.network')
|
||||
## trace-helper.h (module 'network'): ns3::PcapHelperForDevice [class]
|
||||
module.add_class('PcapHelperForDevice', allow_subclassing=True, import_from_module='ns.network')
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Chunk', 'ns3::ObjectBase', 'ns3::DefaultDeleter<ns3::Chunk>'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simulator.h (module 'core'): ns3::Simulator [class]
|
||||
module.add_class('Simulator', destructor_visibility='private', import_from_module='ns.core')
|
||||
## status-code.h (module 'wifi'): ns3::StatusCode [class]
|
||||
module.add_class('StatusCode', import_from_module='ns.wifi')
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
|
||||
module.add_class('TagBuffer', import_from_module='ns.network')
|
||||
## type-id.h (module 'core'): ns3::TypeId [class]
|
||||
@@ -177,7 +169,7 @@ def register_types(module):
|
||||
## int64x64-double.h (module 'core'): ns3::int64x64_t [class]
|
||||
module.add_class('int64x64_t', import_from_module='ns.core')
|
||||
## chunk.h (module 'network'): ns3::Chunk [class]
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
## header.h (module 'network'): ns3::Header [class]
|
||||
module.add_class('Header', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
|
||||
## mgt-headers.h (module 'wifi'): ns3::MgtAddBaRequestHeader [class]
|
||||
@@ -226,6 +218,8 @@ def register_types(module):
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, template_parameters=['ns3::dot11s::DestinationAddressUnit', 'ns3::empty', 'ns3::DefaultDeleter<ns3::dot11s::DestinationAddressUnit>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::dot11s::IeBeaconTimingUnit, ns3::empty, ns3::DefaultDeleter<ns3::dot11s::IeBeaconTimingUnit> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, template_parameters=['ns3::dot11s::IeBeaconTimingUnit', 'ns3::empty', 'ns3::DefaultDeleter<ns3::dot11s::IeBeaconTimingUnit>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::Object'])
|
||||
## nstime.h (module 'core'): ns3::Time [class]
|
||||
module.add_class('Time', import_from_module='ns.core')
|
||||
## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
|
||||
@@ -567,17 +561,13 @@ def register_methods(root_module):
|
||||
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_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
|
||||
register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
|
||||
register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
|
||||
register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
|
||||
register_Ns3PcapFile_methods(root_module, root_module['ns3::PcapFile'])
|
||||
register_Ns3PcapHelper_methods(root_module, root_module['ns3::PcapHelper'])
|
||||
register_Ns3PcapHelperForDevice_methods(root_module, root_module['ns3::PcapHelperForDevice'])
|
||||
register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
|
||||
register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator'])
|
||||
register_Ns3StatusCode_methods(root_module, root_module['ns3::StatusCode'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
|
||||
register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
|
||||
register_Ns3TypeIdAttributeInformation_methods(root_module, root_module['ns3::TypeId::AttributeInformation'])
|
||||
@@ -618,6 +608,7 @@ def register_methods(root_module):
|
||||
register_Ns3SimpleRefCount__Ns3WifiInformationElement_Ns3Empty_Ns3DefaultDeleter__lt__ns3WifiInformationElement__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::WifiInformationElement, ns3::empty, ns3::DefaultDeleter<ns3::WifiInformationElement> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Dot11sDestinationAddressUnit_Ns3Empty_Ns3DefaultDeleter__lt__ns3Dot11sDestinationAddressUnit__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::dot11s::DestinationAddressUnit, ns3::empty, ns3::DefaultDeleter<ns3::dot11s::DestinationAddressUnit> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Dot11sIeBeaconTimingUnit_Ns3Empty_Ns3DefaultDeleter__lt__ns3Dot11sIeBeaconTimingUnit__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::dot11s::IeBeaconTimingUnit, ns3::empty, ns3::DefaultDeleter<ns3::dot11s::IeBeaconTimingUnit> >'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3Time_methods(root_module, root_module['ns3::Time'])
|
||||
register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
|
||||
register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
|
||||
@@ -1302,6 +1293,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Next',
|
||||
'void',
|
||||
[param('uint32_t', 'delta')])
|
||||
## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function]
|
||||
cls.add_method('PeekU8',
|
||||
'uint8_t',
|
||||
[])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
|
||||
cls.add_method('Prev',
|
||||
'void',
|
||||
@@ -1314,6 +1309,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function]
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
|
||||
cls.add_method('ReadLsbtohU16',
|
||||
'uint16_t',
|
||||
@@ -1647,9 +1646,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
@@ -2278,6 +2277,21 @@ def register_Ns3NodeContainer_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::NodeContainer other) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::NodeContainer', 'other')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::Ptr<ns3::Node> node) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::Ptr< ns3::Node >', 'node')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(std::string nodeName) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('std::string', 'nodeName')],
|
||||
custom_name='__call__')
|
||||
return
|
||||
|
||||
def register_Ns3ObjectBase_methods(root_module, cls):
|
||||
@@ -2548,80 +2562,6 @@ def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIterator_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
|
||||
## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
|
||||
cls.add_method('HasNext',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::PacketTagIterator::Item',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
|
||||
## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('GetTag',
|
||||
'void',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagList_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
|
||||
cls.add_method('Add',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
|
||||
cls.add_method('Head',
|
||||
'ns3::PacketTagList::TagData const *',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('Peek',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
|
||||
cls.add_method('Remove',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
|
||||
cls.add_method('RemoveAll',
|
||||
'void',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagListTagData_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
|
||||
cls.add_instance_attribute('count', 'uint32_t', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
|
||||
cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
|
||||
cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
|
||||
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
|
||||
return
|
||||
|
||||
def register_Ns3PcapFile_methods(root_module, cls):
|
||||
## pcap-file.h (module 'network'): ns3::PcapFile::PcapFile() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -2765,6 +2705,18 @@ def register_Ns3PcapHelperForDevice_methods(root_module, cls):
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter< ns3::Chunk > > const &', 'o')])
|
||||
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::Cleanup() [member function]
|
||||
cls.add_method('Cleanup',
|
||||
'void',
|
||||
[],
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -2825,11 +2777,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'bool',
|
||||
[],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::Time',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Now() [member function]
|
||||
cls.add_method('Now',
|
||||
'ns3::Time',
|
||||
@@ -2840,11 +2787,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'void',
|
||||
[param('ns3::EventId const &', 'id')],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::RunOneEvent() [member function]
|
||||
cls.add_method('RunOneEvent',
|
||||
'void',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::SetImplementation(ns3::Ptr<ns3::SimulatorImpl> impl) [member function]
|
||||
cls.add_method('SetImplementation',
|
||||
'void',
|
||||
@@ -2902,38 +2844,6 @@ def register_Ns3StatusCode_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TagBuffer_methods(root_module, cls):
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
|
||||
@@ -3395,7 +3305,6 @@ def register_Ns3Empty_methods(root_module, cls):
|
||||
|
||||
def register_Ns3Int64x64_t_methods(root_module, cls):
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long long unsigned int const', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long unsigned int const', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('unsigned int const', 'right'))
|
||||
@@ -3448,6 +3357,7 @@ def register_Ns3Int64x64_t_methods(root_module, cls):
|
||||
cls.add_binary_comparison_operator('<')
|
||||
cls.add_binary_comparison_operator('>')
|
||||
cls.add_inplace_numeric_operator('*=', param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('-=', param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('/=', param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_output_stream_operator()
|
||||
@@ -4342,13 +4252,46 @@ def register_Ns3SimpleRefCount__Ns3Dot11sIeBeaconTimingUnit_Ns3Empty_Ns3DefaultD
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Time_methods(root_module, cls):
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_comparison_operator('<')
|
||||
cls.add_binary_comparison_operator('>')
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::Time const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('-=', param('ns3::Time const &', 'right'))
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_comparison_operator('<=')
|
||||
@@ -7605,11 +7548,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('AddHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Ptr<const ns3::Tag> tag) [member function]
|
||||
cls.add_method('AddPacketTag',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
[param('ns3::Ptr< ns3::Tag const >', 'tag')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
|
||||
cls.add_method('AddPaddingAtEnd',
|
||||
'void',
|
||||
@@ -7668,11 +7610,6 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::NixVector >',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
|
||||
cls.add_method('GetPacketTagIterator',
|
||||
'ns3::PacketTagIterator',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
@@ -7698,10 +7635,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::PeekPacketTag(ns3::TypeId tagType) const [member function]
|
||||
cls.add_method('PeekPacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('PeekTrailer',
|
||||
@@ -7742,10 +7679,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('RemoveHeader',
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')])
|
||||
## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::RemovePacketTag(ns3::TypeId tagType) [member function]
|
||||
cls.add_method('RemovePacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')])
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('RemoveTrailer',
|
||||
'uint32_t',
|
||||
|
||||
@@ -30,10 +30,10 @@ def register_types(module):
|
||||
module.add_enum('WifiPhyStandard', ['WIFI_PHY_STANDARD_80211a', 'WIFI_PHY_STANDARD_80211b', 'WIFI_PHY_STANDARD_80211g', 'WIFI_PHY_STANDARD_80211_10MHZ', 'WIFI_PHY_STANDARD_80211_5MHZ', 'WIFI_PHY_STANDARD_holland', 'WIFI_PHY_STANDARD_80211p_CCH', 'WIFI_PHY_STANDARD_80211p_SCH'], import_from_module='ns.wifi')
|
||||
## wifi-mode.h (module 'wifi'): ns3::WifiCodeRate [enumeration]
|
||||
module.add_enum('WifiCodeRate', ['WIFI_CODE_RATE_UNDEFINED', 'WIFI_CODE_RATE_3_4', 'WIFI_CODE_RATE_2_3', 'WIFI_CODE_RATE_1_2'], import_from_module='ns.wifi')
|
||||
## qos-utils.h (module 'wifi'): ns3::AcIndex [enumeration]
|
||||
module.add_enum('AcIndex', ['AC_BE', 'AC_BK', 'AC_VI', 'AC_VO', 'AC_BE_NQOS', 'AC_UNDEF'], import_from_module='ns.wifi')
|
||||
## edca-txop-n.h (module 'wifi'): ns3::TypeOfStation [enumeration]
|
||||
module.add_enum('TypeOfStation', ['STA', 'AP', 'ADHOC_STA', 'MESH'], import_from_module='ns.wifi')
|
||||
## qos-utils.h (module 'wifi'): ns3::AcIndex [enumeration]
|
||||
module.add_enum('AcIndex', ['AC_BE', 'AC_BK', 'AC_VI', 'AC_VO', 'AC_BE_NQOS', 'AC_UNDEF'], import_from_module='ns.wifi')
|
||||
## ctrl-headers.h (module 'wifi'): ns3::BlockAckType [enumeration]
|
||||
module.add_enum('BlockAckType', ['BASIC_BLOCK_ACK', 'COMPRESSED_BLOCK_ACK', 'MULTI_TID_BLOCK_ACK'], import_from_module='ns.wifi')
|
||||
## address.h (module 'network'): ns3::Address [class]
|
||||
@@ -118,14 +118,6 @@ def register_types(module):
|
||||
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
|
||||
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
|
||||
module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator [class]
|
||||
module.add_class('PacketTagIterator', import_from_module='ns.network')
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
|
||||
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
|
||||
module.add_class('PacketTagList', import_from_module='ns.network')
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
|
||||
module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
|
||||
## pcap-file.h (module 'network'): ns3::PcapFile [class]
|
||||
module.add_class('PcapFile', import_from_module='ns.network')
|
||||
## trace-helper.h (module 'network'): ns3::PcapHelper [class]
|
||||
@@ -134,14 +126,14 @@ def register_types(module):
|
||||
module.add_enum('', ['DLT_NULL', 'DLT_EN10MB', 'DLT_PPP', 'DLT_RAW', 'DLT_IEEE802_11', 'DLT_PRISM_HEADER', 'DLT_IEEE802_11_RADIO'], outer_class=root_module['ns3::PcapHelper'], import_from_module='ns.network')
|
||||
## trace-helper.h (module 'network'): ns3::PcapHelperForDevice [class]
|
||||
module.add_class('PcapHelperForDevice', allow_subclassing=True, import_from_module='ns.network')
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Chunk', 'ns3::ObjectBase', 'ns3::DefaultDeleter<ns3::Chunk>'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simulator.h (module 'core'): ns3::Simulator [class]
|
||||
module.add_class('Simulator', destructor_visibility='private', import_from_module='ns.core')
|
||||
## status-code.h (module 'wifi'): ns3::StatusCode [class]
|
||||
module.add_class('StatusCode', import_from_module='ns.wifi')
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
|
||||
module.add_class('TagBuffer', import_from_module='ns.network')
|
||||
## type-id.h (module 'core'): ns3::TypeId [class]
|
||||
@@ -177,7 +169,7 @@ def register_types(module):
|
||||
## int64x64-double.h (module 'core'): ns3::int64x64_t [class]
|
||||
module.add_class('int64x64_t', import_from_module='ns.core')
|
||||
## chunk.h (module 'network'): ns3::Chunk [class]
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
## header.h (module 'network'): ns3::Header [class]
|
||||
module.add_class('Header', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
|
||||
## mgt-headers.h (module 'wifi'): ns3::MgtAddBaRequestHeader [class]
|
||||
@@ -226,6 +218,8 @@ def register_types(module):
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, template_parameters=['ns3::dot11s::DestinationAddressUnit', 'ns3::empty', 'ns3::DefaultDeleter<ns3::dot11s::DestinationAddressUnit>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::dot11s::IeBeaconTimingUnit, ns3::empty, ns3::DefaultDeleter<ns3::dot11s::IeBeaconTimingUnit> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, template_parameters=['ns3::dot11s::IeBeaconTimingUnit', 'ns3::empty', 'ns3::DefaultDeleter<ns3::dot11s::IeBeaconTimingUnit>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::Object'])
|
||||
## nstime.h (module 'core'): ns3::Time [class]
|
||||
module.add_class('Time', import_from_module='ns.core')
|
||||
## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
|
||||
@@ -567,17 +561,13 @@ def register_methods(root_module):
|
||||
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_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
|
||||
register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
|
||||
register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
|
||||
register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
|
||||
register_Ns3PcapFile_methods(root_module, root_module['ns3::PcapFile'])
|
||||
register_Ns3PcapHelper_methods(root_module, root_module['ns3::PcapHelper'])
|
||||
register_Ns3PcapHelperForDevice_methods(root_module, root_module['ns3::PcapHelperForDevice'])
|
||||
register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
|
||||
register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator'])
|
||||
register_Ns3StatusCode_methods(root_module, root_module['ns3::StatusCode'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
|
||||
register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
|
||||
register_Ns3TypeIdAttributeInformation_methods(root_module, root_module['ns3::TypeId::AttributeInformation'])
|
||||
@@ -618,6 +608,7 @@ def register_methods(root_module):
|
||||
register_Ns3SimpleRefCount__Ns3WifiInformationElement_Ns3Empty_Ns3DefaultDeleter__lt__ns3WifiInformationElement__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::WifiInformationElement, ns3::empty, ns3::DefaultDeleter<ns3::WifiInformationElement> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Dot11sDestinationAddressUnit_Ns3Empty_Ns3DefaultDeleter__lt__ns3Dot11sDestinationAddressUnit__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::dot11s::DestinationAddressUnit, ns3::empty, ns3::DefaultDeleter<ns3::dot11s::DestinationAddressUnit> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Dot11sIeBeaconTimingUnit_Ns3Empty_Ns3DefaultDeleter__lt__ns3Dot11sIeBeaconTimingUnit__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::dot11s::IeBeaconTimingUnit, ns3::empty, ns3::DefaultDeleter<ns3::dot11s::IeBeaconTimingUnit> >'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3Time_methods(root_module, root_module['ns3::Time'])
|
||||
register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
|
||||
register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
|
||||
@@ -1302,6 +1293,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Next',
|
||||
'void',
|
||||
[param('uint32_t', 'delta')])
|
||||
## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function]
|
||||
cls.add_method('PeekU8',
|
||||
'uint8_t',
|
||||
[])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
|
||||
cls.add_method('Prev',
|
||||
'void',
|
||||
@@ -1314,6 +1309,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function]
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
|
||||
cls.add_method('ReadLsbtohU16',
|
||||
'uint16_t',
|
||||
@@ -1647,9 +1646,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
@@ -2278,6 +2277,21 @@ def register_Ns3NodeContainer_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::NodeContainer other) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::NodeContainer', 'other')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::Ptr<ns3::Node> node) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::Ptr< ns3::Node >', 'node')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(std::string nodeName) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('std::string', 'nodeName')],
|
||||
custom_name='__call__')
|
||||
return
|
||||
|
||||
def register_Ns3ObjectBase_methods(root_module, cls):
|
||||
@@ -2548,80 +2562,6 @@ def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIterator_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
|
||||
## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
|
||||
cls.add_method('HasNext',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::PacketTagIterator::Item',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
|
||||
## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('GetTag',
|
||||
'void',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagList_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
|
||||
cls.add_method('Add',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
|
||||
cls.add_method('Head',
|
||||
'ns3::PacketTagList::TagData const *',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('Peek',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
|
||||
cls.add_method('Remove',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
|
||||
cls.add_method('RemoveAll',
|
||||
'void',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagListTagData_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
|
||||
cls.add_instance_attribute('count', 'uint32_t', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
|
||||
cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
|
||||
cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
|
||||
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
|
||||
return
|
||||
|
||||
def register_Ns3PcapFile_methods(root_module, cls):
|
||||
## pcap-file.h (module 'network'): ns3::PcapFile::PcapFile() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -2765,6 +2705,18 @@ def register_Ns3PcapHelperForDevice_methods(root_module, cls):
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter< ns3::Chunk > > const &', 'o')])
|
||||
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::Cleanup() [member function]
|
||||
cls.add_method('Cleanup',
|
||||
'void',
|
||||
[],
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -2825,11 +2777,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'bool',
|
||||
[],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::Time',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Now() [member function]
|
||||
cls.add_method('Now',
|
||||
'ns3::Time',
|
||||
@@ -2840,11 +2787,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'void',
|
||||
[param('ns3::EventId const &', 'id')],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::RunOneEvent() [member function]
|
||||
cls.add_method('RunOneEvent',
|
||||
'void',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::SetImplementation(ns3::Ptr<ns3::SimulatorImpl> impl) [member function]
|
||||
cls.add_method('SetImplementation',
|
||||
'void',
|
||||
@@ -2902,38 +2844,6 @@ def register_Ns3StatusCode_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TagBuffer_methods(root_module, cls):
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
|
||||
@@ -3395,7 +3305,6 @@ def register_Ns3Empty_methods(root_module, cls):
|
||||
|
||||
def register_Ns3Int64x64_t_methods(root_module, cls):
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long long unsigned int const', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('long unsigned int const', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::int64x64_t'], root_module['ns3::int64x64_t'], param('unsigned int const', 'right'))
|
||||
@@ -3448,6 +3357,7 @@ def register_Ns3Int64x64_t_methods(root_module, cls):
|
||||
cls.add_binary_comparison_operator('<')
|
||||
cls.add_binary_comparison_operator('>')
|
||||
cls.add_inplace_numeric_operator('*=', param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('-=', param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('/=', param('ns3::int64x64_t const &', 'right'))
|
||||
cls.add_output_stream_operator()
|
||||
@@ -4342,13 +4252,46 @@ def register_Ns3SimpleRefCount__Ns3Dot11sIeBeaconTimingUnit_Ns3Empty_Ns3DefaultD
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Time_methods(root_module, cls):
|
||||
cls.add_binary_comparison_operator('!=')
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_comparison_operator('<')
|
||||
cls.add_binary_comparison_operator('>')
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::Time const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('-=', param('ns3::Time const &', 'right'))
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_comparison_operator('<=')
|
||||
@@ -7605,11 +7548,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('AddHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Ptr<const ns3::Tag> tag) [member function]
|
||||
cls.add_method('AddPacketTag',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
[param('ns3::Ptr< ns3::Tag const >', 'tag')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
|
||||
cls.add_method('AddPaddingAtEnd',
|
||||
'void',
|
||||
@@ -7668,11 +7610,6 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::NixVector >',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
|
||||
cls.add_method('GetPacketTagIterator',
|
||||
'ns3::PacketTagIterator',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
@@ -7698,10 +7635,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::PeekPacketTag(ns3::TypeId tagType) const [member function]
|
||||
cls.add_method('PeekPacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('PeekTrailer',
|
||||
@@ -7742,10 +7679,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('RemoveHeader',
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')])
|
||||
## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::RemovePacketTag(ns3::TypeId tagType) [member function]
|
||||
cls.add_method('RemovePacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')])
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('RemoveTrailer',
|
||||
'uint32_t',
|
||||
|
||||
@@ -55,8 +55,7 @@ HwmpProtocolMac::ReceiveData (Ptr<Packet> packet, const WifiMacHeader & header)
|
||||
NS_ASSERT (header.IsData ());
|
||||
|
||||
MeshHeader meshHdr;
|
||||
HwmpTag tag;
|
||||
if (packet->PeekPacketTag (tag))
|
||||
if (packet->PeekPacketTag<HwmpTag> () != 0)
|
||||
{
|
||||
NS_FATAL_ERROR ("HWMP tag is not supposed to be received by network");
|
||||
}
|
||||
@@ -78,8 +77,9 @@ HwmpProtocolMac::ReceiveData (Ptr<Packet> packet, const WifiMacHeader & header)
|
||||
NS_FATAL_ERROR (
|
||||
"6-address scheme is not yet supported and 4-address extension is not supposed to be used for data frames.");
|
||||
}
|
||||
tag.SetSeqno (meshHdr.GetMeshSeqno ());
|
||||
tag.SetTtl (meshHdr.GetMeshTtl ());
|
||||
Ptr<HwmpTag> tag = CreateObject<HwmpTag> ();
|
||||
tag->SetSeqno (meshHdr.GetMeshSeqno ());
|
||||
tag->SetTtl (meshHdr.GetMeshTtl ());
|
||||
packet->AddPacketTag (tag);
|
||||
|
||||
if ((destination == Mac48Address::GetBroadcast ()) && (m_protocol->DropDataFrame (meshHdr.GetMeshSeqno (),
|
||||
@@ -188,19 +188,18 @@ HwmpProtocolMac::UpdateOutcomingFrame (Ptr<Packet> packet, WifiMacHeader & heade
|
||||
{
|
||||
return true;
|
||||
}
|
||||
HwmpTag tag;
|
||||
bool tagExists = packet->RemovePacketTag (tag);
|
||||
if (!tagExists)
|
||||
Ptr<const HwmpTag> tag = packet->RemovePacketTag<HwmpTag> ();
|
||||
if (tag == 0)
|
||||
{
|
||||
NS_FATAL_ERROR ("HWMP tag must exist at this point");
|
||||
}
|
||||
m_stats.txData++;
|
||||
m_stats.txDataBytes += packet->GetSize ();
|
||||
MeshHeader meshHdr;
|
||||
meshHdr.SetMeshSeqno (tag.GetSeqno ());
|
||||
meshHdr.SetMeshTtl (tag.GetTtl ());
|
||||
meshHdr.SetMeshSeqno (tag->GetSeqno ());
|
||||
meshHdr.SetMeshTtl (tag->GetTtl ());
|
||||
packet->AddHeader (meshHdr);
|
||||
header.SetAddr1 (tag.GetAddress ());
|
||||
header.SetAddr1 (tag->GetAddress ());
|
||||
return true;
|
||||
}
|
||||
WifiActionHeader
|
||||
|
||||
@@ -233,29 +233,32 @@ HwmpProtocol::RequestRoute (
|
||||
)
|
||||
{
|
||||
Ptr <Packet> packet = constPacket->Copy ();
|
||||
HwmpTag tag;
|
||||
Ptr<HwmpTag> tag = 0;
|
||||
if (sourceIface == GetMeshPoint ()->GetIfIndex ())
|
||||
{
|
||||
// packet from level 3
|
||||
if (packet->PeekPacketTag (tag))
|
||||
if (packet->PeekPacketTag<HwmpTag> () != 0)
|
||||
{
|
||||
NS_FATAL_ERROR ("HWMP tag has come with a packet from upper layer. This must not occur...");
|
||||
}
|
||||
tag = CreateObject<HwmpTag> ();
|
||||
//Filling TAG:
|
||||
if (destination == Mac48Address::GetBroadcast ())
|
||||
{
|
||||
tag.SetSeqno (m_dataSeqno++);
|
||||
tag->SetSeqno (m_dataSeqno++);
|
||||
}
|
||||
tag.SetTtl (m_maxTtl);
|
||||
tag->SetTtl (m_maxTtl);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!packet->RemovePacketTag (tag))
|
||||
Ptr<const HwmpTag> origTag = packet->RemovePacketTag<HwmpTag> ();
|
||||
if (!packet->RemovePacketTag<HwmpTag> ())
|
||||
{
|
||||
NS_FATAL_ERROR ("HWMP tag is supposed to be here at this point.");
|
||||
}
|
||||
tag.DecrementTtl ();
|
||||
if (tag.GetTtl () == 0)
|
||||
tag = CreateObject<HwmpTag> (*origTag);
|
||||
tag->DecrementTtl ();
|
||||
if (tag->GetTtl () == 0)
|
||||
{
|
||||
m_stats.droppedTtl++;
|
||||
return false;
|
||||
@@ -287,11 +290,11 @@ HwmpProtocol::RequestRoute (
|
||||
{
|
||||
Ptr<Packet> packetCopy = packet->Copy ();
|
||||
//
|
||||
// 64-bit Intel valgrind complains about tag.SetAddress (*i). It
|
||||
// 64-bit Intel valgrind complains about tag->SetAddress (*i). It
|
||||
// likes this just fine.
|
||||
//
|
||||
Mac48Address address = *i;
|
||||
tag.SetAddress (address);
|
||||
tag->SetAddress (address);
|
||||
packetCopy->AddPacketTag (tag);
|
||||
routeReply (true, packetCopy, source, destination, protocolType, plugin->first);
|
||||
}
|
||||
@@ -299,7 +302,7 @@ HwmpProtocol::RequestRoute (
|
||||
}
|
||||
else
|
||||
{
|
||||
return ForwardUnicast (sourceIface, source, destination, packet, protocolType, routeReply, tag.GetTtl ());
|
||||
return ForwardUnicast (sourceIface, source, destination, packet, protocolType, routeReply, tag->GetTtl ());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -307,8 +310,8 @@ bool
|
||||
HwmpProtocol::RemoveRoutingStuff (uint32_t fromIface, const Mac48Address source,
|
||||
const Mac48Address destination, Ptr<Packet> packet, uint16_t& protocolType)
|
||||
{
|
||||
HwmpTag tag;
|
||||
if (!packet->RemovePacketTag (tag))
|
||||
Ptr<const HwmpTag> tag = packet->RemovePacketTag<HwmpTag> ();
|
||||
if (tag == 0)
|
||||
{
|
||||
NS_FATAL_ERROR ("HWMP tag must exist when packet received from the network");
|
||||
}
|
||||
@@ -325,9 +328,9 @@ HwmpProtocol::ForwardUnicast (uint32_t sourceIface, const Mac48Address source,
|
||||
{
|
||||
result = m_rtable->LookupProactive ();
|
||||
}
|
||||
HwmpTag tag;
|
||||
tag.SetAddress (result.retransmitter);
|
||||
tag.SetTtl (ttl);
|
||||
Ptr<HwmpTag> tag = CreateObject<HwmpTag> ();
|
||||
tag->SetAddress (result.retransmitter);
|
||||
tag->SetTtl (ttl);
|
||||
//seqno and metric is not used;
|
||||
packet->AddPacketTag (tag);
|
||||
if (result.retransmitter != Mac48Address::GetBroadcast ())
|
||||
@@ -921,9 +924,13 @@ HwmpProtocol::ReactivePathResolved (Mac48Address dst)
|
||||
while (packet.pkt != 0)
|
||||
{
|
||||
//set RA tag for retransmitter:
|
||||
HwmpTag tag;
|
||||
packet.pkt->RemovePacketTag (tag);
|
||||
tag.SetAddress (result.retransmitter);
|
||||
Ptr<const HwmpTag> origTag = packet.pkt->RemovePacketTag<HwmpTag> ();
|
||||
if (origTag == 0)
|
||||
{
|
||||
NS_FATAL_ERROR ("HWMP tag must be present at this point");
|
||||
}
|
||||
Ptr<HwmpTag> tag = CreateObject<HwmpTag> (*origTag);
|
||||
tag->SetAddress (result.retransmitter);
|
||||
packet.pkt->AddPacketTag (tag);
|
||||
m_stats.txUnicast++;
|
||||
m_stats.txBytes += packet.pkt->GetSize ();
|
||||
@@ -942,12 +949,13 @@ HwmpProtocol::ProactivePathResolved ()
|
||||
while (packet.pkt != 0)
|
||||
{
|
||||
//set RA tag for retransmitter:
|
||||
HwmpTag tag;
|
||||
if (!packet.pkt->RemovePacketTag (tag))
|
||||
Ptr<const HwmpTag> origTag = packet.pkt->RemovePacketTag<HwmpTag> ();
|
||||
if (origTag == 0)
|
||||
{
|
||||
NS_FATAL_ERROR ("HWMP tag must be present at this point");
|
||||
}
|
||||
tag.SetAddress (result.retransmitter);
|
||||
Ptr<HwmpTag> tag = CreateObject<HwmpTag> (*origTag);
|
||||
tag->SetAddress (result.retransmitter);
|
||||
packet.pkt->AddPacketTag (tag);
|
||||
m_stats.txUnicast++;
|
||||
m_stats.txBytes += packet.pkt->GetSize ();
|
||||
|
||||
@@ -41,7 +41,7 @@ HwmpTag::SetAddress (Mac48Address retransmitter)
|
||||
}
|
||||
|
||||
Mac48Address
|
||||
HwmpTag::GetAddress ()
|
||||
HwmpTag::GetAddress () const
|
||||
{
|
||||
return m_address;
|
||||
}
|
||||
@@ -53,7 +53,7 @@ HwmpTag::SetTtl (uint8_t ttl)
|
||||
}
|
||||
|
||||
uint8_t
|
||||
HwmpTag::GetTtl ()
|
||||
HwmpTag::GetTtl () const
|
||||
{
|
||||
return m_ttl;
|
||||
}
|
||||
@@ -65,7 +65,7 @@ HwmpTag::SetMetric (uint32_t metric)
|
||||
}
|
||||
|
||||
uint32_t
|
||||
HwmpTag::GetMetric ()
|
||||
HwmpTag::GetMetric () const
|
||||
{
|
||||
return m_metric;
|
||||
}
|
||||
@@ -77,7 +77,7 @@ HwmpTag::SetSeqno (uint32_t seqno)
|
||||
}
|
||||
|
||||
uint32_t
|
||||
HwmpTag::GetSeqno ()
|
||||
HwmpTag::GetSeqno () const
|
||||
{
|
||||
return m_seqno;
|
||||
}
|
||||
|
||||
@@ -51,13 +51,13 @@ public:
|
||||
HwmpTag ();
|
||||
~HwmpTag ();
|
||||
void SetAddress (Mac48Address retransmitter);
|
||||
Mac48Address GetAddress ();
|
||||
Mac48Address GetAddress () const;
|
||||
void SetTtl (uint8_t ttl);
|
||||
uint8_t GetTtl ();
|
||||
uint8_t GetTtl () const;
|
||||
void SetMetric (uint32_t metric);
|
||||
uint32_t GetMetric ();
|
||||
uint32_t GetMetric () const;
|
||||
void SetSeqno (uint32_t seqno);
|
||||
uint32_t GetSeqno ();
|
||||
uint32_t GetSeqno () const;
|
||||
void DecrementTtl ();
|
||||
|
||||
static TypeId GetTypeId ();
|
||||
|
||||
@@ -47,14 +47,14 @@ FlameProtocolMac::Receive (Ptr<Packet> packet, const WifiMacHeader & header)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
FlameTag tag;
|
||||
if (packet->PeekPacketTag (tag))
|
||||
if (packet->PeekPacketTag<FlameTag> () != 0)
|
||||
{
|
||||
NS_FATAL_ERROR ("FLAME tag is not supposed to be received by network");
|
||||
}
|
||||
tag.receiver = header.GetAddr1 ();
|
||||
tag.transmitter = header.GetAddr2 ();
|
||||
if (tag.receiver == Mac48Address::GetBroadcast ())
|
||||
Ptr<FlameTag> tag = CreateObject<FlameTag> ();
|
||||
tag->receiver = header.GetAddr1 ();
|
||||
tag->transmitter = header.GetAddr2 ();
|
||||
if (tag->receiver == Mac48Address::GetBroadcast ())
|
||||
{
|
||||
m_stats.rxBroadcast++;
|
||||
}
|
||||
@@ -74,13 +74,13 @@ FlameProtocolMac::UpdateOutcomingFrame (Ptr<Packet> packet, WifiMacHeader & head
|
||||
{
|
||||
return true;
|
||||
}
|
||||
FlameTag tag;
|
||||
if (!packet->RemovePacketTag (tag))
|
||||
Ptr<const FlameTag> tag = packet->RemovePacketTag<FlameTag> ();
|
||||
if (tag == 0)
|
||||
{
|
||||
NS_FATAL_ERROR ("FLAME tag must exist here");
|
||||
}
|
||||
header.SetAddr1 (tag.receiver);
|
||||
if (tag.receiver == Mac48Address::GetBroadcast ())
|
||||
header.SetAddr1 (tag->receiver);
|
||||
if (tag->receiver == Mac48Address::GetBroadcast ())
|
||||
{
|
||||
m_stats.txBroadcast++;
|
||||
}
|
||||
|
||||
@@ -150,8 +150,7 @@ FlameProtocol::RequestRoute (uint32_t sourceIface, const Mac48Address source, co
|
||||
if (sourceIface == m_mp->GetIfIndex ())
|
||||
{
|
||||
//Packet from upper layer!
|
||||
FlameTag tag;
|
||||
if (packet->PeekPacketTag (tag))
|
||||
if (packet->PeekPacketTag<FlameTag> () != 0)
|
||||
{
|
||||
NS_FATAL_ERROR ("FLAME tag is not supposed to be received from upper layers");
|
||||
}
|
||||
@@ -174,7 +173,8 @@ FlameProtocol::RequestRoute (uint32_t sourceIface, const Mac48Address source, co
|
||||
flameHdr.SetOrigSrc (source);
|
||||
m_stats.txBytes += packet->GetSize ();
|
||||
packet->AddHeader (flameHdr);
|
||||
tag.receiver = result.retransmitter;
|
||||
Ptr<FlameTag> tag = CreateObject<FlameTag> ();
|
||||
tag->receiver = result.retransmitter;
|
||||
if (result.retransmitter == Mac48Address::GetBroadcast ())
|
||||
{
|
||||
m_stats.txBroadcast++;
|
||||
@@ -183,7 +183,7 @@ FlameProtocol::RequestRoute (uint32_t sourceIface, const Mac48Address source, co
|
||||
{
|
||||
m_stats.txUnicast++;
|
||||
}
|
||||
NS_LOG_DEBUG ("Source: send packet with RA = " << tag.receiver);
|
||||
NS_LOG_DEBUG ("Source: send packet with RA = " << tag->receiver);
|
||||
packet->AddPacketTag (tag);
|
||||
routeReply (true, packet, source, destination, FLAME_PROTOCOL, result.ifIndex);
|
||||
}
|
||||
@@ -191,17 +191,18 @@ FlameProtocol::RequestRoute (uint32_t sourceIface, const Mac48Address source, co
|
||||
{
|
||||
FlameHeader flameHdr;
|
||||
packet->RemoveHeader (flameHdr);
|
||||
FlameTag tag;
|
||||
|
||||
if (!packet->RemovePacketTag (tag))
|
||||
Ptr<const FlameTag> origTag = packet->RemovePacketTag<FlameTag> ();
|
||||
if (origTag == 0)
|
||||
{
|
||||
NS_FATAL_ERROR ("FLAME tag must exist here");
|
||||
}
|
||||
|
||||
if (destination == Mac48Address::GetBroadcast ())
|
||||
{
|
||||
//Broadcast always is forwarded as broadcast!
|
||||
NS_ASSERT (HandleDataFrame (flameHdr.GetSeqno (), source, flameHdr, tag.transmitter, sourceIface));
|
||||
FlameTag tag (Mac48Address::GetBroadcast ());
|
||||
NS_ASSERT (HandleDataFrame (flameHdr.GetSeqno (), source, flameHdr, origTag->transmitter, sourceIface));
|
||||
Ptr<FlameTag> tag = CreateObject<FlameTag> (Mac48Address::GetBroadcast ());
|
||||
flameHdr.AddCost (1);
|
||||
m_stats.txBytes += packet->GetSize ();
|
||||
packet->AddHeader (flameHdr);
|
||||
@@ -212,27 +213,28 @@ FlameProtocol::RequestRoute (uint32_t sourceIface, const Mac48Address source, co
|
||||
}
|
||||
else
|
||||
{
|
||||
Ptr<FlameTag> tag = CreateObject<FlameTag> (*origTag);
|
||||
// We check sequence only when forward unicast, because broadcast-checks were done
|
||||
// inside remove routing stuff.
|
||||
if (HandleDataFrame (flameHdr.GetSeqno (), source, flameHdr, tag.transmitter, sourceIface))
|
||||
if (HandleDataFrame (flameHdr.GetSeqno (), source, flameHdr, tag->transmitter, sourceIface))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
FlameRtable::LookupResult result = m_rtable->Lookup (destination);
|
||||
if (tag.receiver != Mac48Address::GetBroadcast ())
|
||||
if (origTag->receiver != Mac48Address::GetBroadcast ())
|
||||
{
|
||||
if (result.retransmitter == Mac48Address::GetBroadcast ())
|
||||
{
|
||||
NS_LOG_DEBUG ("unicast packet dropped, because no route! I am " << GetAddress ()
|
||||
<< ", RA = " << tag.receiver << ", TA = " << tag.transmitter);
|
||||
<< ", RA = " << origTag->receiver << ", TA = " << origTag->transmitter);
|
||||
m_stats.totalDropped++;
|
||||
return false;
|
||||
}
|
||||
tag.receiver = result.retransmitter;
|
||||
tag->receiver = result.retransmitter;
|
||||
}
|
||||
else
|
||||
{
|
||||
tag.receiver = Mac48Address::GetBroadcast ();
|
||||
tag->receiver = Mac48Address::GetBroadcast ();
|
||||
}
|
||||
if (result.retransmitter == Mac48Address::GetBroadcast ())
|
||||
{
|
||||
@@ -263,14 +265,14 @@ FlameProtocol::RemoveRoutingStuff (uint32_t fromIface, const Mac48Address source
|
||||
NS_LOG_DEBUG ("Dropped my own frame!");
|
||||
return false;
|
||||
}
|
||||
FlameTag tag;
|
||||
if (!packet->RemovePacketTag (tag))
|
||||
Ptr<const FlameTag> tag = packet->RemovePacketTag <FlameTag> ();
|
||||
if (tag == 0)
|
||||
{
|
||||
NS_FATAL_ERROR ("FLAME tag must exist when packet is coming to protocol");
|
||||
}
|
||||
FlameHeader flameHdr;
|
||||
packet->RemoveHeader (flameHdr);
|
||||
if (HandleDataFrame (flameHdr.GetSeqno (), source, flameHdr, tag.transmitter, fromIface))
|
||||
if (HandleDataFrame (flameHdr.GetSeqno (), source, flameHdr, tag->transmitter, fromIface))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -222,15 +222,15 @@ MeshWifiInterfaceMac::ForwardDown (Ptr<const Packet> const_packet, Mac48Address
|
||||
//Classify: application sets a tag, which is removed here
|
||||
// Get Qos tag:
|
||||
AcIndex ac = AC_BE;
|
||||
QosTag tag;
|
||||
if (packet->RemovePacketTag (tag))
|
||||
Ptr<const QosTag> tag = packet->RemovePacketTag<QosTag> ();
|
||||
if (tag != 0)
|
||||
{
|
||||
hdr.SetType (WIFI_MAC_QOSDATA);
|
||||
hdr.SetQosTid (tag.GetTid ());
|
||||
hdr.SetQosTid (tag->GetTid ());
|
||||
//Aftre setting type DsFrom and DsTo fields are reset.
|
||||
hdr.SetDsFrom ();
|
||||
hdr.SetDsTo ();
|
||||
ac = QosUtilsMapTidToAc (tag.GetTid ());
|
||||
ac = QosUtilsMapTidToAc (tag->GetTid ());
|
||||
}
|
||||
m_stats.sentFrames++;
|
||||
m_stats.sentBytes += packet->GetSize ();
|
||||
@@ -446,7 +446,7 @@ MeshWifiInterfaceMac::Receive (Ptr<Packet> packet, WifiMacHeader const *hdr)
|
||||
// Check if QoS tag exists and add it:
|
||||
if (hdr->IsQosData ())
|
||||
{
|
||||
packet->AddPacketTag (QosTag (hdr->GetQosTid ()));
|
||||
packet->AddPacketTag (CreateObject<QosTag> (hdr->GetQosTid ()));
|
||||
}
|
||||
// Forward data up
|
||||
if (hdr->IsData ())
|
||||
|
||||
@@ -266,14 +266,14 @@ def register_types(module):
|
||||
module.add_class('GaussMarkovMobilityModel', parent=root_module['ns3::MobilityModel'])
|
||||
## hierarchical-mobility-model.h (module 'mobility'): ns3::HierarchicalMobilityModel [class]
|
||||
module.add_class('HierarchicalMobilityModel', parent=root_module['ns3::MobilityModel'])
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue', 'ns3::VectorValue')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue*', 'ns3::VectorValue*')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue&', 'ns3::VectorValue&')
|
||||
module.add_typedef(root_module['ns3::Vector3DValue'], 'VectorValue')
|
||||
typehandlers.add_type_alias('ns3::Vector3D', 'ns3::Vector')
|
||||
typehandlers.add_type_alias('ns3::Vector3D*', 'ns3::Vector*')
|
||||
typehandlers.add_type_alias('ns3::Vector3D&', 'ns3::Vector&')
|
||||
module.add_typedef(root_module['ns3::Vector3D'], 'Vector')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue', 'ns3::VectorValue')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue*', 'ns3::VectorValue*')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue&', 'ns3::VectorValue&')
|
||||
module.add_typedef(root_module['ns3::Vector3DValue'], 'VectorValue')
|
||||
typehandlers.add_type_alias('ns3::Vector3DChecker', 'ns3::VectorChecker')
|
||||
typehandlers.add_type_alias('ns3::Vector3DChecker*', 'ns3::VectorChecker*')
|
||||
typehandlers.add_type_alias('ns3::Vector3DChecker&', 'ns3::VectorChecker&')
|
||||
@@ -695,9 +695,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
@@ -1201,6 +1201,21 @@ def register_Ns3NodeContainer_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::NodeContainer other) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::NodeContainer', 'other')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::Ptr<ns3::Node> node) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::Ptr< ns3::Node >', 'node')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(std::string nodeName) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('std::string', 'nodeName')],
|
||||
custom_name='__call__')
|
||||
return
|
||||
|
||||
def register_Ns3Ns2MobilityHelper_methods(root_module, cls):
|
||||
@@ -1698,12 +1713,25 @@ def register_Ns3UniformVariable_methods(root_module, cls):
|
||||
|
||||
def register_Ns3Vector2D_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('double', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('/', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('double', 'right'))
|
||||
## vector.h (module 'core'): ns3::Vector2D::Vector2D(ns3::Vector2D const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Vector2D const &', 'arg0')])
|
||||
## vector.h (module 'core'): ns3::Vector2D::Vector2D(double _x, double _y) [constructor]
|
||||
cls.add_constructor([param('double', '_x'), param('double', '_y')])
|
||||
## vector.h (module 'core'): ns3::Vector2D::Vector2D() [constructor]
|
||||
cls.add_constructor([])
|
||||
## vector.h (module 'core'): double ns3::Vector2D::GetLength() const [member function]
|
||||
cls.add_method('GetLength',
|
||||
'double',
|
||||
[],
|
||||
is_const=True)
|
||||
## vector.h (module 'core'): ns3::Vector2D::x [variable]
|
||||
cls.add_instance_attribute('x', 'double', is_const=False)
|
||||
## vector.h (module 'core'): ns3::Vector2D::y [variable]
|
||||
@@ -1712,12 +1740,25 @@ def register_Ns3Vector2D_methods(root_module, cls):
|
||||
|
||||
def register_Ns3Vector3D_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('double', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('/', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('double', 'right'))
|
||||
## vector.h (module 'core'): ns3::Vector3D::Vector3D(ns3::Vector3D const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Vector3D const &', 'arg0')])
|
||||
## vector.h (module 'core'): ns3::Vector3D::Vector3D(double _x, double _y, double _z) [constructor]
|
||||
cls.add_constructor([param('double', '_x'), param('double', '_y'), param('double', '_z')])
|
||||
## vector.h (module 'core'): ns3::Vector3D::Vector3D() [constructor]
|
||||
cls.add_constructor([])
|
||||
## vector.h (module 'core'): double ns3::Vector3D::GetLength() const [member function]
|
||||
cls.add_method('GetLength',
|
||||
'double',
|
||||
[],
|
||||
is_const=True)
|
||||
## vector.h (module 'core'): ns3::Vector3D::x [variable]
|
||||
cls.add_instance_attribute('x', 'double', is_const=False)
|
||||
## vector.h (module 'core'): ns3::Vector3D::y [variable]
|
||||
|
||||
@@ -266,14 +266,14 @@ def register_types(module):
|
||||
module.add_class('GaussMarkovMobilityModel', parent=root_module['ns3::MobilityModel'])
|
||||
## hierarchical-mobility-model.h (module 'mobility'): ns3::HierarchicalMobilityModel [class]
|
||||
module.add_class('HierarchicalMobilityModel', parent=root_module['ns3::MobilityModel'])
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue', 'ns3::VectorValue')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue*', 'ns3::VectorValue*')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue&', 'ns3::VectorValue&')
|
||||
module.add_typedef(root_module['ns3::Vector3DValue'], 'VectorValue')
|
||||
typehandlers.add_type_alias('ns3::Vector3D', 'ns3::Vector')
|
||||
typehandlers.add_type_alias('ns3::Vector3D*', 'ns3::Vector*')
|
||||
typehandlers.add_type_alias('ns3::Vector3D&', 'ns3::Vector&')
|
||||
module.add_typedef(root_module['ns3::Vector3D'], 'Vector')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue', 'ns3::VectorValue')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue*', 'ns3::VectorValue*')
|
||||
typehandlers.add_type_alias('ns3::Vector3DValue&', 'ns3::VectorValue&')
|
||||
module.add_typedef(root_module['ns3::Vector3DValue'], 'VectorValue')
|
||||
typehandlers.add_type_alias('ns3::Vector3DChecker', 'ns3::VectorChecker')
|
||||
typehandlers.add_type_alias('ns3::Vector3DChecker*', 'ns3::VectorChecker*')
|
||||
typehandlers.add_type_alias('ns3::Vector3DChecker&', 'ns3::VectorChecker&')
|
||||
@@ -695,9 +695,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
@@ -1201,6 +1201,21 @@ def register_Ns3NodeContainer_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::NodeContainer other) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::NodeContainer', 'other')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(ns3::Ptr<ns3::Node> node) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('ns3::Ptr< ns3::Node >', 'node')],
|
||||
custom_name='__call__')
|
||||
## node-container.h (module 'network'): ns3::NodeContainer & ns3::NodeContainer::operator()(std::string nodeName) [member operator]
|
||||
cls.add_method('operator()',
|
||||
'ns3::NodeContainer &',
|
||||
[param('std::string', 'nodeName')],
|
||||
custom_name='__call__')
|
||||
return
|
||||
|
||||
def register_Ns3Ns2MobilityHelper_methods(root_module, cls):
|
||||
@@ -1698,12 +1713,25 @@ def register_Ns3UniformVariable_methods(root_module, cls):
|
||||
|
||||
def register_Ns3Vector2D_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('double', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('/', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('double', 'right'))
|
||||
## vector.h (module 'core'): ns3::Vector2D::Vector2D(ns3::Vector2D const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Vector2D const &', 'arg0')])
|
||||
## vector.h (module 'core'): ns3::Vector2D::Vector2D(double _x, double _y) [constructor]
|
||||
cls.add_constructor([param('double', '_x'), param('double', '_y')])
|
||||
## vector.h (module 'core'): ns3::Vector2D::Vector2D() [constructor]
|
||||
cls.add_constructor([])
|
||||
## vector.h (module 'core'): double ns3::Vector2D::GetLength() const [member function]
|
||||
cls.add_method('GetLength',
|
||||
'double',
|
||||
[],
|
||||
is_const=True)
|
||||
## vector.h (module 'core'): ns3::Vector2D::x [variable]
|
||||
cls.add_instance_attribute('x', 'double', is_const=False)
|
||||
## vector.h (module 'core'): ns3::Vector2D::y [variable]
|
||||
@@ -1712,12 +1740,25 @@ def register_Ns3Vector2D_methods(root_module, cls):
|
||||
|
||||
def register_Ns3Vector3D_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('double', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('/', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('double', 'right'))
|
||||
## vector.h (module 'core'): ns3::Vector3D::Vector3D(ns3::Vector3D const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Vector3D const &', 'arg0')])
|
||||
## vector.h (module 'core'): ns3::Vector3D::Vector3D(double _x, double _y, double _z) [constructor]
|
||||
cls.add_constructor([param('double', '_x'), param('double', '_y'), param('double', '_z')])
|
||||
## vector.h (module 'core'): ns3::Vector3D::Vector3D() [constructor]
|
||||
cls.add_constructor([])
|
||||
## vector.h (module 'core'): double ns3::Vector3D::GetLength() const [member function]
|
||||
cls.add_method('GetLength',
|
||||
'double',
|
||||
[],
|
||||
is_const=True)
|
||||
## vector.h (module 'core'): ns3::Vector3D::x [variable]
|
||||
cls.add_instance_attribute('x', 'double', is_const=False)
|
||||
## vector.h (module 'core'): ns3::Vector3D::y [variable]
|
||||
|
||||
@@ -60,20 +60,12 @@ def register_types(module):
|
||||
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
|
||||
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
|
||||
module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator [class]
|
||||
module.add_class('PacketTagIterator', import_from_module='ns.network')
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
|
||||
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
|
||||
module.add_class('PacketTagList', import_from_module='ns.network')
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
|
||||
module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
|
||||
## mpi-interface.h (module 'mpi'): ns3::SentBuffer [class]
|
||||
module.add_class('SentBuffer')
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Chunk', 'ns3::ObjectBase', 'ns3::DefaultDeleter<ns3::Chunk>'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
|
||||
module.add_class('TagBuffer', import_from_module='ns.network')
|
||||
## type-id.h (module 'core'): ns3::TypeId [class]
|
||||
@@ -89,7 +81,7 @@ def register_types(module):
|
||||
## int64x64-double.h (module 'core'): ns3::int64x64_t [class]
|
||||
module.add_class('int64x64_t', import_from_module='ns.core')
|
||||
## chunk.h (module 'network'): ns3::Chunk [class]
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
## header.h (module 'network'): ns3::Header [class]
|
||||
module.add_class('Header', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
|
||||
## object.h (module 'core'): ns3::Object [class]
|
||||
@@ -120,6 +112,8 @@ def register_types(module):
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::TraceSourceAccessor', 'ns3::empty', 'ns3::DefaultDeleter<ns3::TraceSourceAccessor>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simulator-impl.h (module 'core'): ns3::SimulatorImpl [class]
|
||||
module.add_class('SimulatorImpl', import_from_module='ns.core', parent=root_module['ns3::Object'])
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::Object'])
|
||||
## nstime.h (module 'core'): ns3::Time [class]
|
||||
module.add_class('Time', import_from_module='ns.core')
|
||||
## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
|
||||
@@ -197,13 +191,9 @@ def register_methods(root_module):
|
||||
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_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
|
||||
register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
|
||||
register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
|
||||
register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
|
||||
register_Ns3SentBuffer_methods(root_module, root_module['ns3::SentBuffer'])
|
||||
register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
|
||||
register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
|
||||
register_Ns3TypeIdAttributeInformation_methods(root_module, root_module['ns3::TypeId::AttributeInformation'])
|
||||
@@ -226,6 +216,7 @@ def register_methods(root_module):
|
||||
register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
|
||||
register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >'])
|
||||
register_Ns3SimulatorImpl_methods(root_module, root_module['ns3::SimulatorImpl'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3Time_methods(root_module, root_module['ns3::Time'])
|
||||
register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
|
||||
register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
|
||||
@@ -424,6 +415,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Next',
|
||||
'void',
|
||||
[param('uint32_t', 'delta')])
|
||||
## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function]
|
||||
cls.add_method('PeekU8',
|
||||
'uint8_t',
|
||||
[])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
|
||||
cls.add_method('Prev',
|
||||
'void',
|
||||
@@ -436,6 +431,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function]
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
|
||||
cls.add_method('ReadLsbtohU16',
|
||||
'uint16_t',
|
||||
@@ -1011,80 +1010,6 @@ def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIterator_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
|
||||
## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
|
||||
cls.add_method('HasNext',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::PacketTagIterator::Item',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
|
||||
## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('GetTag',
|
||||
'void',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagList_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
|
||||
cls.add_method('Add',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
|
||||
cls.add_method('Head',
|
||||
'ns3::PacketTagList::TagData const *',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('Peek',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
|
||||
cls.add_method('Remove',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
|
||||
cls.add_method('RemoveAll',
|
||||
'void',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagListTagData_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
|
||||
cls.add_instance_attribute('count', 'uint32_t', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
|
||||
cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
|
||||
cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
|
||||
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
|
||||
return
|
||||
|
||||
def register_Ns3SentBuffer_methods(root_module, cls):
|
||||
## mpi-interface.h (module 'mpi'): ns3::SentBuffer::SentBuffer(ns3::SentBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SentBuffer const &', 'arg0')])
|
||||
@@ -1104,6 +1029,18 @@ def register_Ns3SentBuffer_methods(root_module, cls):
|
||||
[param('uint8_t *', 'buffer')])
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter< ns3::Chunk > > const &', 'o')])
|
||||
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::Cleanup() [member function]
|
||||
cls.add_method('Cleanup',
|
||||
'void',
|
||||
[],
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -1116,38 +1053,6 @@ def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TagBuffer_methods(root_module, cls):
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
|
||||
@@ -1883,6 +1788,39 @@ def register_Ns3SimulatorImpl_methods(root_module, cls):
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Time_methods(root_module, cls):
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
@@ -2519,11 +2457,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('AddHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Ptr<const ns3::Tag> tag) [member function]
|
||||
cls.add_method('AddPacketTag',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
[param('ns3::Ptr< ns3::Tag const >', 'tag')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
|
||||
cls.add_method('AddPaddingAtEnd',
|
||||
'void',
|
||||
@@ -2582,11 +2519,6 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::NixVector >',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
|
||||
cls.add_method('GetPacketTagIterator',
|
||||
'ns3::PacketTagIterator',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
@@ -2612,10 +2544,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::PeekPacketTag(ns3::TypeId tagType) const [member function]
|
||||
cls.add_method('PeekPacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('PeekTrailer',
|
||||
@@ -2656,10 +2588,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('RemoveHeader',
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')])
|
||||
## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::RemovePacketTag(ns3::TypeId tagType) [member function]
|
||||
cls.add_method('RemovePacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')])
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('RemoveTrailer',
|
||||
'uint32_t',
|
||||
|
||||
@@ -60,20 +60,12 @@ def register_types(module):
|
||||
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
|
||||
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
|
||||
module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator [class]
|
||||
module.add_class('PacketTagIterator', import_from_module='ns.network')
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
|
||||
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
|
||||
module.add_class('PacketTagList', import_from_module='ns.network')
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
|
||||
module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
|
||||
## mpi-interface.h (module 'mpi'): ns3::SentBuffer [class]
|
||||
module.add_class('SentBuffer')
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Chunk', 'ns3::ObjectBase', 'ns3::DefaultDeleter<ns3::Chunk>'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
|
||||
module.add_class('TagBuffer', import_from_module='ns.network')
|
||||
## type-id.h (module 'core'): ns3::TypeId [class]
|
||||
@@ -89,7 +81,7 @@ def register_types(module):
|
||||
## int64x64-double.h (module 'core'): ns3::int64x64_t [class]
|
||||
module.add_class('int64x64_t', import_from_module='ns.core')
|
||||
## chunk.h (module 'network'): ns3::Chunk [class]
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
## header.h (module 'network'): ns3::Header [class]
|
||||
module.add_class('Header', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
|
||||
## object.h (module 'core'): ns3::Object [class]
|
||||
@@ -120,6 +112,8 @@ def register_types(module):
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::TraceSourceAccessor', 'ns3::empty', 'ns3::DefaultDeleter<ns3::TraceSourceAccessor>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simulator-impl.h (module 'core'): ns3::SimulatorImpl [class]
|
||||
module.add_class('SimulatorImpl', import_from_module='ns.core', parent=root_module['ns3::Object'])
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::Object'])
|
||||
## nstime.h (module 'core'): ns3::Time [class]
|
||||
module.add_class('Time', import_from_module='ns.core')
|
||||
## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
|
||||
@@ -197,13 +191,9 @@ def register_methods(root_module):
|
||||
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_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
|
||||
register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
|
||||
register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
|
||||
register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
|
||||
register_Ns3SentBuffer_methods(root_module, root_module['ns3::SentBuffer'])
|
||||
register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
|
||||
register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
|
||||
register_Ns3TypeIdAttributeInformation_methods(root_module, root_module['ns3::TypeId::AttributeInformation'])
|
||||
@@ -226,6 +216,7 @@ def register_methods(root_module):
|
||||
register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
|
||||
register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >'])
|
||||
register_Ns3SimulatorImpl_methods(root_module, root_module['ns3::SimulatorImpl'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3Time_methods(root_module, root_module['ns3::Time'])
|
||||
register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
|
||||
register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
|
||||
@@ -424,6 +415,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Next',
|
||||
'void',
|
||||
[param('uint32_t', 'delta')])
|
||||
## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function]
|
||||
cls.add_method('PeekU8',
|
||||
'uint8_t',
|
||||
[])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
|
||||
cls.add_method('Prev',
|
||||
'void',
|
||||
@@ -436,6 +431,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function]
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
|
||||
cls.add_method('ReadLsbtohU16',
|
||||
'uint16_t',
|
||||
@@ -1011,80 +1010,6 @@ def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIterator_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
|
||||
## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
|
||||
cls.add_method('HasNext',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::PacketTagIterator::Item',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
|
||||
## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('GetTag',
|
||||
'void',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagList_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
|
||||
cls.add_method('Add',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
|
||||
cls.add_method('Head',
|
||||
'ns3::PacketTagList::TagData const *',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('Peek',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
|
||||
cls.add_method('Remove',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
|
||||
cls.add_method('RemoveAll',
|
||||
'void',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagListTagData_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
|
||||
cls.add_instance_attribute('count', 'uint32_t', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
|
||||
cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
|
||||
cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
|
||||
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
|
||||
return
|
||||
|
||||
def register_Ns3SentBuffer_methods(root_module, cls):
|
||||
## mpi-interface.h (module 'mpi'): ns3::SentBuffer::SentBuffer(ns3::SentBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SentBuffer const &', 'arg0')])
|
||||
@@ -1104,6 +1029,18 @@ def register_Ns3SentBuffer_methods(root_module, cls):
|
||||
[param('uint8_t *', 'buffer')])
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter< ns3::Chunk > > const &', 'o')])
|
||||
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::Cleanup() [member function]
|
||||
cls.add_method('Cleanup',
|
||||
'void',
|
||||
[],
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter>::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -1116,38 +1053,6 @@ def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TagBuffer_methods(root_module, cls):
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
|
||||
@@ -1883,6 +1788,39 @@ def register_Ns3SimulatorImpl_methods(root_module, cls):
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Time_methods(root_module, cls):
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
@@ -2519,11 +2457,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('AddHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Ptr<const ns3::Tag> tag) [member function]
|
||||
cls.add_method('AddPacketTag',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
[param('ns3::Ptr< ns3::Tag const >', 'tag')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
|
||||
cls.add_method('AddPaddingAtEnd',
|
||||
'void',
|
||||
@@ -2582,11 +2519,6 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::NixVector >',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
|
||||
cls.add_method('GetPacketTagIterator',
|
||||
'ns3::PacketTagIterator',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
@@ -2612,10 +2544,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::PeekPacketTag(ns3::TypeId tagType) const [member function]
|
||||
cls.add_method('PeekPacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('PeekTrailer',
|
||||
@@ -2656,10 +2588,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('RemoveHeader',
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')])
|
||||
## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::RemovePacketTag(ns3::TypeId tagType) [member function]
|
||||
cls.add_method('RemovePacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')])
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('RemoveTrailer',
|
||||
'uint32_t',
|
||||
|
||||
@@ -88,20 +88,12 @@ def register_types(module):
|
||||
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
|
||||
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
|
||||
module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator [class]
|
||||
module.add_class('PacketTagIterator', import_from_module='ns.network')
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
|
||||
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
|
||||
module.add_class('PacketTagList', import_from_module='ns.network')
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
|
||||
module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Chunk', 'ns3::ObjectBase', 'ns3::DefaultDeleter<ns3::Chunk>'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simulator.h (module 'core'): ns3::Simulator [class]
|
||||
module.add_class('Simulator', destructor_visibility='private', import_from_module='ns.core')
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
|
||||
module.add_class('TagBuffer', import_from_module='ns.network')
|
||||
## type-id.h (module 'core'): ns3::TypeId [class]
|
||||
@@ -120,10 +112,8 @@ def register_types(module):
|
||||
module.add_class('empty', import_from_module='ns.core')
|
||||
## int64x64-double.h (module 'core'): ns3::int64x64_t [class]
|
||||
module.add_class('int64x64_t', import_from_module='ns.core')
|
||||
## animation-interface.h (module 'netanim'): ns3::AnimByteTag [class]
|
||||
module.add_class('AnimByteTag', parent=root_module['ns3::Tag'])
|
||||
## chunk.h (module 'network'): ns3::Chunk [class]
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
## header.h (module 'network'): ns3::Header [class]
|
||||
module.add_class('Header', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
|
||||
## object.h (module 'core'): ns3::Object [class]
|
||||
@@ -146,6 +136,8 @@ def register_types(module):
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Packet', 'ns3::empty', 'ns3::DefaultDeleter<ns3::Packet>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::TraceSourceAccessor', 'ns3::empty', 'ns3::DefaultDeleter<ns3::TraceSourceAccessor>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::Object'])
|
||||
## nstime.h (module 'core'): ns3::Time [class]
|
||||
module.add_class('Time', import_from_module='ns.core')
|
||||
## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
|
||||
@@ -156,6 +148,8 @@ def register_types(module):
|
||||
module.add_class('TraceSourceAccessor', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >'])
|
||||
## trailer.h (module 'network'): ns3::Trailer [class]
|
||||
module.add_class('Trailer', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
|
||||
## animation-interface.h (module 'netanim'): ns3::AnimByteTag [class]
|
||||
module.add_class('AnimByteTag', parent=root_module['ns3::Tag'])
|
||||
## attribute.h (module 'core'): ns3::AttributeAccessor [class]
|
||||
module.add_class('AttributeAccessor', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >'])
|
||||
## attribute.h (module 'core'): ns3::AttributeChecker [class]
|
||||
@@ -229,6 +223,10 @@ def register_types(module):
|
||||
## address.h (module 'network'): ns3::AddressValue [class]
|
||||
module.add_class('AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
|
||||
module.add_container('std::map< unsigned int, ns3::AnimRxInfo >', ('unsigned int', 'ns3::AnimRxInfo'), container_type='map')
|
||||
typehandlers.add_type_alias('ns3::Vector3D', 'ns3::Vector')
|
||||
typehandlers.add_type_alias('ns3::Vector3D*', 'ns3::Vector*')
|
||||
typehandlers.add_type_alias('ns3::Vector3D&', 'ns3::Vector&')
|
||||
module.add_typedef(root_module['ns3::Vector3D'], 'Vector')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) *', 'ns3::LogTimePrinter')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) **', 'ns3::LogTimePrinter*')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) *&', 'ns3::LogTimePrinter&')
|
||||
@@ -239,10 +237,6 @@ def register_types(module):
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) *', 'ns3::LogNodePrinter')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) **', 'ns3::LogNodePrinter*')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) *&', 'ns3::LogNodePrinter&')
|
||||
typehandlers.add_type_alias('ns3::Vector3D', 'ns3::Vector')
|
||||
typehandlers.add_type_alias('ns3::Vector3D*', 'ns3::Vector*')
|
||||
typehandlers.add_type_alias('ns3::Vector3D&', 'ns3::Vector&')
|
||||
module.add_typedef(root_module['ns3::Vector3D'], 'Vector')
|
||||
typehandlers.add_type_alias('ns3::Vector3DChecker', 'ns3::VectorChecker')
|
||||
typehandlers.add_type_alias('ns3::Vector3DChecker*', 'ns3::VectorChecker*')
|
||||
typehandlers.add_type_alias('ns3::Vector3DChecker&', 'ns3::VectorChecker&')
|
||||
@@ -301,13 +295,9 @@ def register_methods(root_module):
|
||||
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_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
|
||||
register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
|
||||
register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
|
||||
register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
|
||||
register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
|
||||
register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
|
||||
register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
|
||||
register_Ns3TypeIdAttributeInformation_methods(root_module, root_module['ns3::TypeId::AttributeInformation'])
|
||||
@@ -316,7 +306,6 @@ def register_methods(root_module):
|
||||
register_Ns3Vector3D_methods(root_module, root_module['ns3::Vector3D'])
|
||||
register_Ns3Empty_methods(root_module, root_module['ns3::empty'])
|
||||
register_Ns3Int64x64_t_methods(root_module, root_module['ns3::int64x64_t'])
|
||||
register_Ns3AnimByteTag_methods(root_module, root_module['ns3::AnimByteTag'])
|
||||
register_Ns3Chunk_methods(root_module, root_module['ns3::Chunk'])
|
||||
register_Ns3Header_methods(root_module, root_module['ns3::Header'])
|
||||
register_Ns3Object_methods(root_module, root_module['ns3::Object'])
|
||||
@@ -329,9 +318,11 @@ def register_methods(root_module):
|
||||
register_Ns3SimpleRefCount__Ns3NixVector_Ns3Empty_Ns3DefaultDeleter__lt__ns3NixVector__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
|
||||
register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3Time_methods(root_module, root_module['ns3::Time'])
|
||||
register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
|
||||
register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
|
||||
register_Ns3AnimByteTag_methods(root_module, root_module['ns3::AnimByteTag'])
|
||||
register_Ns3AttributeAccessor_methods(root_module, root_module['ns3::AttributeAccessor'])
|
||||
register_Ns3AttributeChecker_methods(root_module, root_module['ns3::AttributeChecker'])
|
||||
register_Ns3AttributeValue_methods(root_module, root_module['ns3::AttributeValue'])
|
||||
@@ -445,8 +436,8 @@ def register_Ns3AnimPacketInfo_methods(root_module, cls):
|
||||
cls.add_constructor([param('ns3::AnimPacketInfo const &', 'arg0')])
|
||||
## animation-interface-helper.h (module 'netanim'): ns3::AnimPacketInfo::AnimPacketInfo() [constructor]
|
||||
cls.add_constructor([])
|
||||
## animation-interface-helper.h (module 'netanim'): ns3::AnimPacketInfo::AnimPacketInfo(ns3::Ptr<ns3::NetDevice const> tx_nd, ns3::Time const & fbTx, ns3::Time const & lbTx, ns3::Vector txLoc) [constructor]
|
||||
cls.add_constructor([param('ns3::Ptr< ns3::NetDevice const >', 'tx_nd'), param('ns3::Time const &', 'fbTx'), param('ns3::Time const &', 'lbTx'), param('ns3::Vector', 'txLoc')])
|
||||
## animation-interface-helper.h (module 'netanim'): ns3::AnimPacketInfo::AnimPacketInfo(ns3::Ptr<ns3::NetDevice const> tx_nd, ns3::Time const & fbTx, ns3::Time const & lbTx, ns3::Vector txLoc, uint32_t txNodeId=0) [constructor]
|
||||
cls.add_constructor([param('ns3::Ptr< ns3::NetDevice const >', 'tx_nd'), param('ns3::Time const &', 'fbTx'), param('ns3::Time const &', 'lbTx'), param('ns3::Vector', 'txLoc'), param('uint32_t', 'txNodeId', default_value='0')])
|
||||
## animation-interface-helper.h (module 'netanim'): ns3::AnimRxInfo ns3::AnimPacketInfo::GetRxInfo(ns3::Ptr<ns3::NetDevice const> nd) [member function]
|
||||
cls.add_method('GetRxInfo',
|
||||
'ns3::AnimRxInfo',
|
||||
@@ -477,6 +468,8 @@ def register_Ns3AnimPacketInfo_methods(root_module, cls):
|
||||
cls.add_instance_attribute('m_rx', 'std::map< unsigned int, ns3::AnimRxInfo >', is_const=False)
|
||||
## animation-interface-helper.h (module 'netanim'): ns3::AnimPacketInfo::m_txLoc [variable]
|
||||
cls.add_instance_attribute('m_txLoc', 'ns3::Vector', is_const=False)
|
||||
## animation-interface-helper.h (module 'netanim'): ns3::AnimPacketInfo::m_txNodeId [variable]
|
||||
cls.add_instance_attribute('m_txNodeId', 'uint32_t', is_const=False)
|
||||
## animation-interface-helper.h (module 'netanim'): ns3::AnimPacketInfo::m_txnd [variable]
|
||||
cls.add_instance_attribute('m_txnd', 'ns3::Ptr< ns3::NetDevice const >', is_const=False)
|
||||
return
|
||||
@@ -557,6 +550,14 @@ def register_Ns3AnimationInterface_methods(root_module, cls):
|
||||
cls.add_method('SetServerPort',
|
||||
'bool',
|
||||
[param('uint16_t', 'port')])
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimationInterface::SetStartTime(ns3::Time t) [member function]
|
||||
cls.add_method('SetStartTime',
|
||||
'void',
|
||||
[param('ns3::Time', 't')])
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimationInterface::SetStopTime(ns3::Time t) [member function]
|
||||
cls.add_method('SetStopTime',
|
||||
'void',
|
||||
[param('ns3::Time', 't')])
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimationInterface::SetXMLOutput() [member function]
|
||||
cls.add_method('SetXMLOutput',
|
||||
'void',
|
||||
@@ -750,6 +751,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Next',
|
||||
'void',
|
||||
[param('uint32_t', 'delta')])
|
||||
## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function]
|
||||
cls.add_method('PeekU8',
|
||||
'uint8_t',
|
||||
[])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
|
||||
cls.add_method('Prev',
|
||||
'void',
|
||||
@@ -762,6 +767,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function]
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
|
||||
cls.add_method('ReadLsbtohU16',
|
||||
'uint16_t',
|
||||
@@ -1056,9 +1065,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
@@ -1790,78 +1799,16 @@ def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIterator_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
|
||||
## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
|
||||
cls.add_method('HasNext',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::PacketTagIterator::Item',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
|
||||
## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('GetTag',
|
||||
'void',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagList_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
|
||||
def register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
|
||||
cls.add_method('Add',
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter< ns3::Chunk > > const &', 'o')])
|
||||
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::Cleanup() [member function]
|
||||
cls.add_method('Cleanup',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
|
||||
cls.add_method('Head',
|
||||
'ns3::PacketTagList::TagData const *',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('Peek',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
|
||||
cls.add_method('Remove',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
|
||||
cls.add_method('RemoveAll',
|
||||
'void',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagListTagData_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
|
||||
cls.add_instance_attribute('count', 'uint32_t', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
|
||||
cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
|
||||
cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
|
||||
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
|
||||
@@ -1924,11 +1871,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'bool',
|
||||
[],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::Time',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Now() [member function]
|
||||
cls.add_method('Now',
|
||||
'ns3::Time',
|
||||
@@ -1939,11 +1881,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'void',
|
||||
[param('ns3::EventId const &', 'id')],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::RunOneEvent() [member function]
|
||||
cls.add_method('RunOneEvent',
|
||||
'void',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::SetImplementation(ns3::Ptr<ns3::SimulatorImpl> impl) [member function]
|
||||
cls.add_method('SetImplementation',
|
||||
'void',
|
||||
@@ -1966,38 +1903,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TagBuffer_methods(root_module, cls):
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
|
||||
@@ -2237,12 +2142,25 @@ def register_Ns3TypeIdTraceSourceInformation_methods(root_module, cls):
|
||||
|
||||
def register_Ns3Vector2D_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('double', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('/', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('double', 'right'))
|
||||
## vector.h (module 'core'): ns3::Vector2D::Vector2D(ns3::Vector2D const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Vector2D const &', 'arg0')])
|
||||
## vector.h (module 'core'): ns3::Vector2D::Vector2D(double _x, double _y) [constructor]
|
||||
cls.add_constructor([param('double', '_x'), param('double', '_y')])
|
||||
## vector.h (module 'core'): ns3::Vector2D::Vector2D() [constructor]
|
||||
cls.add_constructor([])
|
||||
## vector.h (module 'core'): double ns3::Vector2D::GetLength() const [member function]
|
||||
cls.add_method('GetLength',
|
||||
'double',
|
||||
[],
|
||||
is_const=True)
|
||||
## vector.h (module 'core'): ns3::Vector2D::x [variable]
|
||||
cls.add_instance_attribute('x', 'double', is_const=False)
|
||||
## vector.h (module 'core'): ns3::Vector2D::y [variable]
|
||||
@@ -2251,12 +2169,25 @@ def register_Ns3Vector2D_methods(root_module, cls):
|
||||
|
||||
def register_Ns3Vector3D_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('double', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('/', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('double', 'right'))
|
||||
## vector.h (module 'core'): ns3::Vector3D::Vector3D(ns3::Vector3D const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Vector3D const &', 'arg0')])
|
||||
## vector.h (module 'core'): ns3::Vector3D::Vector3D(double _x, double _y, double _z) [constructor]
|
||||
cls.add_constructor([param('double', '_x'), param('double', '_y'), param('double', '_z')])
|
||||
## vector.h (module 'core'): ns3::Vector3D::Vector3D() [constructor]
|
||||
cls.add_constructor([])
|
||||
## vector.h (module 'core'): double ns3::Vector3D::GetLength() const [member function]
|
||||
cls.add_method('GetLength',
|
||||
'double',
|
||||
[],
|
||||
is_const=True)
|
||||
## vector.h (module 'core'): ns3::Vector3D::x [variable]
|
||||
cls.add_instance_attribute('x', 'double', is_const=False)
|
||||
## vector.h (module 'core'): ns3::Vector3D::y [variable]
|
||||
@@ -2379,52 +2310,6 @@ def register_Ns3Int64x64_t_methods(root_module, cls):
|
||||
[param('ns3::int64x64_t const &', 'o')])
|
||||
return
|
||||
|
||||
def register_Ns3AnimByteTag_methods(root_module, cls):
|
||||
## animation-interface.h (module 'netanim'): ns3::AnimByteTag::AnimByteTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## animation-interface.h (module 'netanim'): ns3::AnimByteTag::AnimByteTag(ns3::AnimByteTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::AnimByteTag const &', 'arg0')])
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimByteTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## animation-interface.h (module 'netanim'): uint64_t ns3::AnimByteTag::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint64_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## animation-interface.h (module 'netanim'): ns3::TypeId ns3::AnimByteTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## animation-interface.h (module 'netanim'): uint32_t ns3::AnimByteTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## animation-interface.h (module 'netanim'): static ns3::TypeId ns3::AnimByteTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimByteTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimByteTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimByteTag::Set(uint64_t AnimUid) [member function]
|
||||
cls.add_method('Set',
|
||||
'void',
|
||||
[param('uint64_t', 'AnimUid')])
|
||||
return
|
||||
|
||||
def register_Ns3Chunk_methods(root_module, cls):
|
||||
## chunk.h (module 'network'): ns3::Chunk::Chunk() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -2642,6 +2527,39 @@ def register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDelete
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Time_methods(root_module, cls):
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
@@ -2858,6 +2776,52 @@ def register_Ns3Trailer_methods(root_module, cls):
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3AnimByteTag_methods(root_module, cls):
|
||||
## animation-interface.h (module 'netanim'): ns3::AnimByteTag::AnimByteTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## animation-interface.h (module 'netanim'): ns3::AnimByteTag::AnimByteTag(ns3::AnimByteTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::AnimByteTag const &', 'arg0')])
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimByteTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## animation-interface.h (module 'netanim'): uint64_t ns3::AnimByteTag::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint64_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## animation-interface.h (module 'netanim'): ns3::TypeId ns3::AnimByteTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## animation-interface.h (module 'netanim'): uint32_t ns3::AnimByteTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## animation-interface.h (module 'netanim'): static ns3::TypeId ns3::AnimByteTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimByteTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimByteTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimByteTag::Set(uint64_t AnimUid) [member function]
|
||||
cls.add_method('Set',
|
||||
'void',
|
||||
[param('uint64_t', 'AnimUid')])
|
||||
return
|
||||
|
||||
def register_Ns3AttributeAccessor_methods(root_module, cls):
|
||||
## attribute.h (module 'core'): ns3::AttributeAccessor::AttributeAccessor(ns3::AttributeAccessor const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::AttributeAccessor const &', 'arg0')])
|
||||
@@ -3622,11 +3586,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('AddHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Ptr<const ns3::Tag> tag) [member function]
|
||||
cls.add_method('AddPacketTag',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
[param('ns3::Ptr< ns3::Tag const >', 'tag')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
|
||||
cls.add_method('AddPaddingAtEnd',
|
||||
'void',
|
||||
@@ -3685,11 +3648,6 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::NixVector >',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
|
||||
cls.add_method('GetPacketTagIterator',
|
||||
'ns3::PacketTagIterator',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
@@ -3715,10 +3673,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::PeekPacketTag(ns3::TypeId tagType) const [member function]
|
||||
cls.add_method('PeekPacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('PeekTrailer',
|
||||
@@ -3759,10 +3717,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('RemoveHeader',
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')])
|
||||
## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::RemovePacketTag(ns3::TypeId tagType) [member function]
|
||||
cls.add_method('RemovePacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')])
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('RemoveTrailer',
|
||||
'uint32_t',
|
||||
|
||||
@@ -88,20 +88,12 @@ def register_types(module):
|
||||
module.add_enum('', ['PAYLOAD', 'HEADER', 'TRAILER'], outer_class=root_module['ns3::PacketMetadata::Item'], import_from_module='ns.network')
|
||||
## packet-metadata.h (module 'network'): ns3::PacketMetadata::ItemIterator [class]
|
||||
module.add_class('ItemIterator', import_from_module='ns.network', outer_class=root_module['ns3::PacketMetadata'])
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator [class]
|
||||
module.add_class('PacketTagIterator', import_from_module='ns.network')
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item [class]
|
||||
module.add_class('Item', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagIterator'])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList [class]
|
||||
module.add_class('PacketTagList', import_from_module='ns.network')
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData [struct]
|
||||
module.add_class('TagData', import_from_module='ns.network', outer_class=root_module['ns3::PacketTagList'])
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Chunk', 'ns3::ObjectBase', 'ns3::DefaultDeleter<ns3::Chunk>'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter> [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Object', 'ns3::ObjectBase', 'ns3::ObjectDeleter'], parent=root_module['ns3::ObjectBase'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simulator.h (module 'core'): ns3::Simulator [class]
|
||||
module.add_class('Simulator', destructor_visibility='private', import_from_module='ns.core')
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer [class]
|
||||
module.add_class('TagBuffer', import_from_module='ns.network')
|
||||
## type-id.h (module 'core'): ns3::TypeId [class]
|
||||
@@ -120,10 +112,8 @@ def register_types(module):
|
||||
module.add_class('empty', import_from_module='ns.core')
|
||||
## int64x64-double.h (module 'core'): ns3::int64x64_t [class]
|
||||
module.add_class('int64x64_t', import_from_module='ns.core')
|
||||
## animation-interface.h (module 'netanim'): ns3::AnimByteTag [class]
|
||||
module.add_class('AnimByteTag', parent=root_module['ns3::Tag'])
|
||||
## chunk.h (module 'network'): ns3::Chunk [class]
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::ObjectBase'])
|
||||
module.add_class('Chunk', import_from_module='ns.network', parent=root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
## header.h (module 'network'): ns3::Header [class]
|
||||
module.add_class('Header', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
|
||||
## object.h (module 'core'): ns3::Object [class]
|
||||
@@ -146,6 +136,8 @@ def register_types(module):
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::Packet', 'ns3::empty', 'ns3::DefaultDeleter<ns3::Packet>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> > [class]
|
||||
module.add_class('SimpleRefCount', automatic_type_narrowing=True, import_from_module='ns.core', template_parameters=['ns3::TraceSourceAccessor', 'ns3::empty', 'ns3::DefaultDeleter<ns3::TraceSourceAccessor>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCount'))
|
||||
## tag.h (module 'network'): ns3::Tag [class]
|
||||
module.add_class('Tag', import_from_module='ns.network', parent=root_module['ns3::Object'])
|
||||
## nstime.h (module 'core'): ns3::Time [class]
|
||||
module.add_class('Time', import_from_module='ns.core')
|
||||
## nstime.h (module 'core'): ns3::Time::Unit [enumeration]
|
||||
@@ -156,6 +148,8 @@ def register_types(module):
|
||||
module.add_class('TraceSourceAccessor', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >'])
|
||||
## trailer.h (module 'network'): ns3::Trailer [class]
|
||||
module.add_class('Trailer', import_from_module='ns.network', parent=root_module['ns3::Chunk'])
|
||||
## animation-interface.h (module 'netanim'): ns3::AnimByteTag [class]
|
||||
module.add_class('AnimByteTag', parent=root_module['ns3::Tag'])
|
||||
## attribute.h (module 'core'): ns3::AttributeAccessor [class]
|
||||
module.add_class('AttributeAccessor', import_from_module='ns.core', parent=root_module['ns3::SimpleRefCount< ns3::AttributeAccessor, ns3::empty, ns3::DefaultDeleter<ns3::AttributeAccessor> >'])
|
||||
## attribute.h (module 'core'): ns3::AttributeChecker [class]
|
||||
@@ -229,6 +223,10 @@ def register_types(module):
|
||||
## address.h (module 'network'): ns3::AddressValue [class]
|
||||
module.add_class('AddressValue', import_from_module='ns.network', parent=root_module['ns3::AttributeValue'])
|
||||
module.add_container('std::map< unsigned int, ns3::AnimRxInfo >', ('unsigned int', 'ns3::AnimRxInfo'), container_type='map')
|
||||
typehandlers.add_type_alias('ns3::Vector3D', 'ns3::Vector')
|
||||
typehandlers.add_type_alias('ns3::Vector3D*', 'ns3::Vector*')
|
||||
typehandlers.add_type_alias('ns3::Vector3D&', 'ns3::Vector&')
|
||||
module.add_typedef(root_module['ns3::Vector3D'], 'Vector')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) *', 'ns3::LogTimePrinter')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) **', 'ns3::LogTimePrinter*')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) *&', 'ns3::LogTimePrinter&')
|
||||
@@ -239,10 +237,6 @@ def register_types(module):
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) *', 'ns3::LogNodePrinter')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) **', 'ns3::LogNodePrinter*')
|
||||
typehandlers.add_type_alias('void ( * ) ( std::ostream & ) *&', 'ns3::LogNodePrinter&')
|
||||
typehandlers.add_type_alias('ns3::Vector3D', 'ns3::Vector')
|
||||
typehandlers.add_type_alias('ns3::Vector3D*', 'ns3::Vector*')
|
||||
typehandlers.add_type_alias('ns3::Vector3D&', 'ns3::Vector&')
|
||||
module.add_typedef(root_module['ns3::Vector3D'], 'Vector')
|
||||
typehandlers.add_type_alias('ns3::Vector3DChecker', 'ns3::VectorChecker')
|
||||
typehandlers.add_type_alias('ns3::Vector3DChecker*', 'ns3::VectorChecker*')
|
||||
typehandlers.add_type_alias('ns3::Vector3DChecker&', 'ns3::VectorChecker&')
|
||||
@@ -301,13 +295,9 @@ def register_methods(root_module):
|
||||
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_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketTagIterator'])
|
||||
register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::PacketTagIterator::Item'])
|
||||
register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagList'])
|
||||
register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::PacketTagList::TagData'])
|
||||
register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, root_module['ns3::SimpleRefCount< ns3::Object, ns3::ObjectBase, ns3::ObjectDeleter >'])
|
||||
register_Ns3Simulator_methods(root_module, root_module['ns3::Simulator'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer'])
|
||||
register_Ns3TypeId_methods(root_module, root_module['ns3::TypeId'])
|
||||
register_Ns3TypeIdAttributeInformation_methods(root_module, root_module['ns3::TypeId::AttributeInformation'])
|
||||
@@ -316,7 +306,6 @@ def register_methods(root_module):
|
||||
register_Ns3Vector3D_methods(root_module, root_module['ns3::Vector3D'])
|
||||
register_Ns3Empty_methods(root_module, root_module['ns3::empty'])
|
||||
register_Ns3Int64x64_t_methods(root_module, root_module['ns3::int64x64_t'])
|
||||
register_Ns3AnimByteTag_methods(root_module, root_module['ns3::AnimByteTag'])
|
||||
register_Ns3Chunk_methods(root_module, root_module['ns3::Chunk'])
|
||||
register_Ns3Header_methods(root_module, root_module['ns3::Header'])
|
||||
register_Ns3Object_methods(root_module, root_module['ns3::Object'])
|
||||
@@ -329,9 +318,11 @@ def register_methods(root_module):
|
||||
register_Ns3SimpleRefCount__Ns3NixVector_Ns3Empty_Ns3DefaultDeleter__lt__ns3NixVector__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::NixVector, ns3::empty, ns3::DefaultDeleter<ns3::NixVector> >'])
|
||||
register_Ns3SimpleRefCount__Ns3Packet_Ns3Empty_Ns3DefaultDeleter__lt__ns3Packet__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::Packet, ns3::empty, ns3::DefaultDeleter<ns3::Packet> >'])
|
||||
register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDeleter__lt__ns3TraceSourceAccessor__gt___methods(root_module, root_module['ns3::SimpleRefCount< ns3::TraceSourceAccessor, ns3::empty, ns3::DefaultDeleter<ns3::TraceSourceAccessor> >'])
|
||||
register_Ns3Tag_methods(root_module, root_module['ns3::Tag'])
|
||||
register_Ns3Time_methods(root_module, root_module['ns3::Time'])
|
||||
register_Ns3TraceSourceAccessor_methods(root_module, root_module['ns3::TraceSourceAccessor'])
|
||||
register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer'])
|
||||
register_Ns3AnimByteTag_methods(root_module, root_module['ns3::AnimByteTag'])
|
||||
register_Ns3AttributeAccessor_methods(root_module, root_module['ns3::AttributeAccessor'])
|
||||
register_Ns3AttributeChecker_methods(root_module, root_module['ns3::AttributeChecker'])
|
||||
register_Ns3AttributeValue_methods(root_module, root_module['ns3::AttributeValue'])
|
||||
@@ -445,8 +436,8 @@ def register_Ns3AnimPacketInfo_methods(root_module, cls):
|
||||
cls.add_constructor([param('ns3::AnimPacketInfo const &', 'arg0')])
|
||||
## animation-interface-helper.h (module 'netanim'): ns3::AnimPacketInfo::AnimPacketInfo() [constructor]
|
||||
cls.add_constructor([])
|
||||
## animation-interface-helper.h (module 'netanim'): ns3::AnimPacketInfo::AnimPacketInfo(ns3::Ptr<ns3::NetDevice const> tx_nd, ns3::Time const & fbTx, ns3::Time const & lbTx, ns3::Vector txLoc) [constructor]
|
||||
cls.add_constructor([param('ns3::Ptr< ns3::NetDevice const >', 'tx_nd'), param('ns3::Time const &', 'fbTx'), param('ns3::Time const &', 'lbTx'), param('ns3::Vector', 'txLoc')])
|
||||
## animation-interface-helper.h (module 'netanim'): ns3::AnimPacketInfo::AnimPacketInfo(ns3::Ptr<ns3::NetDevice const> tx_nd, ns3::Time const & fbTx, ns3::Time const & lbTx, ns3::Vector txLoc, uint32_t txNodeId=0) [constructor]
|
||||
cls.add_constructor([param('ns3::Ptr< ns3::NetDevice const >', 'tx_nd'), param('ns3::Time const &', 'fbTx'), param('ns3::Time const &', 'lbTx'), param('ns3::Vector', 'txLoc'), param('uint32_t', 'txNodeId', default_value='0')])
|
||||
## animation-interface-helper.h (module 'netanim'): ns3::AnimRxInfo ns3::AnimPacketInfo::GetRxInfo(ns3::Ptr<ns3::NetDevice const> nd) [member function]
|
||||
cls.add_method('GetRxInfo',
|
||||
'ns3::AnimRxInfo',
|
||||
@@ -477,6 +468,8 @@ def register_Ns3AnimPacketInfo_methods(root_module, cls):
|
||||
cls.add_instance_attribute('m_rx', 'std::map< unsigned int, ns3::AnimRxInfo >', is_const=False)
|
||||
## animation-interface-helper.h (module 'netanim'): ns3::AnimPacketInfo::m_txLoc [variable]
|
||||
cls.add_instance_attribute('m_txLoc', 'ns3::Vector', is_const=False)
|
||||
## animation-interface-helper.h (module 'netanim'): ns3::AnimPacketInfo::m_txNodeId [variable]
|
||||
cls.add_instance_attribute('m_txNodeId', 'uint32_t', is_const=False)
|
||||
## animation-interface-helper.h (module 'netanim'): ns3::AnimPacketInfo::m_txnd [variable]
|
||||
cls.add_instance_attribute('m_txnd', 'ns3::Ptr< ns3::NetDevice const >', is_const=False)
|
||||
return
|
||||
@@ -557,6 +550,14 @@ def register_Ns3AnimationInterface_methods(root_module, cls):
|
||||
cls.add_method('SetServerPort',
|
||||
'bool',
|
||||
[param('uint16_t', 'port')])
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimationInterface::SetStartTime(ns3::Time t) [member function]
|
||||
cls.add_method('SetStartTime',
|
||||
'void',
|
||||
[param('ns3::Time', 't')])
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimationInterface::SetStopTime(ns3::Time t) [member function]
|
||||
cls.add_method('SetStopTime',
|
||||
'void',
|
||||
[param('ns3::Time', 't')])
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimationInterface::SetXMLOutput() [member function]
|
||||
cls.add_method('SetXMLOutput',
|
||||
'void',
|
||||
@@ -750,6 +751,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Next',
|
||||
'void',
|
||||
[param('uint32_t', 'delta')])
|
||||
## buffer.h (module 'network'): uint8_t ns3::Buffer::Iterator::PeekU8() [member function]
|
||||
cls.add_method('PeekU8',
|
||||
'uint8_t',
|
||||
[])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Prev() [member function]
|
||||
cls.add_method('Prev',
|
||||
'void',
|
||||
@@ -762,6 +767,10 @@ def register_Ns3BufferIterator_methods(root_module, cls):
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): void ns3::Buffer::Iterator::Read(ns3::Buffer::Iterator start, uint32_t size) [member function]
|
||||
cls.add_method('Read',
|
||||
'void',
|
||||
[param('ns3::Buffer::Iterator', 'start'), param('uint32_t', 'size')])
|
||||
## buffer.h (module 'network'): uint16_t ns3::Buffer::Iterator::ReadLsbtohU16() [member function]
|
||||
cls.add_method('ReadLsbtohU16',
|
||||
'uint16_t',
|
||||
@@ -1056,9 +1065,9 @@ def register_Ns3Ipv4Address_methods(root_module, cls):
|
||||
'ns3::Ipv4Address',
|
||||
[param('uint8_t const *', 'buf')],
|
||||
is_static=True)
|
||||
## ipv4-address.h (module 'network'): uint32_t ns3::Ipv4Address::Get() const [member function]
|
||||
## ipv4-address.h (module 'network'): uint32_t const & ns3::Ipv4Address::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint32_t',
|
||||
'uint32_t const &',
|
||||
[],
|
||||
is_const=True)
|
||||
## ipv4-address.h (module 'network'): static ns3::Ipv4Address ns3::Ipv4Address::GetAny() [member function]
|
||||
@@ -1790,78 +1799,16 @@ def register_Ns3PacketMetadataItemIterator_methods(root_module, cls):
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIterator_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::PacketTagIterator(ns3::PacketTagIterator const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator const &', 'arg0')])
|
||||
## packet.h (module 'network'): bool ns3::PacketTagIterator::HasNext() const [member function]
|
||||
cls.add_method('HasNext',
|
||||
'bool',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item ns3::PacketTagIterator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::PacketTagIterator::Item',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagIteratorItem_methods(root_module, cls):
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator::Item::Item(ns3::PacketTagIterator::Item const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagIterator::Item const &', 'arg0')])
|
||||
## packet.h (module 'network'): void ns3::PacketTagIterator::Item::GetTag(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('GetTag',
|
||||
'void',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::TypeId ns3::PacketTagIterator::Item::GetTypeId() const [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True)
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagList_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList() [constructor]
|
||||
def register_Ns3SimpleRefCount__Ns3Chunk_Ns3ObjectBase_Ns3DefaultDeleter__lt__ns3Chunk__gt___methods(root_module, cls):
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::PacketTagList(ns3::PacketTagList const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList const &', 'o')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::Add(ns3::Tag const & tag) const [member function]
|
||||
cls.add_method('Add',
|
||||
## simple-ref-count.h (module 'core'): ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::SimpleRefCount(ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> > const & o) [copy constructor]
|
||||
cls.add_constructor([param('ns3::SimpleRefCount< ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter< ns3::Chunk > > const &', 'o')])
|
||||
## simple-ref-count.h (module 'core'): static void ns3::SimpleRefCount<ns3::Chunk, ns3::ObjectBase, ns3::DefaultDeleter<ns3::Chunk> >::Cleanup() [member function]
|
||||
cls.add_method('Cleanup',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData const * ns3::PacketTagList::Head() const [member function]
|
||||
cls.add_method('Head',
|
||||
'ns3::PacketTagList::TagData const *',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Peek(ns3::Tag & tag) const [member function]
|
||||
cls.add_method('Peek',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
is_const=True)
|
||||
## packet-tag-list.h (module 'network'): bool ns3::PacketTagList::Remove(ns3::Tag & tag) [member function]
|
||||
cls.add_method('Remove',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
## packet-tag-list.h (module 'network'): void ns3::PacketTagList::RemoveAll() [member function]
|
||||
cls.add_method('RemoveAll',
|
||||
'void',
|
||||
[])
|
||||
return
|
||||
|
||||
def register_Ns3PacketTagListTagData_methods(root_module, cls):
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData() [constructor]
|
||||
cls.add_constructor([])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::TagData(ns3::PacketTagList::TagData const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::PacketTagList::TagData const &', 'arg0')])
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::count [variable]
|
||||
cls.add_instance_attribute('count', 'uint32_t', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::data [variable]
|
||||
cls.add_instance_attribute('data', 'uint8_t [ 20 ]', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::next [variable]
|
||||
cls.add_instance_attribute('next', 'ns3::PacketTagList::TagData *', is_const=False)
|
||||
## packet-tag-list.h (module 'network'): ns3::PacketTagList::TagData::tid [variable]
|
||||
cls.add_instance_attribute('tid', 'ns3::TypeId', is_const=False)
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3SimpleRefCount__Ns3Object_Ns3ObjectBase_Ns3ObjectDeleter_methods(root_module, cls):
|
||||
@@ -1924,11 +1871,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'bool',
|
||||
[],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Next() [member function]
|
||||
cls.add_method('Next',
|
||||
'ns3::Time',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static ns3::Time ns3::Simulator::Now() [member function]
|
||||
cls.add_method('Now',
|
||||
'ns3::Time',
|
||||
@@ -1939,11 +1881,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
'void',
|
||||
[param('ns3::EventId const &', 'id')],
|
||||
is_static=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::RunOneEvent() [member function]
|
||||
cls.add_method('RunOneEvent',
|
||||
'void',
|
||||
[],
|
||||
is_static=True, deprecated=True)
|
||||
## simulator.h (module 'core'): static void ns3::Simulator::SetImplementation(ns3::Ptr<ns3::SimulatorImpl> impl) [member function]
|
||||
cls.add_method('SetImplementation',
|
||||
'void',
|
||||
@@ -1966,38 +1903,6 @@ def register_Ns3Simulator_methods(root_module, cls):
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3TagBuffer_methods(root_module, cls):
|
||||
## tag-buffer.h (module 'network'): ns3::TagBuffer::TagBuffer(ns3::TagBuffer const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::TagBuffer const &', 'arg0')])
|
||||
@@ -2237,12 +2142,25 @@ def register_Ns3TypeIdTraceSourceInformation_methods(root_module, cls):
|
||||
|
||||
def register_Ns3Vector2D_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('double', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('ns3::Vector2D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('/', root_module['ns3::Vector2D'], root_module['ns3::Vector2D'], param('double', 'right'))
|
||||
## vector.h (module 'core'): ns3::Vector2D::Vector2D(ns3::Vector2D const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Vector2D const &', 'arg0')])
|
||||
## vector.h (module 'core'): ns3::Vector2D::Vector2D(double _x, double _y) [constructor]
|
||||
cls.add_constructor([param('double', '_x'), param('double', '_y')])
|
||||
## vector.h (module 'core'): ns3::Vector2D::Vector2D() [constructor]
|
||||
cls.add_constructor([])
|
||||
## vector.h (module 'core'): double ns3::Vector2D::GetLength() const [member function]
|
||||
cls.add_method('GetLength',
|
||||
'double',
|
||||
[],
|
||||
is_const=True)
|
||||
## vector.h (module 'core'): ns3::Vector2D::x [variable]
|
||||
cls.add_instance_attribute('x', 'double', is_const=False)
|
||||
## vector.h (module 'core'): ns3::Vector2D::y [variable]
|
||||
@@ -2251,12 +2169,25 @@ def register_Ns3Vector2D_methods(root_module, cls):
|
||||
|
||||
def register_Ns3Vector3D_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('*', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('double', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_inplace_numeric_operator('+=', param('double', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('ns3::Vector3D const &', 'right'))
|
||||
cls.add_binary_numeric_operator('/', root_module['ns3::Vector3D'], root_module['ns3::Vector3D'], param('double', 'right'))
|
||||
## vector.h (module 'core'): ns3::Vector3D::Vector3D(ns3::Vector3D const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Vector3D const &', 'arg0')])
|
||||
## vector.h (module 'core'): ns3::Vector3D::Vector3D(double _x, double _y, double _z) [constructor]
|
||||
cls.add_constructor([param('double', '_x'), param('double', '_y'), param('double', '_z')])
|
||||
## vector.h (module 'core'): ns3::Vector3D::Vector3D() [constructor]
|
||||
cls.add_constructor([])
|
||||
## vector.h (module 'core'): double ns3::Vector3D::GetLength() const [member function]
|
||||
cls.add_method('GetLength',
|
||||
'double',
|
||||
[],
|
||||
is_const=True)
|
||||
## vector.h (module 'core'): ns3::Vector3D::x [variable]
|
||||
cls.add_instance_attribute('x', 'double', is_const=False)
|
||||
## vector.h (module 'core'): ns3::Vector3D::y [variable]
|
||||
@@ -2379,52 +2310,6 @@ def register_Ns3Int64x64_t_methods(root_module, cls):
|
||||
[param('ns3::int64x64_t const &', 'o')])
|
||||
return
|
||||
|
||||
def register_Ns3AnimByteTag_methods(root_module, cls):
|
||||
## animation-interface.h (module 'netanim'): ns3::AnimByteTag::AnimByteTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## animation-interface.h (module 'netanim'): ns3::AnimByteTag::AnimByteTag(ns3::AnimByteTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::AnimByteTag const &', 'arg0')])
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimByteTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## animation-interface.h (module 'netanim'): uint64_t ns3::AnimByteTag::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint64_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## animation-interface.h (module 'netanim'): ns3::TypeId ns3::AnimByteTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## animation-interface.h (module 'netanim'): uint32_t ns3::AnimByteTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## animation-interface.h (module 'netanim'): static ns3::TypeId ns3::AnimByteTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimByteTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimByteTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimByteTag::Set(uint64_t AnimUid) [member function]
|
||||
cls.add_method('Set',
|
||||
'void',
|
||||
[param('uint64_t', 'AnimUid')])
|
||||
return
|
||||
|
||||
def register_Ns3Chunk_methods(root_module, cls):
|
||||
## chunk.h (module 'network'): ns3::Chunk::Chunk() [constructor]
|
||||
cls.add_constructor([])
|
||||
@@ -2642,6 +2527,39 @@ def register_Ns3SimpleRefCount__Ns3TraceSourceAccessor_Ns3Empty_Ns3DefaultDelete
|
||||
is_static=True)
|
||||
return
|
||||
|
||||
def register_Ns3Tag_methods(root_module, cls):
|
||||
cls.add_output_stream_operator()
|
||||
## tag.h (module 'network'): ns3::Tag::Tag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## tag.h (module 'network'): ns3::Tag::Tag(ns3::Tag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::Tag const &', 'arg0')])
|
||||
## tag.h (module 'network'): void ns3::Tag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_virtual=True)
|
||||
## tag.h (module 'network'): uint32_t ns3::Tag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): static ns3::TypeId ns3::Tag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
## tag.h (module 'network'): void ns3::Tag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3Time_methods(root_module, cls):
|
||||
cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right'))
|
||||
@@ -2858,6 +2776,52 @@ def register_Ns3Trailer_methods(root_module, cls):
|
||||
is_pure_virtual=True, is_const=True, is_virtual=True)
|
||||
return
|
||||
|
||||
def register_Ns3AnimByteTag_methods(root_module, cls):
|
||||
## animation-interface.h (module 'netanim'): ns3::AnimByteTag::AnimByteTag() [constructor]
|
||||
cls.add_constructor([])
|
||||
## animation-interface.h (module 'netanim'): ns3::AnimByteTag::AnimByteTag(ns3::AnimByteTag const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::AnimByteTag const &', 'arg0')])
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimByteTag::Deserialize(ns3::TagBuffer i) [member function]
|
||||
cls.add_method('Deserialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_virtual=True)
|
||||
## animation-interface.h (module 'netanim'): uint64_t ns3::AnimByteTag::Get() const [member function]
|
||||
cls.add_method('Get',
|
||||
'uint64_t',
|
||||
[],
|
||||
is_const=True)
|
||||
## animation-interface.h (module 'netanim'): ns3::TypeId ns3::AnimByteTag::GetInstanceTypeId() const [member function]
|
||||
cls.add_method('GetInstanceTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## animation-interface.h (module 'netanim'): uint32_t ns3::AnimByteTag::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
[],
|
||||
is_const=True, is_virtual=True)
|
||||
## animation-interface.h (module 'netanim'): static ns3::TypeId ns3::AnimByteTag::GetTypeId() [member function]
|
||||
cls.add_method('GetTypeId',
|
||||
'ns3::TypeId',
|
||||
[],
|
||||
is_static=True)
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimByteTag::Print(std::ostream & os) const [member function]
|
||||
cls.add_method('Print',
|
||||
'void',
|
||||
[param('std::ostream &', 'os')],
|
||||
is_const=True, is_virtual=True)
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimByteTag::Serialize(ns3::TagBuffer i) const [member function]
|
||||
cls.add_method('Serialize',
|
||||
'void',
|
||||
[param('ns3::TagBuffer', 'i')],
|
||||
is_const=True, is_virtual=True)
|
||||
## animation-interface.h (module 'netanim'): void ns3::AnimByteTag::Set(uint64_t AnimUid) [member function]
|
||||
cls.add_method('Set',
|
||||
'void',
|
||||
[param('uint64_t', 'AnimUid')])
|
||||
return
|
||||
|
||||
def register_Ns3AttributeAccessor_methods(root_module, cls):
|
||||
## attribute.h (module 'core'): ns3::AttributeAccessor::AttributeAccessor(ns3::AttributeAccessor const & arg0) [copy constructor]
|
||||
cls.add_constructor([param('ns3::AttributeAccessor const &', 'arg0')])
|
||||
@@ -3622,11 +3586,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('AddHeader',
|
||||
'void',
|
||||
[param('ns3::Header const &', 'header')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Tag const & tag) const [member function]
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPacketTag(ns3::Ptr<const ns3::Tag> tag) [member function]
|
||||
cls.add_method('AddPacketTag',
|
||||
'void',
|
||||
[param('ns3::Tag const &', 'tag')],
|
||||
is_const=True)
|
||||
[param('ns3::Ptr< ns3::Tag const >', 'tag')])
|
||||
## packet.h (module 'network'): void ns3::Packet::AddPaddingAtEnd(uint32_t size) [member function]
|
||||
cls.add_method('AddPaddingAtEnd',
|
||||
'void',
|
||||
@@ -3685,11 +3648,6 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'ns3::Ptr< ns3::NixVector >',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): ns3::PacketTagIterator ns3::Packet::GetPacketTagIterator() const [member function]
|
||||
cls.add_method('GetPacketTagIterator',
|
||||
'ns3::PacketTagIterator',
|
||||
[],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::GetSerializedSize() const [member function]
|
||||
cls.add_method('GetSerializedSize',
|
||||
'uint32_t',
|
||||
@@ -3715,10 +3673,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): bool ns3::Packet::PeekPacketTag(ns3::Tag & tag) const [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::PeekPacketTag(ns3::TypeId tagType) const [member function]
|
||||
cls.add_method('PeekPacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')],
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')],
|
||||
is_const=True)
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::PeekTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('PeekTrailer',
|
||||
@@ -3759,10 +3717,10 @@ def register_Ns3Packet_methods(root_module, cls):
|
||||
cls.add_method('RemoveHeader',
|
||||
'uint32_t',
|
||||
[param('ns3::Header &', 'header')])
|
||||
## packet.h (module 'network'): bool ns3::Packet::RemovePacketTag(ns3::Tag & tag) [member function]
|
||||
## packet.h (module 'network'): ns3::Ptr<const ns3::Tag> ns3::Packet::RemovePacketTag(ns3::TypeId tagType) [member function]
|
||||
cls.add_method('RemovePacketTag',
|
||||
'bool',
|
||||
[param('ns3::Tag &', 'tag')])
|
||||
'ns3::Ptr< ns3::Tag const >',
|
||||
[param('ns3::TypeId', 'tagType')])
|
||||
## packet.h (module 'network'): uint32_t ns3::Packet::RemoveTrailer(ns3::Trailer & trailer) [member function]
|
||||
cls.add_method('RemoveTrailer',
|
||||
'uint32_t',
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -96,8 +96,8 @@ MyTag::GetSimpleValue (void) const
|
||||
int main (int argc, char *argv[])
|
||||
{
|
||||
// create a tag.
|
||||
MyTag tag;
|
||||
tag.SetSimpleValue (0x56);
|
||||
Ptr<MyTag> tag = CreateObject<MyTag> ();
|
||||
tag->SetSimpleValue (0x56);
|
||||
|
||||
// store the tag in a packet.
|
||||
Ptr<Packet> p = Create<Packet> (100);
|
||||
@@ -107,11 +107,10 @@ int main (int argc, char *argv[])
|
||||
Ptr<Packet> aCopy = p->Copy ();
|
||||
|
||||
// read the tag from the packet copy
|
||||
MyTag tagCopy;
|
||||
p->PeekPacketTag (tagCopy);
|
||||
Ptr<const MyTag> tagCopy = p->PeekPacketTag<MyTag> ();
|
||||
|
||||
// the copy and the original are the same !
|
||||
NS_ASSERT (tagCopy.GetSimpleValue () == tag.GetSimpleValue ());
|
||||
NS_ASSERT (tagCopy->GetSimpleValue () == tag->GetSimpleValue ());
|
||||
|
||||
aCopy->PrintPacketTags (std::cout);
|
||||
std::cout << std::endl;
|
||||
|
||||
@@ -125,6 +125,29 @@ NodeContainer::Add (std::string nodeName)
|
||||
m_nodes.push_back (node);
|
||||
}
|
||||
|
||||
|
||||
NodeContainer&
|
||||
NodeContainer::operator () (NodeContainer other)
|
||||
{
|
||||
Add (other);
|
||||
return *this;
|
||||
}
|
||||
|
||||
NodeContainer&
|
||||
NodeContainer::operator () (Ptr<Node> node)
|
||||
{
|
||||
Add (node);
|
||||
return *this;
|
||||
}
|
||||
|
||||
NodeContainer&
|
||||
NodeContainer::operator () (std::string nodeName)
|
||||
{
|
||||
Add (nodeName);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
NodeContainer
|
||||
NodeContainer::GetGlobal (void)
|
||||
{
|
||||
|
||||
@@ -273,6 +273,27 @@ public:
|
||||
*/
|
||||
void Add (std::string nodeName);
|
||||
|
||||
/**
|
||||
* \brief Wrapper for NodeContainer::Add
|
||||
*
|
||||
* \param other The NodeContainer to append.
|
||||
*/
|
||||
NodeContainer& operator () (NodeContainer other);
|
||||
|
||||
/**
|
||||
* \brief Wrapper for NodeContainer::Add
|
||||
*
|
||||
* \param node The Ptr<Node> to append.
|
||||
*/
|
||||
NodeContainer& operator () (Ptr<Node> node);
|
||||
|
||||
/**
|
||||
* \brief Wrapper for NodeContainer::Add
|
||||
*
|
||||
* \param nodeName The name of the Node Object to add to the container.
|
||||
*/
|
||||
NodeContainer& operator () (std::string nodeName);
|
||||
|
||||
/**
|
||||
* \brief Create a NodeContainer that contains a list of _all_ nodes
|
||||
* created through NodeContainer::Create() and stored in the
|
||||
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
*/
|
||||
void SetNode (Ptr<Node> node);
|
||||
|
||||
private:
|
||||
protected:
|
||||
/**
|
||||
* \brief Application specific startup code
|
||||
*
|
||||
@@ -119,6 +119,7 @@ private:
|
||||
* subclasses.
|
||||
*/
|
||||
virtual void StopApplication (void);
|
||||
|
||||
protected:
|
||||
virtual void DoDispose (void);
|
||||
virtual void DoStart (void);
|
||||
|
||||
@@ -1115,6 +1115,15 @@ Buffer::Iterator::Read (uint8_t *buffer, uint32_t size)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Buffer::Iterator::Read (Buffer::Iterator start, uint32_t size)
|
||||
{
|
||||
for (uint32_t i = 0; i < size; i++)
|
||||
{
|
||||
start.WriteU8 (ReadU8 ());
|
||||
}
|
||||
}
|
||||
|
||||
uint16_t
|
||||
Buffer::Iterator::CalculateIpChecksum (uint16_t size)
|
||||
{
|
||||
|
||||
@@ -248,6 +248,13 @@ public:
|
||||
*/
|
||||
void Write (Iterator start, Iterator end);
|
||||
|
||||
/**
|
||||
* \return the byte read in the buffer.
|
||||
*
|
||||
* Read data, but do not advance the Iterator read.
|
||||
*/
|
||||
inline uint8_t PeekU8 (void);
|
||||
|
||||
/**
|
||||
* \return the byte read in the buffer.
|
||||
*
|
||||
@@ -332,11 +339,21 @@ public:
|
||||
* \param size number of bytes to copy
|
||||
*
|
||||
* Copy size bytes of data from the internal buffer to the
|
||||
* input buffer and avance the Iterator by the number of
|
||||
* input buffer and advance the Iterator by the number of
|
||||
* bytes read.
|
||||
*/
|
||||
void Read (uint8_t *buffer, uint32_t size);
|
||||
|
||||
/**
|
||||
* \param start start iterator of the buffer to copy data into
|
||||
* \param size number of bytes to copy
|
||||
*
|
||||
* Copy size bytes of data from the internal buffer to the input buffer via
|
||||
* the provided iterator and advance the Iterator by the number of bytes
|
||||
* read.
|
||||
*/
|
||||
void Read (Iterator start, uint32_t size);
|
||||
|
||||
/**
|
||||
* \brief Calculate the checksum.
|
||||
* \param size size of the buffer.
|
||||
@@ -813,6 +830,29 @@ Buffer::Iterator::ReadNtohU32 (void)
|
||||
return retval;
|
||||
}
|
||||
|
||||
uint8_t
|
||||
Buffer::Iterator::PeekU8 (void)
|
||||
{
|
||||
NS_ASSERT_MSG (m_current >= m_dataStart &&
|
||||
m_current <= m_dataEnd,
|
||||
GetReadErrorMessage ());
|
||||
|
||||
if (m_current < m_zeroStart)
|
||||
{
|
||||
uint8_t data = m_data[m_current];
|
||||
return data;
|
||||
}
|
||||
else if (m_current < m_zeroEnd)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t data = m_data[m_current - (m_zeroEnd-m_zeroStart)];
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
uint8_t
|
||||
Buffer::Iterator::ReadU8 (void)
|
||||
{
|
||||
|
||||
@@ -1,3 +1,23 @@
|
||||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
/*
|
||||
* Copyright (c) 2005 INRIA
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation;
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
|
||||
*/
|
||||
|
||||
#include "chunk.h"
|
||||
|
||||
namespace ns3 {
|
||||
@@ -13,4 +33,8 @@ Chunk::GetTypeId (void)
|
||||
return tid;
|
||||
}
|
||||
|
||||
Chunk::~Chunk ()
|
||||
{
|
||||
}
|
||||
|
||||
} // namespace ns3
|
||||
@@ -1,7 +1,28 @@
|
||||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
/*
|
||||
* Copyright (c) 2005 INRIA
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation;
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
|
||||
*/
|
||||
|
||||
#ifndef CHUNK_H
|
||||
#define CHUNK_H
|
||||
|
||||
#include "ns3/object-base.h"
|
||||
#include "ns3/simple-ref-count.h"
|
||||
#include "buffer.h"
|
||||
|
||||
namespace ns3 {
|
||||
@@ -11,10 +32,11 @@ namespace ns3 {
|
||||
*
|
||||
* \brief abstract base class for ns3::Header and ns3::Trailer
|
||||
*/
|
||||
class Chunk : public ObjectBase
|
||||
class Chunk : public SimpleRefCount<Chunk,ObjectBase>
|
||||
{
|
||||
public:
|
||||
static TypeId GetTypeId (void);
|
||||
static TypeId GetTypeId (void);
|
||||
virtual ~Chunk ();
|
||||
|
||||
virtual uint32_t Deserialize (Buffer::Iterator start) = 0;
|
||||
virtual void Print (std::ostream &os) const = 0;
|
||||
|
||||
@@ -28,150 +28,146 @@ NS_LOG_COMPONENT_DEFINE ("PacketTagList");
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
#ifdef USE_FREE_LIST
|
||||
|
||||
struct PacketTagList::TagData *PacketTagList::g_free = 0;
|
||||
uint32_t PacketTagList::g_nfree = 0;
|
||||
|
||||
struct PacketTagList::TagData *
|
||||
PacketTagList::AllocData (void) const
|
||||
{
|
||||
NS_LOG_FUNCTION (g_nfree);
|
||||
struct PacketTagList::TagData *retval;
|
||||
if (g_free != 0)
|
||||
{
|
||||
retval = g_free;
|
||||
g_free = g_free->m_next;
|
||||
g_nfree--;
|
||||
}
|
||||
else
|
||||
{
|
||||
retval = new struct PacketTagList::TagData ();
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
||||
void
|
||||
PacketTagList::FreeData (struct TagData *data) const
|
||||
PacketTagList::Add (Ptr<const Tag> tag)
|
||||
{
|
||||
NS_LOG_FUNCTION (g_nfree << data);
|
||||
if (g_nfree > 1000)
|
||||
{
|
||||
delete data;
|
||||
return;
|
||||
}
|
||||
g_nfree++;
|
||||
data->next = g_free;
|
||||
data->tid = TypeId ();
|
||||
g_free = data;
|
||||
}
|
||||
#else
|
||||
struct PacketTagList::TagData *
|
||||
PacketTagList::AllocData (void) const
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS ();
|
||||
struct PacketTagList::TagData *retval;
|
||||
retval = new struct PacketTagList::TagData ();
|
||||
return retval;
|
||||
NS_LOG_FUNCTION (this << tag->GetInstanceTypeId ());
|
||||
|
||||
NS_ASSERT_MSG (Peek (tag->GetInstanceTypeId ()) == 0,
|
||||
"Only one tag type per packet is allowed");
|
||||
|
||||
push_back (tag);
|
||||
}
|
||||
|
||||
void
|
||||
PacketTagList::FreeData (struct TagData *data) const
|
||||
Ptr<const Tag>
|
||||
PacketTagList::Remove (TypeId tagType)
|
||||
{
|
||||
NS_LOG_FUNCTION (data);
|
||||
delete data;
|
||||
}
|
||||
#endif
|
||||
|
||||
bool
|
||||
PacketTagList::Remove (Tag &tag)
|
||||
{
|
||||
NS_LOG_FUNCTION (this << tag.GetInstanceTypeId ());
|
||||
TypeId tid = tag.GetInstanceTypeId ();
|
||||
bool found = false;
|
||||
for (struct TagData *cur = m_next; cur != 0; cur = cur->next)
|
||||
NS_LOG_FUNCTION (this << tagType);
|
||||
|
||||
for (iterator tag = begin (); tag != end (); tag++)
|
||||
{
|
||||
if (cur->tid == tid)
|
||||
if ((*tag)->GetInstanceTypeId () == tagType)
|
||||
{
|
||||
found = true;
|
||||
tag.Deserialize (TagBuffer (cur->data, cur->data+PACKET_TAG_MAX_SIZE));
|
||||
Ptr<const Tag> retval = *tag;
|
||||
erase (tag);
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
if (!found)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
struct TagData *start = 0;
|
||||
struct TagData **prevNext = &start;
|
||||
for (struct TagData *cur = m_next; cur != 0; cur = cur->next)
|
||||
{
|
||||
if (cur->tid == tid)
|
||||
{
|
||||
/**
|
||||
* XXX
|
||||
* Note: I believe that we could optimize this to
|
||||
* avoid copying each TagData located after the target id
|
||||
* and just link the already-copied list to the next tag.
|
||||
*/
|
||||
continue;
|
||||
}
|
||||
struct TagData *copy = AllocData ();
|
||||
copy->tid = cur->tid;
|
||||
copy->count = 1;
|
||||
copy->next = 0;
|
||||
memcpy (copy->data, cur->data, PACKET_TAG_MAX_SIZE);
|
||||
*prevNext = copy;
|
||||
prevNext = ©->next;
|
||||
}
|
||||
*prevNext = 0;
|
||||
RemoveAll ();
|
||||
m_next = start;
|
||||
return true;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
PacketTagList::Add (const Tag &tag) const
|
||||
Ptr<const Tag>
|
||||
PacketTagList::Peek (TypeId tagType) const
|
||||
{
|
||||
NS_LOG_FUNCTION (this << tag.GetInstanceTypeId ());
|
||||
// ensure this id was not yet added
|
||||
for (struct TagData *cur = m_next; cur != 0; cur = cur->next)
|
||||
NS_LOG_FUNCTION (this << tagType);
|
||||
for (const_iterator tag = begin (); tag != end (); tag++)
|
||||
{
|
||||
NS_ASSERT (cur->tid != tag.GetInstanceTypeId ());
|
||||
if ((*tag)->GetInstanceTypeId () == tagType)
|
||||
return *tag;
|
||||
}
|
||||
struct TagData *head = AllocData ();
|
||||
head->count = 1;
|
||||
head->next = 0;
|
||||
head->tid = tag.GetInstanceTypeId ();
|
||||
head->next = m_next;
|
||||
NS_ASSERT (tag.GetSerializedSize () <= PACKET_TAG_MAX_SIZE);
|
||||
tag.Serialize (TagBuffer (head->data, head->data+tag.GetSerializedSize ()));
|
||||
|
||||
const_cast<PacketTagList *> (this)->m_next = head;
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool
|
||||
PacketTagList::Peek (Tag &tag) const
|
||||
{
|
||||
NS_LOG_FUNCTION (this << tag.GetInstanceTypeId ());
|
||||
TypeId tid = tag.GetInstanceTypeId ();
|
||||
for (struct TagData *cur = m_next; cur != 0; cur = cur->next)
|
||||
{
|
||||
if (cur->tid == tid)
|
||||
{
|
||||
/* found tag */
|
||||
tag.Deserialize (TagBuffer (cur->data, cur->data+PACKET_TAG_MAX_SIZE));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
/* no tag found */
|
||||
return false;
|
||||
}
|
||||
|
||||
const struct PacketTagList::TagData *
|
||||
PacketTagList::Head (void) const
|
||||
{
|
||||
return m_next;
|
||||
}
|
||||
// bool
|
||||
// PacketTagList::Remove (Tag &tag)
|
||||
// {
|
||||
// NS_LOG_FUNCTION (this << tag.GetInstanceTypeId ());
|
||||
|
||||
// return false;
|
||||
|
||||
// // TypeId tid = tag.GetInstanceTypeId ();
|
||||
// // bool found = false;
|
||||
// // for (struct TagData *cur = m_next; cur != 0; cur = cur->next)
|
||||
// // {
|
||||
// // if (cur->tid == tid)
|
||||
// // {
|
||||
// // found = true;
|
||||
// // tag.Deserialize (TagBuffer (cur->data, cur->data+PACKET_TAG_MAX_SIZE));
|
||||
// // }
|
||||
// // }
|
||||
// // if (!found)
|
||||
// // {
|
||||
// // return false;
|
||||
// // }
|
||||
// // struct TagData *start = 0;
|
||||
// // struct TagData **prevNext = &start;
|
||||
// // for (struct TagData *cur = m_next; cur != 0; cur = cur->next)
|
||||
// // {
|
||||
// // if (cur->tid == tid)
|
||||
// // {
|
||||
// // /**
|
||||
// // * XXX
|
||||
// // * Note: I believe that we could optimize this to
|
||||
// // * avoid copying each TagData located after the target id
|
||||
// // * and just link the already-copied list to the next tag.
|
||||
// // */
|
||||
// // continue;
|
||||
// // }
|
||||
// // struct TagData *copy = AllocData ();
|
||||
// // copy->tid = cur->tid;
|
||||
// // copy->count = 1;
|
||||
// // copy->next = 0;
|
||||
// // memcpy (copy->data, cur->data, PACKET_TAG_MAX_SIZE);
|
||||
// // *prevNext = copy;
|
||||
// // prevNext = ©->next;
|
||||
// // }
|
||||
// // *prevNext = 0;
|
||||
// // RemoveAll ();
|
||||
// // m_next = start;
|
||||
// // return true;
|
||||
// }
|
||||
|
||||
// void
|
||||
// PacketTagList::Add (const Tag &tag) const
|
||||
// {
|
||||
// NS_LOG_FUNCTION (this << tag.GetInstanceTypeId ());
|
||||
// // ensure this id was not yet added
|
||||
|
||||
// // for (struct TagData *cur = m_next; cur != 0; cur = cur->next)
|
||||
// // {
|
||||
// // NS_ASSERT (cur->tid != tag.GetInstanceTypeId ());
|
||||
// // }
|
||||
|
||||
// // struct TagData *head = AllocData ();
|
||||
// // head->count = 1;
|
||||
// // head->next = 0;
|
||||
// // head->tid = tag.GetInstanceTypeId ();
|
||||
// // head->next = m_next;
|
||||
// // NS_ASSERT (tag.GetSerializedSize () <= PACKET_TAG_MAX_SIZE);
|
||||
// // tag.Serialize (TagBuffer (head->data, head->data+tag.GetSerializedSize ()));
|
||||
|
||||
// // const_cast<PacketTagList *> (this)->m_next = head;
|
||||
|
||||
// // m_tags.
|
||||
// }
|
||||
|
||||
// bool
|
||||
// PacketTagList::Peek (Tag &tag) const
|
||||
// {
|
||||
// NS_LOG_FUNCTION (this << tag.GetInstanceTypeId ());
|
||||
// // TypeId tid = tag.GetInstanceTypeId ();
|
||||
// // for (struct TagData *cur = m_next; cur != 0; cur = cur->next)
|
||||
// // {
|
||||
// // if (cur->tid == tid)
|
||||
// // {
|
||||
// // /* found tag */
|
||||
// // tag.Deserialize (TagBuffer (cur->data, cur->data+PACKET_TAG_MAX_SIZE));
|
||||
// // return true;
|
||||
// // }
|
||||
// // }
|
||||
|
||||
// /* no tag found */
|
||||
// return false;
|
||||
// }
|
||||
|
||||
// // const struct PacketTagList::TagData *
|
||||
// // PacketTagList::Head (void) const
|
||||
// // {
|
||||
// // return m_next;
|
||||
// // }
|
||||
|
||||
} // namespace ns3
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#define PACKET_TAG_LIST_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <ostream>
|
||||
#include <list>
|
||||
#include "ns3/type-id.h"
|
||||
|
||||
namespace ns3 {
|
||||
@@ -34,40 +34,30 @@ class Tag;
|
||||
* The maximum size (in bytes) of a Tag is stored
|
||||
* in this constant.
|
||||
*/
|
||||
#define PACKET_TAG_MAX_SIZE 20
|
||||
// #define PACKET_TAG_MAX_SIZE 20
|
||||
|
||||
class PacketTagList
|
||||
class PacketTagList : public std::list<Ptr<const Tag> >
|
||||
{
|
||||
public:
|
||||
struct TagData {
|
||||
uint8_t data[PACKET_TAG_MAX_SIZE];
|
||||
struct TagData *next;
|
||||
TypeId tid;
|
||||
uint32_t count;
|
||||
};
|
||||
// struct TagData {
|
||||
// std::vector<uint8_t> data;
|
||||
// TypeId tid;
|
||||
// uint32_t count;
|
||||
// };
|
||||
|
||||
inline PacketTagList ();
|
||||
inline PacketTagList (PacketTagList const &o);
|
||||
inline PacketTagList &operator = (PacketTagList const &o);
|
||||
inline ~PacketTagList ();
|
||||
// inline PacketTagList ();
|
||||
// inline PacketTagList (PacketTagList const &o);
|
||||
// inline PacketTagList &operator = (PacketTagList const &o);
|
||||
// inline ~PacketTagList ();
|
||||
|
||||
void Add (Tag const&tag) const;
|
||||
bool Remove (Tag &tag);
|
||||
bool Peek (Tag &tag) const;
|
||||
inline void RemoveAll (void);
|
||||
void
|
||||
Add (Ptr<const Tag> tag);
|
||||
|
||||
const struct PacketTagList::TagData *Head (void) const;
|
||||
Ptr<const Tag>
|
||||
Remove (TypeId tagType);
|
||||
|
||||
private:
|
||||
|
||||
bool Remove (TypeId tid);
|
||||
struct PacketTagList::TagData *AllocData (void) const;
|
||||
void FreeData (struct TagData *data) const;
|
||||
|
||||
static struct PacketTagList::TagData *g_free;
|
||||
static uint32_t g_nfree;
|
||||
|
||||
struct TagData *m_next;
|
||||
Ptr<const Tag>
|
||||
Peek (TypeId tagType) const;
|
||||
};
|
||||
|
||||
} // namespace ns3
|
||||
@@ -78,65 +68,38 @@ private:
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
PacketTagList::PacketTagList ()
|
||||
: m_next ()
|
||||
{
|
||||
}
|
||||
// PacketTagList::PacketTagList ()
|
||||
// {
|
||||
// }
|
||||
|
||||
PacketTagList::PacketTagList (PacketTagList const &o)
|
||||
: m_next (o.m_next)
|
||||
{
|
||||
if (m_next != 0)
|
||||
{
|
||||
m_next->count++;
|
||||
}
|
||||
}
|
||||
// PacketTagList::PacketTagList (PacketTagList const &o)
|
||||
// : m_tags (o.m_tags)
|
||||
// {
|
||||
// }
|
||||
|
||||
PacketTagList &
|
||||
PacketTagList::operator = (PacketTagList const &o)
|
||||
{
|
||||
// self assignment
|
||||
if (m_next == o.m_next)
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
RemoveAll ();
|
||||
m_next = o.m_next;
|
||||
if (m_next != 0)
|
||||
{
|
||||
m_next->count++;
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
// PacketTagList &
|
||||
// PacketTagList::operator = (PacketTagList const &o)
|
||||
// {
|
||||
// // self assignment
|
||||
// if (&o == this)
|
||||
// {
|
||||
// return *this;
|
||||
// }
|
||||
// // RemoveAll (); // ???
|
||||
// m_tags = o.m_tags;
|
||||
// return *this;
|
||||
// }
|
||||
|
||||
PacketTagList::~PacketTagList ()
|
||||
{
|
||||
RemoveAll ();
|
||||
}
|
||||
// PacketTagList::~PacketTagList ()
|
||||
// {
|
||||
// RemoveAll ();
|
||||
// }
|
||||
|
||||
void
|
||||
PacketTagList::RemoveAll (void)
|
||||
{
|
||||
struct TagData *prev = 0;
|
||||
for (struct TagData *cur = m_next; cur != 0; cur = cur->next)
|
||||
{
|
||||
cur->count--;
|
||||
if (cur->count > 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (prev != 0)
|
||||
{
|
||||
FreeData (prev);
|
||||
}
|
||||
prev = cur;
|
||||
}
|
||||
if (prev != 0)
|
||||
{
|
||||
FreeData (prev);
|
||||
}
|
||||
m_next = 0;
|
||||
}
|
||||
// void
|
||||
// PacketTagList::RemoveAll (void)
|
||||
// {
|
||||
// m_tags.clear ();
|
||||
// }
|
||||
|
||||
} // namespace ns3
|
||||
|
||||
|
||||
+93
-63
@@ -81,39 +81,39 @@ ByteTagIterator::ByteTagIterator (ByteTagList::Iterator i)
|
||||
}
|
||||
|
||||
|
||||
PacketTagIterator::PacketTagIterator (const struct PacketTagList::TagData *head)
|
||||
: m_current (head)
|
||||
{
|
||||
}
|
||||
bool
|
||||
PacketTagIterator::HasNext (void) const
|
||||
{
|
||||
return m_current != 0;
|
||||
}
|
||||
PacketTagIterator::Item
|
||||
PacketTagIterator::Next (void)
|
||||
{
|
||||
NS_ASSERT (HasNext ());
|
||||
const struct PacketTagList::TagData *prev = m_current;
|
||||
m_current = m_current->next;
|
||||
return PacketTagIterator::Item (prev);
|
||||
}
|
||||
// PacketTagIterator::PacketTagIterator (const struct PacketTagList::TagData *head)
|
||||
// : m_current (head)
|
||||
// {
|
||||
// }
|
||||
// bool
|
||||
// PacketTagIterator::HasNext (void) const
|
||||
// {
|
||||
// return m_current != 0;
|
||||
// }
|
||||
// PacketTagIterator::Item
|
||||
// PacketTagIterator::Next (void)
|
||||
// {
|
||||
// NS_ASSERT (HasNext ());
|
||||
// const struct PacketTagList::TagData *prev = m_current;
|
||||
// m_current = m_current->next;
|
||||
// return PacketTagIterator::Item (prev);
|
||||
// }
|
||||
|
||||
PacketTagIterator::Item::Item (const struct PacketTagList::TagData *data)
|
||||
: m_data (data)
|
||||
{
|
||||
}
|
||||
TypeId
|
||||
PacketTagIterator::Item::GetTypeId (void) const
|
||||
{
|
||||
return m_data->tid;
|
||||
}
|
||||
void
|
||||
PacketTagIterator::Item::GetTag (Tag &tag) const
|
||||
{
|
||||
NS_ASSERT (tag.GetInstanceTypeId () == m_data->tid);
|
||||
tag.Deserialize (TagBuffer ((uint8_t*)m_data->data, (uint8_t*)m_data->data+PACKET_TAG_MAX_SIZE));
|
||||
}
|
||||
// PacketTagIterator::Item::Item (const struct PacketTagList::TagData *data)
|
||||
// : m_data (data)
|
||||
// {
|
||||
// }
|
||||
// TypeId
|
||||
// PacketTagIterator::Item::GetTypeId (void) const
|
||||
// {
|
||||
// return m_data->tid;
|
||||
// }
|
||||
// void
|
||||
// PacketTagIterator::Item::GetTag (Tag &tag) const
|
||||
// {
|
||||
// NS_ASSERT (tag.GetInstanceTypeId () == m_data->tid);
|
||||
// tag.Deserialize (TagBuffer ((uint8_t*)m_data->data, (uint8_t*)m_data->data+PACKET_TAG_MAX_SIZE));
|
||||
// }
|
||||
|
||||
|
||||
Ptr<Packet>
|
||||
@@ -835,60 +835,90 @@ Packet::FindFirstMatchingByteTag (Tag &tag) const
|
||||
return false;
|
||||
}
|
||||
|
||||
void
|
||||
Packet::AddPacketTag (const Tag &tag) const
|
||||
// void
|
||||
// Packet::AddPacketTag (const Tag &tag) const
|
||||
// {
|
||||
// NS_LOG_FUNCTION (this << tag.GetInstanceTypeId ().GetName () << tag.GetSerializedSize ());
|
||||
// m_packetTagList.Add (tag);
|
||||
// }
|
||||
// bool
|
||||
// Packet::RemovePacketTag (Tag &tag)
|
||||
// {
|
||||
// NS_LOG_FUNCTION (this << tag.GetInstanceTypeId ().GetName () << tag.GetSerializedSize ());
|
||||
// bool found = m_packetTagList.Remove (tag);
|
||||
// return found;
|
||||
// }
|
||||
// bool
|
||||
// Packet::PeekPacketTag (Tag &tag) const
|
||||
// {
|
||||
// bool found = m_packetTagList.Peek (tag);
|
||||
// return found;
|
||||
// }
|
||||
|
||||
void
|
||||
Packet::AddPacketTag (Ptr<const Tag> tag)
|
||||
{
|
||||
NS_LOG_FUNCTION (this << tag.GetInstanceTypeId ().GetName () << tag.GetSerializedSize ());
|
||||
m_packetTagList.Add (tag);
|
||||
}
|
||||
bool
|
||||
Packet::RemovePacketTag (Tag &tag)
|
||||
|
||||
Ptr<const Tag>
|
||||
Packet::RemovePacketTag (TypeId tagType)
|
||||
{
|
||||
NS_LOG_FUNCTION (this << tag.GetInstanceTypeId ().GetName () << tag.GetSerializedSize ());
|
||||
bool found = m_packetTagList.Remove (tag);
|
||||
return found;
|
||||
return m_packetTagList.Remove (tagType);
|
||||
}
|
||||
bool
|
||||
Packet::PeekPacketTag (Tag &tag) const
|
||||
|
||||
Ptr<const Tag>
|
||||
Packet::PeekPacketTag (TypeId tagType) const
|
||||
{
|
||||
bool found = m_packetTagList.Peek (tag);
|
||||
return found;
|
||||
return m_packetTagList.Peek (tagType);
|
||||
}
|
||||
|
||||
void
|
||||
Packet::RemoveAllPacketTags (void)
|
||||
{
|
||||
NS_LOG_FUNCTION (this);
|
||||
m_packetTagList.RemoveAll ();
|
||||
m_packetTagList.clear ();
|
||||
}
|
||||
|
||||
void
|
||||
Packet::PrintPacketTags (std::ostream &os) const
|
||||
{
|
||||
PacketTagIterator i = GetPacketTagIterator ();
|
||||
while (i.HasNext ())
|
||||
for (PacketTagList::const_iterator tag = m_packetTagList.begin ();
|
||||
tag != m_packetTagList.end ();
|
||||
tag++)
|
||||
{
|
||||
PacketTagIterator::Item item = i.Next ();
|
||||
NS_ASSERT (item.GetTypeId ().HasConstructor ());
|
||||
Callback<ObjectBase *> constructor = item.GetTypeId ().GetConstructor ();
|
||||
NS_ASSERT (!constructor.IsNull ());
|
||||
ObjectBase *instance = constructor ();
|
||||
Tag *tag = dynamic_cast<Tag *> (instance);
|
||||
NS_ASSERT (tag != 0);
|
||||
item.GetTag (*tag);
|
||||
tag->Print (os);
|
||||
delete tag;
|
||||
if (i.HasNext ())
|
||||
if (tag != m_packetTagList.begin ())
|
||||
{
|
||||
os << " ";
|
||||
}
|
||||
|
||||
(*tag)->Print (os);
|
||||
}
|
||||
// PacketTagIterator i = GetPacketTagIterator ();
|
||||
// while (i.HasNext ())
|
||||
// {
|
||||
// PacketTagIterator::Item item = i.Next ();
|
||||
// NS_ASSERT (item.GetTypeId ().HasConstructor ());
|
||||
// Callback<ObjectBase *> constructor = item.GetTypeId ().GetConstructor ();
|
||||
// NS_ASSERT (!constructor.IsNull ());
|
||||
// ObjectBase *instance = constructor ();
|
||||
// Tag *tag = dynamic_cast<Tag *> (instance);
|
||||
// NS_ASSERT (tag != 0);
|
||||
// item.GetTag (*tag);
|
||||
// tag->Print (os);
|
||||
// delete tag;
|
||||
// if (i.HasNext ())
|
||||
// {
|
||||
// os << " ";
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
PacketTagIterator
|
||||
Packet::GetPacketTagIterator (void) const
|
||||
{
|
||||
return PacketTagIterator (m_packetTagList.Head ());
|
||||
}
|
||||
// PacketTagIterator
|
||||
// Packet::GetPacketTagIterator (void) const
|
||||
// {
|
||||
// return PacketTagIterator (m_packetTagList.Head ());
|
||||
// }
|
||||
|
||||
std::ostream& operator<< (std::ostream& os, const Packet &packet)
|
||||
{
|
||||
|
||||
+98
-75
@@ -104,52 +104,52 @@ private:
|
||||
ByteTagList::Iterator m_current;
|
||||
};
|
||||
|
||||
/**
|
||||
* \ingroup packet
|
||||
* \brief Iterator over the set of 'packet' tags in a packet
|
||||
*
|
||||
* This is a java-style iterator.
|
||||
*/
|
||||
class PacketTagIterator
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Identifies a tag within a packet.
|
||||
*/
|
||||
class Item
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* \returns the ns3::TypeId associated to this tag.
|
||||
*/
|
||||
TypeId GetTypeId (void) const;
|
||||
/**
|
||||
* \param tag the user tag to which the data should be copied.
|
||||
*
|
||||
* Read the requested tag and store it in the user-provided
|
||||
* tag instance. This method will crash if the type of the
|
||||
* tag provided by the user does not match the type of
|
||||
* the underlying tag.
|
||||
*/
|
||||
void GetTag (Tag &tag) const;
|
||||
private:
|
||||
friend class PacketTagIterator;
|
||||
Item (const struct PacketTagList::TagData *data);
|
||||
const struct PacketTagList::TagData *m_data;
|
||||
};
|
||||
/**
|
||||
* \returns true if calling Next is safe, false otherwise.
|
||||
*/
|
||||
bool HasNext (void) const;
|
||||
/**
|
||||
* \returns the next item found and prepare for the next one.
|
||||
*/
|
||||
Item Next (void);
|
||||
private:
|
||||
friend class Packet;
|
||||
PacketTagIterator (const struct PacketTagList::TagData *head);
|
||||
const struct PacketTagList::TagData *m_current;
|
||||
};
|
||||
// /**
|
||||
// * \ingroup packet
|
||||
// * \brief Iterator over the set of 'packet' tags in a packet
|
||||
// *
|
||||
// * This is a java-style iterator.
|
||||
// */
|
||||
// class PacketTagIterator
|
||||
// {
|
||||
// public:
|
||||
// /**
|
||||
// * Identifies a tag within a packet.
|
||||
// */
|
||||
// class Item
|
||||
// {
|
||||
// public:
|
||||
// /**
|
||||
// * \returns the ns3::TypeId associated to this tag.
|
||||
// */
|
||||
// TypeId GetTypeId (void) const;
|
||||
// /**
|
||||
// * \param tag the user tag to which the data should be copied.
|
||||
// *
|
||||
// * Read the requested tag and store it in the user-provided
|
||||
// * tag instance. This method will crash if the type of the
|
||||
// * tag provided by the user does not match the type of
|
||||
// * the underlying tag.
|
||||
// */
|
||||
// void GetTag (Tag &tag) const;
|
||||
// private:
|
||||
// friend class PacketTagIterator;
|
||||
// Item (const struct PacketTagList::TagData *data);
|
||||
// const struct PacketTagList::TagData *m_data;
|
||||
// };
|
||||
// /**
|
||||
// * \returns true if calling Next is safe, false otherwise.
|
||||
// */
|
||||
// bool HasNext (void) const;
|
||||
// /**
|
||||
// * \returns the next item found and prepare for the next one.
|
||||
// */
|
||||
// Item Next (void);
|
||||
// private:
|
||||
// friend class Packet;
|
||||
// PacketTagIterator (const struct PacketTagList::TagData *head);
|
||||
// const struct PacketTagList::TagData *m_current;
|
||||
// };
|
||||
|
||||
/**
|
||||
* \ingroup packet
|
||||
@@ -495,34 +495,57 @@ public:
|
||||
*/
|
||||
void PrintByteTags (std::ostream &os) const;
|
||||
|
||||
/**
|
||||
* \param tag the tag to store in this packet
|
||||
*
|
||||
* Add a tag to this packet. This method calls the
|
||||
* Tag::GetSerializedSize and, then, Tag::Serialize.
|
||||
*
|
||||
* Note that this method is const, that is, it does not
|
||||
* modify the state of this packet, which is fairly
|
||||
* un-intuitive.
|
||||
*/
|
||||
void AddPacketTag (const Tag &tag) const;
|
||||
/**
|
||||
* \param tag the tag to remove from this packet
|
||||
* \returns true if the requested tag is found, false
|
||||
* otherwise.
|
||||
*
|
||||
* Remove a tag from this packet. This method calls
|
||||
* Tag::Deserialize if the tag is found.
|
||||
*/
|
||||
bool RemovePacketTag (Tag &tag);
|
||||
/**
|
||||
* \param tag the tag to search in this packet
|
||||
* \returns true if the requested tag is found, false
|
||||
* otherwise.
|
||||
*
|
||||
* Search a matching tag and call Tag::Deserialize if it is found.
|
||||
*/
|
||||
bool PeekPacketTag (Tag &tag) const;
|
||||
void
|
||||
AddPacketTag (Ptr<const Tag> tag);
|
||||
|
||||
Ptr<const Tag>
|
||||
RemovePacketTag (TypeId tagType);
|
||||
|
||||
template<class T>
|
||||
Ptr<const T>
|
||||
RemovePacketTag ()
|
||||
{
|
||||
return DynamicCast<const T> (RemovePacketTag (T::GetTypeId ()));
|
||||
}
|
||||
|
||||
Ptr<const Tag>
|
||||
PeekPacketTag (TypeId tagType) const;
|
||||
|
||||
template<class T>
|
||||
Ptr<const T>
|
||||
PeekPacketTag () const
|
||||
{
|
||||
return DynamicCast<const T> (PeekPacketTag (T::GetTypeId ()));
|
||||
}
|
||||
|
||||
// /**
|
||||
// * \param tag the tag to store in this packet
|
||||
// *
|
||||
// * Add a tag to this packet. This method calls the
|
||||
// * Tag::GetSerializedSize and, then, Tag::Serialize.
|
||||
// *
|
||||
// * Note that this method is const, that is, it does not
|
||||
// * modify the state of this packet, which is fairly
|
||||
// * un-intuitive.
|
||||
// */
|
||||
// void AddPacketTag (const Tag &tag) const;
|
||||
// /**
|
||||
// * \param tag the tag to remove from this packet
|
||||
// * \returns true if the requested tag is found, false
|
||||
// * otherwise.
|
||||
// *
|
||||
// * Remove a tag from this packet. This method calls
|
||||
// * Tag::Deserialize if the tag is found.
|
||||
// */
|
||||
// bool RemovePacketTag (Tag &tag);
|
||||
// /**
|
||||
// * \param tag the tag to search in this packet
|
||||
// * \returns true if the requested tag is found, false
|
||||
// * otherwise.
|
||||
// *
|
||||
// * Search a matching tag and call Tag::Deserialize if it is found.
|
||||
// */
|
||||
// bool PeekPacketTag (Tag &tag) const;
|
||||
/**
|
||||
* Remove all packet tags.
|
||||
*/
|
||||
@@ -542,7 +565,7 @@ public:
|
||||
* \returns an object which can be used to iterate over the list of
|
||||
* packet tags.
|
||||
*/
|
||||
PacketTagIterator GetPacketTagIterator (void) const;
|
||||
// PacketTagIterator GetPacketTagIterator (void) const;
|
||||
|
||||
/* Note: These functions support a temporary solution
|
||||
* to a specific problem in this generic class, i.e.
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifndef TAG_H
|
||||
#define TAG_H
|
||||
|
||||
#include "ns3/object-base.h"
|
||||
#include "ns3/object.h"
|
||||
#include "tag-buffer.h"
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace ns3 {
|
||||
*
|
||||
* New kinds of tags can be created by subclassing this base class.
|
||||
*/
|
||||
class Tag : public ObjectBase
|
||||
class Tag : public Object
|
||||
{
|
||||
public:
|
||||
static TypeId GetTypeId (void);
|
||||
@@ -71,6 +71,13 @@ public:
|
||||
virtual void Print (std::ostream &os) const = 0;
|
||||
};
|
||||
|
||||
inline std::ostream &
|
||||
operator << (std::ostream &os, const Tag &tag)
|
||||
{
|
||||
tag.Print (os);
|
||||
return os;
|
||||
}
|
||||
|
||||
} // namespace ns3
|
||||
|
||||
#endif /* TAG_H */
|
||||
@@ -391,33 +391,33 @@ PacketTest::DoRun (void)
|
||||
|
||||
{
|
||||
Packet p;
|
||||
ATestTag<10> a;
|
||||
Ptr< ATestTag<10> > a = CreateObject< ATestTag<10> > ();
|
||||
p.AddPacketTag (a);
|
||||
NS_TEST_EXPECT_MSG_EQ (p.PeekPacketTag (a), true, "trivial");
|
||||
ATestTag<11> b;
|
||||
NS_TEST_EXPECT_MSG_NE (p.PeekPacketTag< ATestTag<10> > (), 0, "trivial");
|
||||
Ptr< ATestTag<11> > b = CreateObject< ATestTag<11> > ();
|
||||
p.AddPacketTag (b);
|
||||
NS_TEST_EXPECT_MSG_EQ (p.PeekPacketTag (b), true, "trivial");
|
||||
NS_TEST_EXPECT_MSG_EQ (p.PeekPacketTag (a), true, "trivial");
|
||||
NS_TEST_EXPECT_MSG_NE (p.PeekPacketTag< ATestTag<11> > (), 0, "trivial");
|
||||
NS_TEST_EXPECT_MSG_NE (p.PeekPacketTag< ATestTag<10> > (), 0, "trivial");
|
||||
Packet copy = p;
|
||||
NS_TEST_EXPECT_MSG_EQ (copy.PeekPacketTag (b), true, "trivial");
|
||||
NS_TEST_EXPECT_MSG_EQ (copy.PeekPacketTag (a), true, "trivial");
|
||||
ATestTag<12> c;
|
||||
NS_TEST_EXPECT_MSG_EQ (copy.PeekPacketTag (c), false, "trivial");
|
||||
NS_TEST_EXPECT_MSG_NE (copy.PeekPacketTag< ATestTag<11> > (), 0, "trivial");
|
||||
NS_TEST_EXPECT_MSG_NE (copy.PeekPacketTag< ATestTag<10> > (), 0, "trivial");
|
||||
Ptr< ATestTag<12> > c = CreateObject< ATestTag<12> > ();
|
||||
NS_TEST_EXPECT_MSG_EQ (copy.PeekPacketTag< ATestTag<12> > (), 0, "trivial");
|
||||
copy.AddPacketTag (c);
|
||||
NS_TEST_EXPECT_MSG_EQ (copy.PeekPacketTag (c), true, "trivial");
|
||||
NS_TEST_EXPECT_MSG_EQ (copy.PeekPacketTag (b), true, "trivial");
|
||||
NS_TEST_EXPECT_MSG_EQ (copy.PeekPacketTag (a), true, "trivial");
|
||||
NS_TEST_EXPECT_MSG_EQ (p.PeekPacketTag (c), false, "trivial");
|
||||
copy.RemovePacketTag (b);
|
||||
NS_TEST_EXPECT_MSG_EQ (copy.PeekPacketTag (b), false, "trivial");
|
||||
NS_TEST_EXPECT_MSG_EQ (p.PeekPacketTag (b), true, "trivial");
|
||||
p.RemovePacketTag (a);
|
||||
NS_TEST_EXPECT_MSG_EQ (p.PeekPacketTag (a), false, "trivial");
|
||||
NS_TEST_EXPECT_MSG_EQ (copy.PeekPacketTag (a), true, "trivial");
|
||||
NS_TEST_EXPECT_MSG_EQ (p.PeekPacketTag (c), false, "trivial");
|
||||
NS_TEST_EXPECT_MSG_EQ (copy.PeekPacketTag (c), true, "trivial");
|
||||
NS_TEST_EXPECT_MSG_NE (copy.PeekPacketTag< ATestTag<12> > (), 0, "trivial");
|
||||
NS_TEST_EXPECT_MSG_NE (copy.PeekPacketTag< ATestTag<11> > (), 0, "trivial");
|
||||
NS_TEST_EXPECT_MSG_NE (copy.PeekPacketTag< ATestTag<10> > (), 0, "trivial");
|
||||
NS_TEST_EXPECT_MSG_EQ (p.PeekPacketTag< ATestTag<12> > (), 0, "trivial");
|
||||
copy.RemovePacketTag< ATestTag<11> > ();
|
||||
NS_TEST_EXPECT_MSG_EQ (copy.PeekPacketTag< ATestTag<11> > (), 0, "trivial");
|
||||
NS_TEST_EXPECT_MSG_NE (p.PeekPacketTag< ATestTag<11> > (), 0, "trivial");
|
||||
p.RemovePacketTag< ATestTag<10> > ();
|
||||
NS_TEST_EXPECT_MSG_EQ (p.PeekPacketTag< ATestTag<10> > (), 0, "trivial");
|
||||
NS_TEST_EXPECT_MSG_NE (copy.PeekPacketTag< ATestTag<10> > (), 0, "trivial");
|
||||
NS_TEST_EXPECT_MSG_EQ (p.PeekPacketTag< ATestTag<12> > (), 0, "trivial");
|
||||
NS_TEST_EXPECT_MSG_NE (copy.PeekPacketTag< ATestTag<12> > (), 0, "trivial");
|
||||
p.RemoveAllPacketTags ();
|
||||
NS_TEST_EXPECT_MSG_EQ (p.PeekPacketTag (b), false, "trivial");
|
||||
NS_TEST_EXPECT_MSG_EQ (p.PeekPacketTag< ATestTag<11> > (), 0, "trivial");
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
@@ -130,10 +130,10 @@ Ipv4Mask::GetInverse (void) const
|
||||
void
|
||||
Ipv4Mask::Print (std::ostream &os) const
|
||||
{
|
||||
os << ((m_mask >> 24) & 0xff) << "."
|
||||
<< ((m_mask >> 16) & 0xff) << "."
|
||||
<< ((m_mask >> 8) & 0xff) << "."
|
||||
<< ((m_mask >> 0) & 0xff);
|
||||
os << (int)((m_mask >> 24) & 0xff) << "."
|
||||
<< (int)((m_mask >> 16) & 0xff) << "."
|
||||
<< (int)((m_mask >> 8) & 0xff) << "."
|
||||
<< (int)((m_mask >> 0) & 0xff);
|
||||
}
|
||||
|
||||
|
||||
@@ -183,7 +183,7 @@ Ipv4Address::Ipv4Address (char const *address)
|
||||
m_address = AsciiToIpv4Host (address);
|
||||
}
|
||||
|
||||
uint32_t
|
||||
const uint32_t &
|
||||
Ipv4Address::Get (void) const
|
||||
{
|
||||
return m_address;
|
||||
|
||||
@@ -57,7 +57,8 @@ public:
|
||||
* Get the host-order 32-bit IP address
|
||||
* \return the host-order 32-bit IP address
|
||||
*/
|
||||
uint32_t Get (void) const;
|
||||
const uint32_t &
|
||||
Get (void) const;
|
||||
/**
|
||||
* input address is in host order.
|
||||
* \param address The host order 32-bit address
|
||||
|
||||
@@ -156,11 +156,12 @@ PacketSocket::DoBind (const PacketSocketAddress &address)
|
||||
dev = 0;
|
||||
}
|
||||
m_node->RegisterProtocolHandler (MakeCallback (&PacketSocket::ForwardUp, this),
|
||||
address.GetProtocol (), dev);
|
||||
address.GetProtocol (), dev, (0 == dev));
|
||||
m_state = STATE_BOUND;
|
||||
m_protocol = address.GetProtocol ();
|
||||
m_isSingleDevice = address.IsSingleDevice ();
|
||||
m_device = address.GetSingleDevice ();
|
||||
m_boundnetdevice = dev;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -376,8 +377,6 @@ PacketSocket::ForwardUp (Ptr<NetDevice> device, Ptr<const Packet> packet,
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
PacketSocketAddress address;
|
||||
address.SetPhysicalAddress (from);
|
||||
address.SetSingleDevice (device->GetIfIndex ());
|
||||
@@ -386,9 +385,16 @@ PacketSocket::ForwardUp (Ptr<NetDevice> device, Ptr<const Packet> packet,
|
||||
if ((m_rxAvailable + packet->GetSize ()) <= m_rcvBufSize)
|
||||
{
|
||||
Ptr<Packet> copy = packet->Copy ();
|
||||
SocketAddressTag tag;
|
||||
tag.SetAddress (address);
|
||||
copy->AddPacketTag (tag);
|
||||
Ptr<DeviceNameTag> dnt = CreateObject<DeviceNameTag> ();
|
||||
dnt->SetDeviceName (device->GetTypeId ().GetName ());
|
||||
Ptr<PacketSocketTag> pst = CreateObject<PacketSocketTag> ();
|
||||
pst->SetPacketType (packetType);
|
||||
pst->SetDestAddress (to);
|
||||
Ptr<SocketAddressTag> tag = CreateObject<SocketAddressTag> ();
|
||||
tag->SetAddress (address);
|
||||
copy->AddPacketTag (tag); // Attach From Physical Address
|
||||
copy->AddPacketTag (pst); // Attach Packet Type and Dest Address
|
||||
copy->AddPacketTag (dnt); // Attach device source name
|
||||
m_deliveryQueue.push (copy);
|
||||
m_rxAvailable += packet->GetSize ();
|
||||
NS_LOG_LOGIC ("UID is " << packet->GetUid () << " PacketSocket " << this);
|
||||
@@ -443,11 +449,9 @@ PacketSocket::RecvFrom (uint32_t maxSize, uint32_t flags, Address &fromAddress)
|
||||
Ptr<Packet> packet = Recv (maxSize, flags);
|
||||
if (packet != 0)
|
||||
{
|
||||
SocketAddressTag tag;
|
||||
bool found;
|
||||
found = packet->PeekPacketTag (tag);
|
||||
NS_ASSERT (found);
|
||||
fromAddress = tag.GetAddress ();
|
||||
Ptr<const SocketAddressTag> tag = packet->PeekPacketTag<SocketAddressTag> ();
|
||||
NS_ASSERT (tag != 0);
|
||||
fromAddress = tag->GetAddress ();
|
||||
}
|
||||
return packet;
|
||||
}
|
||||
@@ -491,4 +495,145 @@ PacketSocket::GetAllowBroadcast () const
|
||||
return false;
|
||||
}
|
||||
|
||||
/***************************************************************
|
||||
* PacketSocket Tags
|
||||
***************************************************************/
|
||||
|
||||
PacketSocketTag::PacketSocketTag ()
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
PacketSocketTag::SetPacketType(NetDevice::PacketType t)
|
||||
{
|
||||
m_packetType = t;
|
||||
}
|
||||
|
||||
NetDevice::PacketType
|
||||
PacketSocketTag::GetPacketType (void) const
|
||||
{
|
||||
return m_packetType;
|
||||
}
|
||||
|
||||
void
|
||||
PacketSocketTag::SetDestAddress(Address a)
|
||||
{
|
||||
m_destAddr = a;
|
||||
}
|
||||
|
||||
Address
|
||||
PacketSocketTag::GetDestAddress (void) const
|
||||
{
|
||||
return m_destAddr;
|
||||
}
|
||||
|
||||
NS_OBJECT_ENSURE_REGISTERED (PacketSocketTag);
|
||||
|
||||
TypeId
|
||||
PacketSocketTag::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::PacketSocketTag")
|
||||
.SetParent<Tag> ()
|
||||
.AddConstructor<PacketSocketTag> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
TypeId
|
||||
PacketSocketTag::GetInstanceTypeId (void) const
|
||||
{
|
||||
return GetTypeId ();
|
||||
}
|
||||
uint32_t
|
||||
PacketSocketTag::GetSerializedSize (void) const
|
||||
{
|
||||
return 1 + m_destAddr.GetSerializedSize();
|
||||
}
|
||||
void
|
||||
PacketSocketTag::Serialize (TagBuffer i) const
|
||||
{
|
||||
i.WriteU8 (m_packetType);
|
||||
m_destAddr.Serialize (i);
|
||||
}
|
||||
void
|
||||
PacketSocketTag::Deserialize (TagBuffer i)
|
||||
{
|
||||
m_packetType = (NetDevice::PacketType) i.ReadU8 ();
|
||||
m_destAddr.Deserialize (i);
|
||||
}
|
||||
void
|
||||
PacketSocketTag::Print (std::ostream &os) const
|
||||
{
|
||||
os << "packetType=" << m_packetType;
|
||||
}
|
||||
|
||||
/***************************************************************
|
||||
* DeviceName Tags
|
||||
***************************************************************/
|
||||
|
||||
DeviceNameTag::DeviceNameTag ()
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
DeviceNameTag::SetDeviceName (std::string n)
|
||||
{
|
||||
if ( n.substr(0,5) == "ns3::" )
|
||||
{
|
||||
n = n.substr (5);
|
||||
}
|
||||
m_deviceName = n;
|
||||
}
|
||||
|
||||
std::string
|
||||
DeviceNameTag::GetDeviceName (void) const
|
||||
{
|
||||
return m_deviceName;
|
||||
}
|
||||
|
||||
NS_OBJECT_ENSURE_REGISTERED (DeviceNameTag);
|
||||
|
||||
TypeId
|
||||
DeviceNameTag::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::DeviceNameTag")
|
||||
.SetParent<Tag> ()
|
||||
.AddConstructor<DeviceNameTag> ();
|
||||
return tid;
|
||||
}
|
||||
TypeId
|
||||
DeviceNameTag::GetInstanceTypeId (void) const
|
||||
{
|
||||
return GetTypeId ();
|
||||
}
|
||||
uint32_t
|
||||
DeviceNameTag::GetSerializedSize (void) const
|
||||
{
|
||||
uint32_t s = 1 + m_deviceName.size();
|
||||
return s;
|
||||
}
|
||||
void
|
||||
DeviceNameTag::Serialize (TagBuffer i) const
|
||||
{
|
||||
const char *n = m_deviceName.c_str();
|
||||
uint8_t l = (uint8_t) strlen (n);
|
||||
|
||||
i.WriteU8 (l);
|
||||
i.Write ( (uint8_t*) n , (uint32_t) l );
|
||||
}
|
||||
void
|
||||
DeviceNameTag::Deserialize (TagBuffer i)
|
||||
{
|
||||
uint8_t l = i.ReadU8();
|
||||
char buf[256];
|
||||
|
||||
i.Read ( (uint8_t* ) buf, (uint32_t) l);
|
||||
m_deviceName = std::string (buf, l);
|
||||
}
|
||||
void
|
||||
DeviceNameTag::Print (std::ostream &os) const
|
||||
{
|
||||
os << "DeviceName=" << m_deviceName;
|
||||
}
|
||||
|
||||
|
||||
} // namespace ns3
|
||||
@@ -141,6 +141,53 @@ private:
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* \brief This class implements a tag that carries the dest address of a packet and the packet type.
|
||||
*
|
||||
*/
|
||||
class PacketSocketTag : public Tag
|
||||
{
|
||||
public:
|
||||
PacketSocketTag ();
|
||||
void SetPacketType (NetDevice::PacketType t);
|
||||
NetDevice::PacketType GetPacketType (void) const;
|
||||
void SetDestAddress(Address a);
|
||||
Address GetDestAddress (void) const;
|
||||
|
||||
static TypeId GetTypeId (void);
|
||||
virtual TypeId GetInstanceTypeId (void) const;
|
||||
virtual uint32_t GetSerializedSize (void) const;
|
||||
virtual void Serialize (TagBuffer i) const;
|
||||
virtual void Deserialize (TagBuffer i);
|
||||
virtual void Print (std::ostream &os) const;
|
||||
|
||||
private:
|
||||
std::string m_deviceName;
|
||||
NetDevice::PacketType m_packetType;
|
||||
Address m_destAddr;
|
||||
};
|
||||
/**
|
||||
* \brief This class implements a tag that carries the ns3 device name from where a packet is coming.
|
||||
*
|
||||
*/
|
||||
class DeviceNameTag : public Tag
|
||||
{
|
||||
public:
|
||||
DeviceNameTag ();
|
||||
void SetDeviceName (std::string n);
|
||||
std::string GetDeviceName (void) const;
|
||||
|
||||
static TypeId GetTypeId (void);
|
||||
virtual TypeId GetInstanceTypeId (void) const;
|
||||
virtual uint32_t GetSerializedSize (void) const;
|
||||
virtual void Serialize (TagBuffer i) const;
|
||||
virtual void Deserialize (TagBuffer i);
|
||||
virtual void Print (std::ostream &os) const;
|
||||
|
||||
private:
|
||||
std::string m_deviceName;
|
||||
};
|
||||
|
||||
} // namespace ns3
|
||||
|
||||
#endif /* PACKET_SOCKET_H */
|
||||
|
||||
@@ -361,7 +361,7 @@ private:
|
||||
*
|
||||
* See: http://tools.ietf.org/html/rfc5444 for details.
|
||||
*/
|
||||
class PbbPacket : public SimpleRefCount<PbbPacket,Header>
|
||||
class PbbPacket : public Header
|
||||
{
|
||||
public:
|
||||
typedef std::list< Ptr<PbbTlv> >::iterator TlvIterator;
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil -*- */
|
||||
/*
|
||||
* Copyright (c) 2011 University of California, Los Angeles
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation;
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
* Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,267 @@
|
||||
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil -*- */
|
||||
/*
|
||||
* Copyright (c) 2011 University of California, Los Angeles
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation;
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
* Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
|
||||
*/
|
||||
|
||||
#ifndef _TRIE_H_
|
||||
#define _TRIE_H_
|
||||
|
||||
#ifndef __GNUC__
|
||||
#error "gcc is required to compile this code"
|
||||
#else
|
||||
|
||||
#include <ext/pb_ds/assoc_container.hpp>
|
||||
#include <ext/pb_ds/trie_policy.hpp>
|
||||
#include <ext/pb_ds/tag_and_trait.hpp>
|
||||
|
||||
#if __GNUC__ < 4 || (__GNUC__==4 && __GNUC_MINOR__<=1)
|
||||
#error "gcc version at least 4.1 is required to compile this code"
|
||||
#elif (__GNUC__==4 && __GNUC_MINOR__<3)
|
||||
#define PB_DS pb_ds
|
||||
#else
|
||||
#define PB_DS __gnu_pbds
|
||||
#endif
|
||||
|
||||
#endif // __GNUC__
|
||||
|
||||
/**
|
||||
* At least for now, trie implementation is based on gcc policy-based data containers
|
||||
*
|
||||
* Important!!! This trie simplifies/optimizes work with IPv4 prefixes.
|
||||
* There is an assumption that nobody will use IP netmasks other than 255.255.255.0, 255.255.0.0, 255.0.0.0, or 0.0.0.0.
|
||||
* As a result, branching happens on a byte level, not on bit a level.
|
||||
*/
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
/**
|
||||
* \brief IPv4 version of element-access traits for patricia trie
|
||||
*
|
||||
* Refer to http://gcc.gnu.org/onlinedocs/libstdc++/ext/pb_ds/trie_based_containers.html
|
||||
*/
|
||||
class Ipv4AddressTrieEAccessTraits
|
||||
{
|
||||
public:
|
||||
// Size type.
|
||||
typedef size_t size_type;
|
||||
|
||||
// Key type.
|
||||
typedef Ipv4Address key_type;
|
||||
|
||||
// Const key reference type.
|
||||
typedef const Ipv4Address & const_key_reference;
|
||||
|
||||
// Element const iterator type.
|
||||
typedef const uint8_t * const_iterator;
|
||||
|
||||
// Element type.
|
||||
typedef uint8_t e_type;
|
||||
|
||||
enum
|
||||
{
|
||||
min_e_val = 0,
|
||||
max_e_val = 255,
|
||||
max_size = max_e_val - min_e_val + 1
|
||||
};
|
||||
|
||||
public:
|
||||
// Returns a const_iterator to the first element of r_key.
|
||||
inline static const_iterator
|
||||
begin (const_key_reference r_key);
|
||||
|
||||
// Returns a const_iterator to the after-last element of r_key.
|
||||
inline static const_iterator
|
||||
end (const_key_reference r_key);
|
||||
|
||||
// Maps an element to a position.
|
||||
inline static size_type
|
||||
e_pos (e_type e);
|
||||
};
|
||||
|
||||
Ipv4AddressTrieEAccessTraits::const_iterator
|
||||
Ipv4AddressTrieEAccessTraits::begin (Ipv4AddressTrieEAccessTraits::const_key_reference r_key)
|
||||
{
|
||||
return reinterpret_cast<Ipv4AddressTrieEAccessTraits::const_iterator> (&r_key.Get ());
|
||||
}
|
||||
|
||||
Ipv4AddressTrieEAccessTraits::const_iterator
|
||||
Ipv4AddressTrieEAccessTraits::end (Ipv4AddressTrieEAccessTraits::const_key_reference r_key)
|
||||
{
|
||||
return sizeof (r_key.Get ()) + reinterpret_cast<Ipv4AddressTrieEAccessTraits::const_iterator> (&r_key.Get ());
|
||||
}
|
||||
|
||||
Ipv4AddressTrieEAccessTraits::size_type
|
||||
Ipv4AddressTrieEAccessTraits::e_pos (Ipv4AddressTrieEAccessTraits::e_type e)
|
||||
{
|
||||
return e;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
#include <ext/pb_ds/detail/trie_policy/trie_policy_base.hpp>
|
||||
|
||||
#define PB_DS_BASE_C_DEC \
|
||||
PB_DS::detail::trie_policy_base<Const_Node_Iterator,Node_Iterator,E_Access_Traits,Allocator>
|
||||
|
||||
template<typename Const_Node_Iterator,
|
||||
class Node_Iterator,
|
||||
class E_Access_Traits,
|
||||
class Allocator>
|
||||
class TrieLongestPrefixMatch : private PB_DS_BASE_C_DEC
|
||||
{
|
||||
private:
|
||||
typedef PB_DS_BASE_C_DEC base_type;
|
||||
public:
|
||||
typedef typename base_type::key_type key_type;
|
||||
typedef typename base_type::const_key_reference const_key_reference;
|
||||
|
||||
// Element access traits.
|
||||
typedef E_Access_Traits e_access_traits;
|
||||
|
||||
// Const element iterator.
|
||||
typedef typename e_access_traits::const_iterator const_e_iterator;
|
||||
|
||||
// Allocator type.
|
||||
typedef Allocator allocator;
|
||||
|
||||
// Size type.
|
||||
typedef typename allocator::size_type size_type;
|
||||
typedef PB_DS::detail::null_node_metadata metadata_type;
|
||||
typedef Const_Node_Iterator const_node_iterator;
|
||||
typedef Node_Iterator node_iterator;
|
||||
typedef typename const_node_iterator::value_type const_iterator;
|
||||
typedef typename node_iterator::value_type iterator;
|
||||
|
||||
inline const_iterator
|
||||
longest_prefix_match (const_key_reference r_key)
|
||||
{
|
||||
return longest_prefix_match (
|
||||
get_e_access_traits().begin (r_key),
|
||||
get_e_access_traits().end (r_key));
|
||||
}
|
||||
|
||||
inline const_iterator
|
||||
longest_prefix_match (typename e_access_traits::const_iterator b, typename e_access_traits::const_iterator e)
|
||||
{
|
||||
if (empty())
|
||||
return (end());
|
||||
|
||||
node_iterator nd_it = node_begin ();
|
||||
node_iterator end_nd_it = node_end ();
|
||||
|
||||
const e_access_traits& r_traits = get_e_access_traits ();
|
||||
const size_type given_range_length = std::distance (b, e);
|
||||
|
||||
while (true)
|
||||
{
|
||||
if (nd_it == end_nd_it) return end ();
|
||||
|
||||
const size_type common_range_length =
|
||||
base_type::common_prefix_len (nd_it, b, e, r_traits);
|
||||
|
||||
if (common_range_length >= given_range_length) // not sure what this condition is for...
|
||||
{
|
||||
return rightmost_it (nd_it);
|
||||
}
|
||||
|
||||
nd_it = next_child (nd_it, b, e, end_nd_it, r_traits);
|
||||
}
|
||||
}
|
||||
|
||||
protected:
|
||||
inline void
|
||||
operator()(node_iterator node_it, const_node_iterator end_nd_it) const
|
||||
{
|
||||
}
|
||||
|
||||
private:
|
||||
// Returns true if the container is empty.
|
||||
virtual bool
|
||||
empty() const = 0;
|
||||
|
||||
// Returns the const iterator associated with the just-after last element.
|
||||
virtual const_iterator
|
||||
end() const = 0;
|
||||
|
||||
// Returns the iterator associated with the just-after last element.
|
||||
virtual iterator
|
||||
end() = 0;
|
||||
|
||||
// Returns the const_node_iterator associated with the trie's root node.
|
||||
virtual const_node_iterator
|
||||
node_begin() const = 0;
|
||||
|
||||
// Returns the node_iterator associated with the trie's root node.
|
||||
virtual node_iterator
|
||||
node_begin() = 0;
|
||||
|
||||
// Returns the const_node_iterator associated with a just-after leaf node.
|
||||
virtual const_node_iterator
|
||||
node_end() const = 0;
|
||||
|
||||
// Returns the node_iterator associated with a just-after leaf node.
|
||||
virtual node_iterator
|
||||
node_end() = 0;
|
||||
|
||||
// Access to the cmp_fn object.
|
||||
virtual const e_access_traits&
|
||||
get_e_access_traits() const = 0;
|
||||
|
||||
node_iterator
|
||||
next_child(node_iterator nd_it, const_e_iterator b, const_e_iterator e,
|
||||
node_iterator end_nd_it, const e_access_traits &r_traits)
|
||||
{
|
||||
const size_type num_children = nd_it.num_children();
|
||||
|
||||
node_iterator ret = end_nd_it;
|
||||
size_type max_length = 0;
|
||||
|
||||
for (size_type i = 0; i < num_children; ++i)
|
||||
{
|
||||
node_iterator pot = nd_it.get_child (i);
|
||||
|
||||
const size_type common_range_length =
|
||||
PB_DS_BASE_C_DEC::common_prefix_len (pot, b, e, r_traits);
|
||||
|
||||
if (common_range_length > max_length)
|
||||
{
|
||||
ret = pot;
|
||||
|
||||
max_length = common_range_length;
|
||||
}
|
||||
}
|
||||
|
||||
return (ret);
|
||||
}
|
||||
};
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
template<class MappedValue>
|
||||
class Ipv4AddressTrie : public PB_DS::trie<Ipv4Address,MappedValue,Ipv4AddressTrieEAccessTraits,
|
||||
PB_DS::pat_trie_tag,TrieLongestPrefixMatch>
|
||||
{
|
||||
};
|
||||
|
||||
} // namespace ns3
|
||||
|
||||
#endif // _TRIE_H_
|
||||
@@ -123,6 +123,7 @@ def build(bld):
|
||||
'utils/simple-channel.h',
|
||||
'utils/simple-net-device.h',
|
||||
'utils/pcap-test.h',
|
||||
'utils/trie.h',
|
||||
'helper/application-container.h',
|
||||
'helper/net-device-container.h',
|
||||
'helper/node-container.h',
|
||||
|
||||
Loaded 100 of 154 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user