--- a/src/core/type-id.cc Mon Mar 17 13:12:17 2008 -0700
+++ b/src/core/type-id.cc Mon Mar 17 13:31:08 2008 -0700
@@ -664,6 +664,17 @@
return 0;
}
+uint16_t
+TypeId::GetUid (void) const
+{
+ return m_tid;
+}
+void
+TypeId::SetUid (uint16_t tid)
+{
+ m_tid = tid;
+}
+
std::ostream & operator << (std::ostream &os, TypeId tid)
{
os << tid.GetName ();
--- a/src/core/type-id.h Mon Mar 17 13:12:17 2008 -0700
+++ b/src/core/type-id.h Mon Mar 17 13:31:08 2008 -0700
@@ -258,6 +258,8 @@
bool LookupAttributeByName (std::string name, struct AttributeInfo *info) const;
Ptr<const TraceSourceAccessor> LookupTraceSourceByName (std::string name) const;
+ uint16_t GetUid (void) const;
+ void SetUid (uint16_t tid);
// construct an invalid TypeId.
TypeId ();