ObjReference: Provide operator!=

Logical symmetry.
This commit is contained in:
Lioncash 2020-07-10 15:58:03 -04:00
parent 015e6ec40c
commit b4eadc2184
1 changed files with 15 additions and 0 deletions

View File

@ -80,6 +80,11 @@ public:
{
return (mNodeID == rkOther.mNodeID && mpScene == rkOther.mpScene);
}
bool operator!=(const CNodePtr& other) const
{
return !operator==(other);
}
};
class CInstancePtr
@ -109,6 +114,11 @@ public:
{
return (mInstanceID == rkOther.mInstanceID && mpArea == rkOther.mpArea);
}
bool operator!=(const CInstancePtr& other) const
{
return !operator==(other);
}
};
class CLinkPtr
@ -137,6 +147,11 @@ public:
{
return (mpInstance == rkOther.mpInstance && mLinkIndex == rkOther.mLinkIndex);
}
bool operator!=(const CLinkPtr& other) const
{
return !operator==(other);
}
};
DEFINE_PTR_LIST_CLASS(CNodePtrList, CNodePtr, CSceneNode*)