add missing TypeId::HasParent method

This commit is contained in:
Mathieu Lacage committed 2008-05-14 13:54:23 -07:00
1 parent 1260c63f09
commit 304db645e0
2 files changed
+8

No files matched your search

+6
View File
@@ -473,6 +473,12 @@ TypeId::GetParent (void) const
return TypeId (parent);
}
bool
TypeId::HasParent (void) const
{
uint16_t parent = Singleton<IidManager>::Get ()->GetParent (m_tid);
return parent != m_tid;
}
bool
TypeId::IsChildOf (TypeId other) const
{
TypeId tmp = *this;
+2
View File
@@ -109,6 +109,8 @@ public:
*/
TypeId GetParent (void) const;
bool HasParent (void) const;
/**
* \param other a parent TypeId
* \returns true if the input TypeId is really a parent