P4C
The P4 Compiler
Loading...
Searching...
No Matches
LiftCompare< T > Class Template Reference

#include <cmp.h>

Inheritance diagram for LiftCompare< T >:
[legend]

Public Member Functions

 OPERATOR (equal, Equal)
 
 OPERATOR (not_equal, NotEqual)
 
bool operator!= (const T &other) const
 
- Public Member Functions inherited from LiftEqual< T >
 OPERATOR (equal, Equal)
 
 OPERATOR (not_equal, NotEqual)
 
bool operator!= (const T &other) const
 
virtual bool operator== (const T &) const =0
 
- Public Member Functions inherited from LiftLess< T >
 OPERATOR (equal, Equal)
 
 OPERATOR (greater, Greater)
 
 OPERATOR (greater_equal, GreaterEqual)
 
 OPERATOR (less, Less)
 
 OPERATOR (less_equal, LessEqual)
 
 OPERATOR (not_equal, NotEqual)
 
bool operator!= (const T &other) const
 
virtual bool operator< (const T &) const =0
 
bool operator<= (const T &other) const
 
bool operator== (const T &other) const
 
bool operator> (const T &other) const
 
bool operator>= (const T &other) const
 

Detailed Description

template<class T>
class LiftCompare< T >

Similar to LiftLess, except allows subclasses to provide a more efficient ==. The virtual operator== is assumed to be the equivalence relation induced by operator<.