Public Member Functions | Private Member Functions | Private Attributes

XDerefT< T, Pr > Class Template Reference

Predicate wrapper to act on node pointers. More...

#include <CSCompositeSkipList.h>

List of all members.

Public Member Functions

 XDerefT (const Pr &pred)
 Custom constructor.
bool operator() (const T &a, const T &b) const
 Activate predicate method.

Private Member Functions

 XDerefT ()
 Default constructor is not available.

Private Attributes

Pr pred
 Original predicate.

Detailed Description

template<class T, class Pr>
class XDerefT< T, Pr >

Predicate wrapper to act on node pointers.

INTERNAL USE ONLY!!!

Original predicate must work on the type of the element.

Template Parameters:
TNode type.
PrOriginal predicate to apply to elements of nodes.

Constructor & Destructor Documentation

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

Custom constructor.

Constructs a predicate wrapper that works on nodes. Original predicate must work on the type of the element.

Parameters:
predOriginal predicate to apply to nodes.

Member Function Documentation

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

Activate predicate method.

Parameters:
aFirst node.
bSecond node.
Returns:
same result as original predicate on elements that a and b point to.

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