vil_nitf2_field_value_one_of< T > Class Template Reference

#include <vil_nitf2_field_functor.h>

Inheritance diagram for vil_nitf2_field_value_one_of< T >:

vil_nitf2_field_functor< bool > List of all members.

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 215 of file 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

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 219 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 223 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 226 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 229 of file vil_nitf2_field_functor.h.


Member Data Documentation

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

Definition at line 249 of file vil_nitf2_field_functor.h.

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

Definition at line 250 of file vil_nitf2_field_functor.h.


The documentation for this class was generated from the following file:
Generated on Sun Sep 7 05:07:54 2008 for core/vil by  doxygen 1.5.1