Functor vil_nitf2_field_value_one_of defines a predicate that sets its out parameter to true iff the value of the specified tag equals one of the elements of a vcl_vector of acceptable values. More...
#include <vil_nitf2_field_functor.h>
Public Member Functions | |
vil_nitf2_field_value_one_of (vcl_string tag, vcl_vector< T > acceptable_values) | |
Constructor to specify a vcl_vector of acceptable values. | |
vil_nitf2_field_value_one_of (vcl_string tag, T acceptable_value) | |
Constructor to specify only one acceptable value. | |
vil_nitf2_field_functor< bool > * | copy () const |
bool | operator() (vil_nitf2_field_sequence *record, const vil_nitf2_index_vector &indexes, bool &result) |
Protected Attributes | |
vcl_string | tag |
vcl_vector< T > | acceptable_values |
Functor vil_nitf2_field_value_one_of defines a predicate that sets its out parameter to true iff the value of the specified tag equals one of the elements of a vcl_vector of acceptable values.
Definition at line 216 of file vil_nitf2_field_functor.h.
vil_nitf2_field_value_one_of< T >::vil_nitf2_field_value_one_of | ( | vcl_string | tag, |
vcl_vector< T > | acceptable_values | ||
) | [inline] |
Constructor to specify a vcl_vector of acceptable values.
Definition at line 220 of file vil_nitf2_field_functor.h.
vil_nitf2_field_value_one_of< T >::vil_nitf2_field_value_one_of | ( | vcl_string | tag, |
T | acceptable_value | ||
) | [inline] |
Constructor to specify only one acceptable value.
Definition at line 224 of file vil_nitf2_field_functor.h.
vil_nitf2_field_functor<bool>* vil_nitf2_field_value_one_of< T >::copy | ( | ) | const [inline, virtual] |
Implements vil_nitf2_field_functor< bool >.
Definition at line 227 of file vil_nitf2_field_functor.h.
bool vil_nitf2_field_value_one_of< T >::operator() | ( | vil_nitf2_field_sequence * | record, |
const vil_nitf2_index_vector & | indexes, | ||
bool & | result | ||
) | [inline, virtual] |
Implements vil_nitf2_field_functor< bool >.
Definition at line 230 of file vil_nitf2_field_functor.h.
vcl_vector<T> vil_nitf2_field_value_one_of< T >::acceptable_values [protected] |
Definition at line 251 of file vil_nitf2_field_functor.h.
vcl_string vil_nitf2_field_value_one_of< T >::tag [protected] |
Definition at line 250 of file vil_nitf2_field_functor.h.