Functor vil_nitf2_multiply_field_values defines a function that sets its out parameter to the product of the values of two fields. More...
#include <vil_nitf2_field_functor.h>

| Public Member Functions | |
| vil_nitf2_multiply_field_values (const vcl_string &tag_1, const vcl_string &tag_2, bool use_zero_if_tag_not_found=false) | |
| vil_nitf2_field_functor< int > * | copy () const | 
| bool | operator() (vil_nitf2_field_sequence *record, const vil_nitf2_index_vector &indexes, int &value) | 
| Private Attributes | |
| vcl_string | tag_1 | 
| vcl_string | tag_2 | 
| bool | use_zero_if_tag_not_found | 
Functor vil_nitf2_multiply_field_values defines a function that sets its out parameter to the product of the values of two fields.
The predicate returns true iff both fields are found or the arg 'use_zero_if_tag_not_found'; in the latter case, the out parameter is set to 0.
Definition at line 108 of file vil_nitf2_field_functor.h.
| vil_nitf2_multiply_field_values::vil_nitf2_multiply_field_values | ( | const vcl_string & | tag_1, | 
| const vcl_string & | tag_2, | ||
| bool | use_zero_if_tag_not_found = false | ||
| ) |  [inline] | 
Definition at line 111 of file vil_nitf2_field_functor.h.
| vil_nitf2_field_functor<int>* vil_nitf2_multiply_field_values::copy | ( | ) | const  [inline, virtual] | 
Implements vil_nitf2_field_functor< int >.
Definition at line 118 of file vil_nitf2_field_functor.h.
| bool vil_nitf2_multiply_field_values::operator() | ( | vil_nitf2_field_sequence * | record, | 
| const vil_nitf2_index_vector & | indexes, | ||
| int & | value | ||
| ) |  [virtual] | 
Implements vil_nitf2_field_functor< int >.
Definition at line 51 of file vil_nitf2_field_functor.cxx.
| vcl_string vil_nitf2_multiply_field_values::tag_1  [private] | 
Definition at line 127 of file vil_nitf2_field_functor.h.
| vcl_string vil_nitf2_multiply_field_values::tag_2  [private] | 
Definition at line 128 of file vil_nitf2_field_functor.h.
| bool vil_nitf2_multiply_field_values::use_zero_if_tag_not_found  [private] | 
Definition at line 129 of file vil_nitf2_field_functor.h.
 1.7.5.1
 1.7.5.1