Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vil_nitf2_choose_field_value< T > Class Template Reference

#include <vil_nitf2_field_functor.h>

Inheritance diagram for vil_nitf2_choose_field_value< T >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<typename T>
class vil_nitf2_choose_field_value< T >

Functor vil_nitf2_choose_field_value defines a function that sets its out parameter to a value of one of two fields of a field sequence.

The field chosen is determined by the evaluating the functor passed as argument 'choose_tag_1_predicate': tag_1 is chosen if it evaluates to true; tag_2, otherwise.

Definition at line 261 of file vil_nitf2_field_functor.h.

Public Member Functions

 vil_nitf2_choose_field_value (const vcl_string &tag_1, const vcl_string &tag_2, vil_nitf2_field_functor< bool > *choose_tag_1_predicate)
 Constructor. I take ownership of inDecider.
vil_nitf2_field_functor< T > * copy () const
virtual ~vil_nitf2_choose_field_value ()
bool operator() (vil_nitf2_field_sequence *record, const vil_nitf2_index_vector &indexes, T &value)

Private Attributes

vcl_string tag_1
vcl_string tag_2
vil_nitf2_field_functor< bool > * choose_tag_1_predicate


Constructor & Destructor Documentation

template<typename T>
vil_nitf2_choose_field_value< T >::vil_nitf2_choose_field_value const vcl_string &  tag_1,
const vcl_string &  tag_2,
vil_nitf2_field_functor< bool > *  choose_tag_1_predicate
[inline]
 

Constructor. I take ownership of inDecider.

Definition at line 265 of file vil_nitf2_field_functor.h.

template<typename T>
virtual vil_nitf2_choose_field_value< T >::~vil_nitf2_choose_field_value  )  [inline, virtual]
 

Definition at line 273 of file vil_nitf2_field_functor.h.


Member Function Documentation

template<typename T>
vil_nitf2_field_functor<T>* vil_nitf2_choose_field_value< T >::copy  )  const [inline, virtual]
 

Implements vil_nitf2_field_functor< T >.

Definition at line 269 of file vil_nitf2_field_functor.h.

template<typename T>
bool vil_nitf2_choose_field_value< T >::operator() vil_nitf2_field_sequence record,
const vil_nitf2_index_vector indexes,
T &  value
[inline, virtual]
 

Implements vil_nitf2_field_functor< T >.

Definition at line 277 of file vil_nitf2_field_functor.h.


Member Data Documentation

template<typename T>
vil_nitf2_field_functor<bool>* vil_nitf2_choose_field_value< T >::choose_tag_1_predicate [private]
 

Definition at line 288 of file vil_nitf2_field_functor.h.

template<typename T>
vcl_string vil_nitf2_choose_field_value< T >::tag_1 [private]
 

Definition at line 286 of file vil_nitf2_field_functor.h.

template<typename T>
vcl_string vil_nitf2_choose_field_value< T >::tag_2 [private]
 

Definition at line 287 of file vil_nitf2_field_functor.h.


The documentation for this class was generated from the following file:
Generated on Thu Jan 10 14:40:09 2008 for core/vil by  doxygen 1.4.4