Public Member Functions | Private Attributes
mbl_stl_pred_binary_index_adapter< T, Pred > Class Template Reference

Adapt a predicate over a vector to the operation specified on an index into that vector. More...

#include <mbl_stl_pred.h>

List of all members.

Public Member Functions

 mbl_stl_pred_binary_index_adapter (vcl_vector< T > const &v, Pred Op)
bool operator() (const unsigned &i, const unsigned &j) const

Private Attributes

const vcl_vector< T > & vec_
 const reference to vector used to store the objects indexed.
Pred Op_
 The predicate to really be applied.

Detailed Description

template<class T, class Pred>
class mbl_stl_pred_binary_index_adapter< T, Pred >

Adapt a predicate over a vector to the operation specified on an index into that vector.

T is type of the vector, and Pred the boolean predicate to really be applied

Definition at line 89 of file mbl_stl_pred.h.


Constructor & Destructor Documentation

template<class T, class Pred>
mbl_stl_pred_binary_index_adapter< T, Pred >::mbl_stl_pred_binary_index_adapter ( vcl_vector< T > const &  v,
Pred  Op 
) [inline]

Definition at line 96 of file mbl_stl_pred.h.


Member Function Documentation

template<class T, class Pred>
bool mbl_stl_pred_binary_index_adapter< T, Pred >::operator() ( const unsigned &  i,
const unsigned &  j 
) const [inline]

Definition at line 98 of file mbl_stl_pred.h.


Member Data Documentation

template<class T, class Pred>
Pred mbl_stl_pred_binary_index_adapter< T, Pred >::Op_ [private]

The predicate to really be applied.

Definition at line 94 of file mbl_stl_pred.h.

template<class T, class Pred>
const vcl_vector<T >& mbl_stl_pred_binary_index_adapter< T, Pred >::vec_ [private]

const reference to vector used to store the objects indexed.

Definition at line 92 of file mbl_stl_pred.h.


The documentation for this class was generated from the following file: