Public Member Functions | Private Member Functions | Private Attributes

LessEqualT< T, Pr > Class Template Reference

Converts a "less than" predicate into a "less than or equal" predicate. More...

#include <CSCompositeSkipList.h>

List of all members.

Public Member Functions

 LessEqualT (const Pr &pred)
 Custom constructor.
bool operator() (const T &a, const T &b) const
 Less than or equal predicate activation.

Private Member Functions

 LessEqualT ()
 Default constructor not accessible.

Private Attributes

Pr pred
 Original predicate.

Detailed Description

template<class T, class Pr>
class LessEqualT< T, Pr >

Converts a "less than" predicate into a "less than or equal" predicate.

Template Parameters:
TType of arguments in predicate.
PrPredicate type.

Constructor & Destructor Documentation

template<class T , class Pr >
LessEqualT< T, Pr >::LessEqualT ( const Pr &  pred) [inline]

Custom constructor.

Parameters:
pred"Less than" predicate to convert.

Member Function Documentation

template<class T , class Pr >
bool LessEqualT< T, Pr >::operator() ( const T &  a,
const T &  b 
) const [inline]

Less than or equal predicate activation.

Parameters:
aFirst argument of predicate.
bSecond argument of predicate.
Returns:
true if a<=b.

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs