Public Member Functions | Private Attributes
mbl_stl_pred_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_index_adapter (vcl_vector< T > const &v, Pred Op)
bool operator() (const unsigned &i) 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_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 36 of file mbl_stl_pred.h.


Constructor & Destructor Documentation

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

Definition at line 43 of file mbl_stl_pred.h.


Member Function Documentation

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

Definition at line 45 of file mbl_stl_pred.h.


Member Data Documentation

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

The predicate to really be applied.

Definition at line 41 of file mbl_stl_pred.h.

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

const reference to vector used to store the objects indexed.

Definition at line 39 of file mbl_stl_pred.h.


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