Public Member Functions | Private Attributes | List of all members
vil_nitf2_max_field_value_plus_offset_and_threshold Class Reference

Functor vil_nitf2_max_field_value_plus_offset_and_threshold defines a function that sets its out parameter to either the value of a specified field plus an offset, or a specified minimum value, whichever is greater. More...

#include <vil_nitf2_field_functor.h>

Inheritance diagram for vil_nitf2_max_field_value_plus_offset_and_threshold:
Inheritance graph
[legend]

Public Member Functions

 vil_nitf2_max_field_value_plus_offset_and_threshold (std::string tag, int offset, int min_threshold=0, int tag_factor=1)
 
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
 
int offset
 
int min_threshold
 
int tag_factor
 

Detailed Description

Functor vil_nitf2_max_field_value_plus_offset_and_threshold defines a function that sets its out parameter to either the value of a specified field plus an offset, or a specified minimum value, whichever is greater.

The function returns whether the field was found.

Definition at line 142 of file vil_nitf2_field_functor.h.

Constructor & Destructor Documentation

◆ vil_nitf2_max_field_value_plus_offset_and_threshold()

vil_nitf2_max_field_value_plus_offset_and_threshold::vil_nitf2_max_field_value_plus_offset_and_threshold ( std::string  tag,
int  offset,
int  min_threshold = 0,
int  tag_factor = 1 
)
inline

Definition at line 145 of file vil_nitf2_field_functor.h.

Member Function Documentation

◆ copy()

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

Implements vil_nitf2_field_functor< int >.

Definition at line 149 of file vil_nitf2_field_functor.h.

◆ operator()()

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

Implements vil_nitf2_field_functor< int >.

Definition at line 39 of file vil_nitf2_field_functor.cxx.

Member Data Documentation

◆ min_threshold

int vil_nitf2_max_field_value_plus_offset_and_threshold::min_threshold
private

Definition at line 159 of file vil_nitf2_field_functor.h.

◆ offset

int vil_nitf2_max_field_value_plus_offset_and_threshold::offset
private

Definition at line 158 of file vil_nitf2_field_functor.h.

◆ tag

std::string vil_nitf2_max_field_value_plus_offset_and_threshold::tag
private

Definition at line 157 of file vil_nitf2_field_functor.h.

◆ tag_factor

int vil_nitf2_max_field_value_plus_offset_and_threshold::tag_factor
private

Definition at line 160 of file vil_nitf2_field_functor.h.


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