Public Member Functions | Private Attributes
vil_nitf2_multiply_field_values Class Reference

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>

Inheritance diagram for vil_nitf2_multiply_field_values:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

Definition at line 127 of file vil_nitf2_field_functor.h.

Definition at line 128 of file vil_nitf2_field_functor.h.

Definition at line 129 of file vil_nitf2_field_functor.h.


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