In file No file:

template bool rops (T1 a, T2 b, int op)

This template function is used to compare two values of two instances of the DODS simple types (Byte,

Documentation

This template function is used to compare two values of two instances of the DODS simple types (Byte, ..., Str). The function does not take the DODS objects as arguments; the caller must access the values of those objects and pass them to this function. The reason for this is that all the possible functions that could be generated from this template would have to be explicitly listed as friend functions in each of the DODS simple type classes. In the current implementation, only the simple type classes must be friends - to see why, look at Byte::ops and note that it accesses the #_buf# member of Int16, ..., Float64 and thus must be a friend of those classes. NB: This would all be simpler if: 1) g++ supported template friend functions (without explicit listing of all the template's arguments). 2) we did not have unsigned types.
Parameters:
T1 - The type of #a#.
T2 - The type of #b#.
C - A class which implements the policy used for comparing #a# and #b#.
a - The first argument.
b - The second argument.
op - The relational operator.
See Also:
Byte::ops

alphabetic index hierarchy of classes


generated by doc++