add missing TypeId::HasParent method
This commit is contained in:
1 parent
1260c63f09
commit
304db645e0
2 files changed
+8
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user