bindings/python/ns3_module_core.py
changeset 4261 82be63aaf35a
parent 4248 6e0c97efccd0
child 4267 c6c745185930
equal deleted inserted replaced
4260:29587ce02a57 4261:82be63aaf35a
  1057     ## type-id.h: bool ns3::TypeId::IsChildOf(ns3::TypeId other) const [member function]
  1057     ## type-id.h: bool ns3::TypeId::IsChildOf(ns3::TypeId other) const [member function]
  1058     cls.add_method('IsChildOf', 
  1058     cls.add_method('IsChildOf', 
  1059                    'bool', 
  1059                    'bool', 
  1060                    [param('ns3::TypeId', 'other')], 
  1060                    [param('ns3::TypeId', 'other')], 
  1061                    is_const=True)
  1061                    is_const=True)
       
  1062     ## type-id.h: static bool ns3::TypeId::LookupAttributeByFullName(std::string fullName, ns3::TypeId::AttributeInfo * info) [member function]
       
  1063     cls.add_method('LookupAttributeByFullName', 
       
  1064                    'bool', 
       
  1065                    [param('std::string', 'fullName'), param('ns3::TypeId::AttributeInfo *', 'info')], 
       
  1066                    is_static=True)
  1062     ## type-id.h: bool ns3::TypeId::LookupAttributeByName(std::string name, ns3::TypeId::AttributeInfo * info) const [member function]
  1067     ## type-id.h: bool ns3::TypeId::LookupAttributeByName(std::string name, ns3::TypeId::AttributeInfo * info) const [member function]
  1063     cls.add_method('LookupAttributeByName', 
  1068     cls.add_method('LookupAttributeByName', 
  1064                    'bool', 
  1069                    'bool', 
  1065                    [param('std::string', 'name'), param('ns3::TypeId::AttributeInfo *', 'info', transfer_ownership=False)], 
  1070                    [param('std::string', 'name'), param('ns3::TypeId::AttributeInfo *', 'info', transfer_ownership=False)], 
  1066                    is_const=True)
  1071                    is_const=True)
  1122                    is_const=True)
  1127                    is_const=True)
  1123     ## random-variable.h: double ns3::UniformVariable::GetValue(double s, double l) [member function]
  1128     ## random-variable.h: double ns3::UniformVariable::GetValue(double s, double l) [member function]
  1124     cls.add_method('GetValue', 
  1129     cls.add_method('GetValue', 
  1125                    'double', 
  1130                    'double', 
  1126                    [param('double', 's'), param('double', 'l')])
  1131                    [param('double', 's'), param('double', 'l')])
       
  1132     ## random-variable.h: uint32_t ns3::UniformVariable::GetInteger(uint32_t s, uint32_t l) [member function]
       
  1133     cls.add_method('GetInteger', 
       
  1134                    'uint32_t', 
       
  1135                    [param('uint32_t', 's'), param('uint32_t', 'l')])
  1127     return
  1136     return
  1128 
  1137 
  1129 def register_Ns3UnsafeAttributeList_methods(root_module, cls):
  1138 def register_Ns3UnsafeAttributeList_methods(root_module, cls):
  1130     ## attribute-list.h: ns3::UnsafeAttributeList::UnsafeAttributeList() [constructor]
  1139     ## attribute-list.h: ns3::UnsafeAttributeList::UnsafeAttributeList() [constructor]
  1131     cls.add_constructor([])
  1140     cls.add_constructor([])