Public Member Functions | Private Attributes | List of all members
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]

Public Member Functions

 vil_nitf2_multiply_field_values (std::string tag_1, std::string tag_2, bool use_zero_if_tag_not_found=false)
 
vil_nitf2_field_functor< int > * copy () const override
 
bool operator() (vil_nitf2_field_sequence *record, const vil_nitf2_index_vector &indexes, int &value) override
 

Private Attributes

std::string tag_1
 
std::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 112 of file vil_nitf2_field_functor.h.

Constructor & Destructor Documentation

◆ vil_nitf2_multiply_field_values()

vil_nitf2_multiply_field_values::vil_nitf2_multiply_field_values ( std::string  tag_1,
std::string  tag_2,
bool  use_zero_if_tag_not_found = false 
)
inline

Definition at line 115 of file vil_nitf2_field_functor.h.

Member Function Documentation

◆ copy()

vil_nitf2_field_functor<int>* vil_nitf2_multiply_field_values::copy ( ) const
inlineoverridevirtual

Implements vil_nitf2_field_functor< int >.

Definition at line 122 of file vil_nitf2_field_functor.h.

◆ operator()()

bool vil_nitf2_multiply_field_values::operator() ( vil_nitf2_field_sequence record,
const vil_nitf2_index_vector indexes,
int &  value 
)
overridevirtual

Implements vil_nitf2_field_functor< int >.

Definition at line 51 of file vil_nitf2_field_functor.cxx.

Member Data Documentation

◆ tag_1

std::string vil_nitf2_multiply_field_values::tag_1
private

Definition at line 131 of file vil_nitf2_field_functor.h.

◆ tag_2

std::string vil_nitf2_multiply_field_values::tag_2
private

Definition at line 132 of file vil_nitf2_field_functor.h.

◆ use_zero_if_tag_not_found

bool vil_nitf2_multiply_field_values::use_zero_if_tag_not_found
private

Definition at line 133 of file vil_nitf2_field_functor.h.


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