equal
deleted
inserted
replaced
384 {} |
384 {} |
385 TypeId |
385 TypeId |
386 TypeId::LookupByName (std::string name) |
386 TypeId::LookupByName (std::string name) |
387 { |
387 { |
388 uint16_t uid = Singleton<IidManager>::Get ()->GetUid (name); |
388 uint16_t uid = Singleton<IidManager>::Get ()->GetUid (name); |
389 NS_ASSERT (uid != 0); |
389 NS_ASSERT_MSG (uid != 0, "Assert in TypeId::LookupByName: " << name << " not found"); |
390 return TypeId (uid); |
390 return TypeId (uid); |
391 } |
391 } |
392 bool |
392 bool |
393 TypeId::LookupByNameFailSafe (std::string name, TypeId *tid) |
393 TypeId::LookupByNameFailSafe (std::string name, TypeId *tid) |
394 { |
394 { |