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_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. | |
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.
| 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.
| bool mbl_stl_pred_index_adapter< T, Pred >::operator() | ( | const unsigned & | i | ) | const [inline] |
Definition at line 45 of file mbl_stl_pred.h.
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.
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.
1.7.5.1