Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

SUCmp< T1, UT2 > Class Template Reference

#include <Operators.h>

List of all members.

Static Public Member Functions

bool eq (T1 v1, UT2 v2)
bool ge (T1 v1, UT2 v2)
bool gr (T1 v1, UT2 v2)
bool le (T1 v1, UT2 v2)
bool lt (T1 v1, UT2 v2)
bool ne (T1 v1, UT2 v2)
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>
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>
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>
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>
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>
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>
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>
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 Thu Aug 2 06:44:50 2007 for libdap++ by  doxygen 1.3.9.1