Public Member Functions | Protected Attributes
vil_nitf2_field_value_one_of< T > Class Template Reference

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>

Inheritance diagram for vil_nitf2_field_value_one_of< T >:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

template<typename T>
class vil_nitf2_field_value_one_of< T >

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.


Constructor & Destructor Documentation

template<typename T >
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.

template<typename T >
vil_nitf2_field_value_one_of< T >::vil_nitf2_field_value_one_of ( vcl_string  tag,
acceptable_value 
) [inline]

Constructor to specify only one acceptable value.

Definition at line 224 of file vil_nitf2_field_functor.h.


Member Function Documentation

template<typename T >
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.

template<typename T >
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.


Member Data Documentation

template<typename T >
vcl_vector<T> vil_nitf2_field_value_one_of< T >::acceptable_values [protected]

Definition at line 251 of file vil_nitf2_field_functor.h.

template<typename T >
vcl_string vil_nitf2_field_value_one_of< T >::tag [protected]

Definition at line 250 of file vil_nitf2_field_functor.h.


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