OLD | NEW |
1 from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandler
s | 1 from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandler
s |
2 | 2 |
3 def register_types(module): | 3 def register_types(module): |
4 root_module = module.get_root() | 4 root_module = module.get_root() |
5 ···· | 5 ···· |
6 ## error-model.h: ns3::ErrorUnit [enumeration] | 6 ## error-model.h: ns3::ErrorUnit [enumeration] |
7 module.add_enum('ErrorUnit', ['EU_BIT', 'EU_BYTE', 'EU_PKT']) | 7 module.add_enum('ErrorUnit', ['EU_BIT', 'EU_BYTE', 'EU_PKT']) |
8 ## buffer.h: ns3::Buffer [class] | 8 ## buffer.h: ns3::Buffer [class] |
9 module.add_class('Buffer') | 9 module.add_class('Buffer') |
10 ## buffer.h: ns3::Buffer::Iterator [class] | 10 ## buffer.h: ns3::Buffer::Iterator [class] |
(...skipping 29 matching lines...) Expand all Loading... |
40 ## pcap-file.h: ns3::PcapFile [class] | 40 ## pcap-file.h: ns3::PcapFile [class] |
41 module.add_class('PcapFile') | 41 module.add_class('PcapFile') |
42 ## tag.h: ns3::Tag [class] | 42 ## tag.h: ns3::Tag [class] |
43 module.add_class('Tag', parent=root_module['ns3::ObjectBase']) | 43 module.add_class('Tag', parent=root_module['ns3::ObjectBase']) |
44 ## tag-buffer.h: ns3::TagBuffer [class] | 44 ## tag-buffer.h: ns3::TagBuffer [class] |
45 module.add_class('TagBuffer') | 45 module.add_class('TagBuffer') |
46 ## chunk.h: ns3::Chunk [class] | 46 ## chunk.h: ns3::Chunk [class] |
47 module.add_class('Chunk', parent=root_module['ns3::ObjectBase']) | 47 module.add_class('Chunk', parent=root_module['ns3::ObjectBase']) |
48 ## header.h: ns3::Header [class] | 48 ## header.h: ns3::Header [class] |
49 module.add_class('Header', parent=root_module['ns3::Chunk']) | 49 module.add_class('Header', parent=root_module['ns3::Chunk']) |
| 50 ## output-stream-object.h: ns3::OutputStreamObject [class] |
| 51 module.add_class('OutputStreamObject', parent=root_module['ns3::Object']) |
| 52 ## pcap-file-object.h: ns3::PcapFileObject [class] |
| 53 module.add_class('PcapFileObject', parent=root_module['ns3::Object']) |
50 ## pcap-writer.h: ns3::PcapWriter [class] | 54 ## pcap-writer.h: ns3::PcapWriter [class] |
51 module.add_class('PcapWriter', parent=root_module['ns3::Object']) | 55 module.add_class('PcapWriter', parent=root_module['ns3::Object']) |
52 ## simple-ref-count.h: ns3::SimpleRefCount<ns3::AsciiWriter, ns3::empty, ns3
::DefaultDeleter<ns3::AsciiWriter> > [class] | 56 ## simple-ref-count.h: ns3::SimpleRefCount<ns3::AsciiWriter, ns3::empty, ns3
::DefaultDeleter<ns3::AsciiWriter> > [class] |
53 module.add_class('SimpleRefCount', automatic_type_narrowing=True, template_p
arameters=['ns3::AsciiWriter', 'ns3::empty', 'ns3::DefaultDeleter<ns3::AsciiWrit
er>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountin
gMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetRe
ferenceCount')) | 57 module.add_class('SimpleRefCount', automatic_type_narrowing=True, template_p
arameters=['ns3::AsciiWriter', 'ns3::empty', 'ns3::DefaultDeleter<ns3::AsciiWrit
er>'], parent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountin
gMethodsPolicy(incref_method='Ref', decref_method='Unref', peekref_method='GetRe
ferenceCount')) |
54 ## simple-ref-count.h: ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::Def
aultDeleter<ns3::Packet> > [class] | 58 ## simple-ref-count.h: ns3::SimpleRefCount<ns3::Packet, ns3::empty, ns3::Def
aultDeleter<ns3::Packet> > [class] |
55 module.add_class('SimpleRefCount', automatic_type_narrowing=True, template_p
arameters=['ns3::Packet', 'ns3::empty', 'ns3::DefaultDeleter<ns3::Packet>'], par
ent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPo
licy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCou
nt')) | 59 module.add_class('SimpleRefCount', automatic_type_narrowing=True, template_p
arameters=['ns3::Packet', 'ns3::empty', 'ns3::DefaultDeleter<ns3::Packet>'], par
ent=root_module['ns3::empty'], memory_policy=cppclass.ReferenceCountingMethodsPo
licy(incref_method='Ref', decref_method='Unref', peekref_method='GetReferenceCou
nt')) |
56 ## trailer.h: ns3::Trailer [class] | 60 ## trailer.h: ns3::Trailer [class] |
57 module.add_class('Trailer', parent=root_module['ns3::Chunk']) | 61 module.add_class('Trailer', parent=root_module['ns3::Chunk']) |
58 ## ascii-writer.h: ns3::AsciiWriter [class] | 62 ## ascii-writer.h: ns3::AsciiWriter [class] |
59 module.add_class('AsciiWriter', parent=root_module['ns3::SimpleRefCount< ns3
::AsciiWriter, ns3::empty, ns3::DefaultDeleter<ns3::AsciiWriter> >']) | 63 module.add_class('AsciiWriter', parent=root_module['ns3::SimpleRefCount< ns3
::AsciiWriter, ns3::empty, ns3::DefaultDeleter<ns3::AsciiWriter> >']) |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 register_Ns3PacketMetadataItemIterator_methods(root_module, root_module['ns3
::PacketMetadata::ItemIterator']) | 172 register_Ns3PacketMetadataItemIterator_methods(root_module, root_module['ns3
::PacketMetadata::ItemIterator']) |
169 register_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketT
agIterator']) | 173 register_Ns3PacketTagIterator_methods(root_module, root_module['ns3::PacketT
agIterator']) |
170 register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::Pac
ketTagIterator::Item']) | 174 register_Ns3PacketTagIteratorItem_methods(root_module, root_module['ns3::Pac
ketTagIterator::Item']) |
171 register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagLi
st']) | 175 register_Ns3PacketTagList_methods(root_module, root_module['ns3::PacketTagLi
st']) |
172 register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::Pack
etTagList::TagData']) | 176 register_Ns3PacketTagListTagData_methods(root_module, root_module['ns3::Pack
etTagList::TagData']) |
173 register_Ns3PcapFile_methods(root_module, root_module['ns3::PcapFile']) | 177 register_Ns3PcapFile_methods(root_module, root_module['ns3::PcapFile']) |
174 register_Ns3Tag_methods(root_module, root_module['ns3::Tag']) | 178 register_Ns3Tag_methods(root_module, root_module['ns3::Tag']) |
175 register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer']) | 179 register_Ns3TagBuffer_methods(root_module, root_module['ns3::TagBuffer']) |
176 register_Ns3Chunk_methods(root_module, root_module['ns3::Chunk']) | 180 register_Ns3Chunk_methods(root_module, root_module['ns3::Chunk']) |
177 register_Ns3Header_methods(root_module, root_module['ns3::Header']) | 181 register_Ns3Header_methods(root_module, root_module['ns3::Header']) |
| 182 register_Ns3OutputStreamObject_methods(root_module, root_module['ns3::Output
StreamObject']) |
| 183 register_Ns3PcapFileObject_methods(root_module, root_module['ns3::PcapFileOb
ject']) |
178 register_Ns3PcapWriter_methods(root_module, root_module['ns3::PcapWriter']) | 184 register_Ns3PcapWriter_methods(root_module, root_module['ns3::PcapWriter']) |
179 register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer']) | 185 register_Ns3Trailer_methods(root_module, root_module['ns3::Trailer']) |
180 register_Ns3AsciiWriter_methods(root_module, root_module['ns3::AsciiWriter']
) | 186 register_Ns3AsciiWriter_methods(root_module, root_module['ns3::AsciiWriter']
) |
181 register_Ns3DataRateChecker_methods(root_module, root_module['ns3::DataRateC
hecker']) | 187 register_Ns3DataRateChecker_methods(root_module, root_module['ns3::DataRateC
hecker']) |
182 register_Ns3DataRateValue_methods(root_module, root_module['ns3::DataRateVal
ue']) | 188 register_Ns3DataRateValue_methods(root_module, root_module['ns3::DataRateVal
ue']) |
183 register_Ns3ErrorModel_methods(root_module, root_module['ns3::ErrorModel']) | 189 register_Ns3ErrorModel_methods(root_module, root_module['ns3::ErrorModel']) |
184 register_Ns3ListErrorModel_methods(root_module, root_module['ns3::ListErrorM
odel']) | 190 register_Ns3ListErrorModel_methods(root_module, root_module['ns3::ListErrorM
odel']) |
185 register_Ns3NixVector_methods(root_module, root_module['ns3::NixVector']) | 191 register_Ns3NixVector_methods(root_module, root_module['ns3::NixVector']) |
186 register_Ns3Packet_methods(root_module, root_module['ns3::Packet']) | 192 register_Ns3Packet_methods(root_module, root_module['ns3::Packet']) |
187 register_Ns3RateErrorModel_methods(root_module, root_module['ns3::RateErrorM
odel']) | 193 register_Ns3RateErrorModel_methods(root_module, root_module['ns3::RateErrorM
odel']) |
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
941 'void',· | 947 'void',· |
942 [param('std::ostream &', 'os')],· | 948 [param('std::ostream &', 'os')],· |
943 is_pure_virtual=True, is_const=True, is_virtual=True) | 949 is_pure_virtual=True, is_const=True, is_virtual=True) |
944 ## header.h: void ns3::Header::Serialize(ns3::Buffer::Iterator start) const
[member function] | 950 ## header.h: void ns3::Header::Serialize(ns3::Buffer::Iterator start) const
[member function] |
945 cls.add_method('Serialize',· | 951 cls.add_method('Serialize',· |
946 'void',· | 952 'void',· |
947 [param('ns3::Buffer::Iterator', 'start')],· | 953 [param('ns3::Buffer::Iterator', 'start')],· |
948 is_pure_virtual=True, is_const=True, is_virtual=True) | 954 is_pure_virtual=True, is_const=True, is_virtual=True) |
949 return | 955 return |
950 | 956 |
| 957 def register_Ns3OutputStreamObject_methods(root_module, cls): |
| 958 ## output-stream-object.h: ns3::OutputStreamObject::OutputStreamObject(ns3::
OutputStreamObject const & arg0) [copy constructor] |
| 959 cls.add_constructor([param('ns3::OutputStreamObject const &', 'arg0')]) |
| 960 ## output-stream-object.h: ns3::OutputStreamObject::OutputStreamObject() [co
nstructor] |
| 961 cls.add_constructor([]) |
| 962 ## output-stream-object.h: std::ostream * ns3::OutputStreamObject::GetStream
() [member function] |
| 963 cls.add_method('GetStream',· |
| 964 'std::ostream *',· |
| 965 []) |
| 966 ## output-stream-object.h: static ns3::TypeId ns3::OutputStreamObject::GetTy
peId() [member function] |
| 967 cls.add_method('GetTypeId',· |
| 968 'ns3::TypeId',· |
| 969 [],· |
| 970 is_static=True) |
| 971 ## output-stream-object.h: void ns3::OutputStreamObject::SetStream(std::ostr
eam * ostream) [member function] |
| 972 cls.add_method('SetStream',· |
| 973 'void',· |
| 974 [param('std::ostream *', 'ostream')]) |
| 975 return |
| 976 |
| 977 def register_Ns3PcapFileObject_methods(root_module, cls): |
| 978 ## pcap-file-object.h: ns3::PcapFileObject::PcapFileObject(ns3::PcapFileObje
ct const & arg0) [copy constructor] |
| 979 cls.add_constructor([param('ns3::PcapFileObject const &', 'arg0')]) |
| 980 ## pcap-file-object.h: ns3::PcapFileObject::PcapFileObject() [constructor] |
| 981 cls.add_constructor([]) |
| 982 ## pcap-file-object.h: void ns3::PcapFileObject::Close() [member function] |
| 983 cls.add_method('Close',· |
| 984 'void',· |
| 985 []) |
| 986 ## pcap-file-object.h: uint32_t ns3::PcapFileObject::GetDataLinkType() [memb
er function] |
| 987 cls.add_method('GetDataLinkType',· |
| 988 'uint32_t',· |
| 989 []) |
| 990 ## pcap-file-object.h: uint32_t ns3::PcapFileObject::GetMagic() [member func
tion] |
| 991 cls.add_method('GetMagic',· |
| 992 'uint32_t',· |
| 993 []) |
| 994 ## pcap-file-object.h: uint32_t ns3::PcapFileObject::GetSigFigs() [member fu
nction] |
| 995 cls.add_method('GetSigFigs',· |
| 996 'uint32_t',· |
| 997 []) |
| 998 ## pcap-file-object.h: uint32_t ns3::PcapFileObject::GetSnapLen() [member fu
nction] |
| 999 cls.add_method('GetSnapLen',· |
| 1000 'uint32_t',· |
| 1001 []) |
| 1002 ## pcap-file-object.h: int32_t ns3::PcapFileObject::GetTimeZoneOffset() [mem
ber function] |
| 1003 cls.add_method('GetTimeZoneOffset',· |
| 1004 'int32_t',· |
| 1005 []) |
| 1006 ## pcap-file-object.h: static ns3::TypeId ns3::PcapFileObject::GetTypeId() [
member function] |
| 1007 cls.add_method('GetTypeId',· |
| 1008 'ns3::TypeId',· |
| 1009 [],· |
| 1010 is_static=True) |
| 1011 ## pcap-file-object.h: uint16_t ns3::PcapFileObject::GetVersionMajor() [memb
er function] |
| 1012 cls.add_method('GetVersionMajor',· |
| 1013 'uint16_t',· |
| 1014 []) |
| 1015 ## pcap-file-object.h: uint16_t ns3::PcapFileObject::GetVersionMinor() [memb
er function] |
| 1016 cls.add_method('GetVersionMinor',· |
| 1017 'uint16_t',· |
| 1018 []) |
| 1019 ## pcap-file-object.h: bool ns3::PcapFileObject::Init(uint32_t dataLinkType,
uint32_t snapLen=ns3::PcapFile::SNAPLEN_DEFAULT, int32_t tzCorrection=ns3::Pcap
File::ZONE_DEFAULT) [member function] |
| 1020 cls.add_method('Init',· |
| 1021 'bool',· |
| 1022 [param('uint32_t', 'dataLinkType'), param('uint32_t', 'snapLe
n', default_value='ns3::PcapFile::SNAPLEN_DEFAULT'), param('int32_t', 'tzCorrect
ion', default_value='ns3::PcapFile::ZONE_DEFAULT')]) |
| 1023 ## pcap-file-object.h: bool ns3::PcapFileObject::Open(std::string const & fi
lename, std::string const & mode) [member function] |
| 1024 cls.add_method('Open',· |
| 1025 'bool',· |
| 1026 [param('std::string const &', 'filename'), param('std::string
const &', 'mode')]) |
| 1027 ## pcap-file-object.h: bool ns3::PcapFileObject::Write(ns3::Time t, ns3::Ptr
<ns3::Packet const> p) [member function] |
| 1028 cls.add_method('Write',· |
| 1029 'bool',· |
| 1030 [param('ns3::Time', 't'), param('ns3::Ptr< ns3::Packet const
>', 'p')]) |
| 1031 ## pcap-file-object.h: bool ns3::PcapFileObject::Write(ns3::Time t, uint8_t
const * buffer, uint32_t length) [member function] |
| 1032 cls.add_method('Write',· |
| 1033 'bool',· |
| 1034 [param('ns3::Time', 't'), param('uint8_t const *', 'buffer'),
param('uint32_t', 'length')]) |
| 1035 return |
| 1036 |
951 def register_Ns3PcapWriter_methods(root_module, cls): | 1037 def register_Ns3PcapWriter_methods(root_module, cls): |
952 ## pcap-writer.h: ns3::PcapWriter::PcapWriter(ns3::PcapWriter const & arg0)
[copy constructor] | 1038 ## pcap-writer.h: ns3::PcapWriter::PcapWriter(ns3::PcapWriter const & arg0)
[copy constructor] |
953 cls.add_constructor([param('ns3::PcapWriter const &', 'arg0')]) | 1039 cls.add_constructor([param('ns3::PcapWriter const &', 'arg0')]) |
954 ## pcap-writer.h: ns3::PcapWriter::PcapWriter() [constructor] | 1040 ## pcap-writer.h: ns3::PcapWriter::PcapWriter() [constructor] |
955 cls.add_constructor([]) | 1041 cls.add_constructor([]) |
956 ## pcap-writer.h: static ns3::TypeId ns3::PcapWriter::GetTypeId() [member fu
nction] | 1042 ## pcap-writer.h: static ns3::TypeId ns3::PcapWriter::GetTypeId() [member fu
nction] |
957 cls.add_method('GetTypeId',· | 1043 cls.add_method('GetTypeId',· |
958 'ns3::TypeId',· | 1044 'ns3::TypeId',· |
959 [],· | 1045 [],· |
960 is_static=True) | 1046 is_static=True) |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1485 | 1571 |
1486 def register_functions_ns3_flame(module, root_module): | 1572 def register_functions_ns3_flame(module, root_module): |
1487 return | 1573 return |
1488 | 1574 |
1489 def register_functions_ns3_internal(module, root_module): | 1575 def register_functions_ns3_internal(module, root_module): |
1490 return | 1576 return |
1491 | 1577 |
1492 def register_functions_ns3_olsr(module, root_module): | 1578 def register_functions_ns3_olsr(module, root_module): |
1493 return | 1579 return |
1494 | 1580 |
OLD | NEW |