add a default constructor for the TypeId class

This commit is contained in:
Mathieu Lacage
2008-02-08 02:21:23 +01:00
parent bd0ca7917a
commit eec4df655d
2 changed files with 6 additions and 0 deletions

View File

@@ -365,6 +365,10 @@ TypeIdTraceResolver::TraceAll (std::ostream &os, const TraceContext &context)
* The TypeId class
*********************************************************************/
TypeId::TypeId ()
: m_tid (0)
{}
TypeId::TypeId (std::string name)
{
uint16_t uid = Singleton<IidManager>::Get ()->AllocateUid (name);

View File

@@ -233,6 +233,8 @@ public:
uint32_t flags,
Ptr<const ParamSpec> spec);
// construct an invalid TypeId.
TypeId ();
~TypeId ();
private:
friend class Object;