Exemple #1
0
inline int ZTBQueryNode::Compare(const ZRef<ZTBQueryNode>& iOther)
	{
	// An extant node is greater than an absent node.
	if (!iOther)
		return 1;

	// VERY IMPORTANT. pRevCompare returns 1 if the callee is less than
	// the param. So we invoke it on iOther to get the sense that callers expect.
	return iOther.GetObject()->pRevCompare(this);
	}