P4C
The P4 Compiler
Loading...
Searching...
No Matches
LiftLess< T > Class Template Referenceabstract

#include <cmp.h>

Inheritance diagram for LiftLess< T >:
[legend]

Public Member Functions

 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 LiftLess< T >

Lifts < on objects to functions and functors for ==, !=, <, >, <=, and >= on pointers, and also derives ==, !=, >, <=, and >= on objects. The lifted virtual operator< is assumed to implement a strict weak ordering relation.

Member Function Documentation

◆ operator<()

template<class T >
virtual bool LiftLess< T >::operator< ( const T & ) const
pure virtual