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>
Public Member Functions | |
vil_nitf2_max_field_value_plus_offset_and_threshold (vcl_string tag, int offset, int min_threshold=0, int tag_factor=1) | |
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 |
int | offset |
int | min_threshold |
int | tag_factor |
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 138 of file vil_nitf2_field_functor.h.
vil_nitf2_max_field_value_plus_offset_and_threshold::vil_nitf2_max_field_value_plus_offset_and_threshold | ( | vcl_string | tag, |
int | offset, | ||
int | min_threshold = 0 , |
||
int | tag_factor = 1 |
||
) | [inline] |
Definition at line 141 of file vil_nitf2_field_functor.h.
vil_nitf2_field_functor<int>* vil_nitf2_max_field_value_plus_offset_and_threshold::copy | ( | ) | const [inline, virtual] |
Implements vil_nitf2_field_functor< int >.
Definition at line 145 of file vil_nitf2_field_functor.h.
bool vil_nitf2_max_field_value_plus_offset_and_threshold::operator() | ( | vil_nitf2_field_sequence * | record, |
const vil_nitf2_index_vector & | indexes, | ||
int & | value | ||
) | [virtual] |
Implements vil_nitf2_field_functor< int >.
Definition at line 39 of file vil_nitf2_field_functor.cxx.
Definition at line 155 of file vil_nitf2_field_functor.h.
Definition at line 154 of file vil_nitf2_field_functor.h.
vcl_string vil_nitf2_max_field_value_plus_offset_and_threshold::tag [private] |
Definition at line 153 of file vil_nitf2_field_functor.h.
Definition at line 156 of file vil_nitf2_field_functor.h.