SUCmp< T1, UT2 > Class Template Reference

#include <Operators.h>

List of all members.

Static Public Member Functions

static bool eq (T1 v1, UT2 v2)
static bool ge (T1 v1, UT2 v2)
static bool gr (T1 v1, UT2 v2)
static bool le (T1 v1, UT2 v2)
static bool lt (T1 v1, UT2 v2)
static bool ne (T1 v1, UT2 v2)
static bool re (T1, UT2)


Detailed Description

template<class T1, class UT2>
class SUCmp< T1, UT2 >

Compare two numerical types, the first one signed and the second unsigned. If the signed argument is negative, zero is used in the comparison. This class is one implementation of the comparison policy used by rops. This class is here to make writing the Byte::ops, ... member functions simpler. It is not necessary since the functions could twiddle the order of arguments to rops and use USCmp. Having this class make Byte:ops, ... simpler to read and write.

See also:
Byte::ops

USCmp

Cmp

ops

Definition at line 147 of file Operators.h.


Member Function Documentation

template<class T1, class UT2>
static bool SUCmp< T1, UT2 >::eq ( T1  v1,
UT2  v2 
) [inline, static]

Definition at line 150 of file Operators.h.

References dods_max().

Here is the call graph for this function:

template<class T1, class UT2>
static bool SUCmp< T1, UT2 >::ge ( T1  v1,
UT2  v2 
) [inline, static]

Definition at line 162 of file Operators.h.

References dods_max().

Here is the call graph for this function:

template<class T1, class UT2>
static bool SUCmp< T1, UT2 >::gr ( T1  v1,
UT2  v2 
) [inline, static]

Definition at line 158 of file Operators.h.

References dods_max().

Here is the call graph for this function:

template<class T1, class UT2>
static bool SUCmp< T1, UT2 >::le ( T1  v1,
UT2  v2 
) [inline, static]

Definition at line 170 of file Operators.h.

References dods_max().

Here is the call graph for this function:

template<class T1, class UT2>
static bool SUCmp< T1, UT2 >::lt ( T1  v1,
UT2  v2 
) [inline, static]

Definition at line 166 of file Operators.h.

References dods_max().

Here is the call graph for this function:

template<class T1, class UT2>
static bool SUCmp< T1, UT2 >::ne ( T1  v1,
UT2  v2 
) [inline, static]

Definition at line 154 of file Operators.h.

References dods_max().

Here is the call graph for this function:

template<class T1, class UT2>
static bool SUCmp< T1, UT2 >::re ( T1  ,
UT2   
) [inline, static]

Definition at line 174 of file Operators.h.


The documentation for this class was generated from the following file:
Generated on Wed Jun 27 12:58:27 2007 for libdap++ by  doxygen 1.4.7