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

TLDefaultOperators_OrdRel2< T, ORD, T2, ORD2 > Struct Template Reference

Relational operator template for simple cases. More...

#include <defop.h>

List of all members.

Static Public Member Functions

bool lt (T const &a, T2 const &b)
bool le (T const &a, T2 const &b)
bool gt (T const &a, T2 const &b)
bool ge (T const &a, T2 const &b)
bool eq (T const &a, T2 const &b)
bool ne (T const &a, T2 const &b)


Detailed Description

template<typename T, typename ORD, typename T2, typename ORD2>
struct TLDefaultOperators_OrdRel2< T, ORD, T2, ORD2 >

Relational operator template for simple cases.

Author:
Wolfgang Wieser ] wwieser (a) gmx <*> de [
Instead of using full-blown TLDefaultOperators_Relational, one can use this template. The relational operators will use the standard C operators (<,>,<=,>=,==,!=) but the parameter to compare will be queried using ORD::ord(T) and ORD2::ord(T2) Hence, "ord" must be a static member of ORD and must be able to return a value suitable for comparison for T and T2 types, respectively.

Definition at line 99 of file defop.h.


Member Function Documentation

template<typename T, typename ORD, typename T2, typename ORD2>
bool TLDefaultOperators_OrdRel2< T, ORD, T2, ORD2 >::eq T const &  a,
T2 const &  b
[inline, static]
 

Definition at line 109 of file defop.h.

template<typename T, typename ORD, typename T2, typename ORD2>
bool TLDefaultOperators_OrdRel2< T, ORD, T2, ORD2 >::ge T const &  a,
T2 const &  b
[inline, static]
 

Definition at line 107 of file defop.h.

template<typename T, typename ORD, typename T2, typename ORD2>
bool TLDefaultOperators_OrdRel2< T, ORD, T2, ORD2 >::gt T const &  a,
T2 const &  b
[inline, static]
 

Definition at line 105 of file defop.h.

template<typename T, typename ORD, typename T2, typename ORD2>
bool TLDefaultOperators_OrdRel2< T, ORD, T2, ORD2 >::le T const &  a,
T2 const &  b
[inline, static]
 

Definition at line 103 of file defop.h.

template<typename T, typename ORD, typename T2, typename ORD2>
bool TLDefaultOperators_OrdRel2< T, ORD, T2, ORD2 >::lt T const &  a,
T2 const &  b
[inline, static]
 

Definition at line 101 of file defop.h.

template<typename T, typename ORD, typename T2, typename ORD2>
bool TLDefaultOperators_OrdRel2< T, ORD, T2, ORD2 >::ne T const &  a,
T2 const &  b
[inline, static]
 

Definition at line 111 of file defop.h.


The documentation for this struct was generated from the following file:
Generated on Sat Feb 19 22:35:49 2005 for Ray by doxygen 1.3.5