Adapt a predicate over a vector to the operation specified on an index into that vector. More...
#include <mbl_stl_pred.h>
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. |
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.
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.
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.
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.
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.