| 991 | /***********************************************************************/ |
| 992 | template <class TYPE> |
| 993 | int TYPVAL<TYPE>::CompareValue(PVAL vp) |
| 994 | { |
| 995 | //assert(vp->GetType() == Type); |
| 996 | |
| 997 | // Process filtering on numeric values. |
| 998 | TYPE n = GetTypedValue(vp); |
| 999 | |
| 1000 | //if (trace(1)) |
| 1001 | // htrc(" Comparing: val=%d,%d\n", Tval, n); |
| 1002 | |
| 1003 | return (Tval > n) ? 1 : (Tval < n) ? (-1) : 0; |
| 1004 | } // end of CompareValue |
| 1005 | |
| 1006 | /***********************************************************************/ |
| 1007 | /* Return max type value if b is true, else min type value. */ |
no test coverage detected