Public Member Functions | Private Attributes | List of all members
vil_nitf2_field_value_greater_than< T > Class Template Reference

Functor vil_nitf2_field_value_greater_than defines a comparison predicate that sets its out parameter to true if a specified field from a field sequence is found and its value is greater than a specified threshold. More...

#include <vil_nitf2_field_functor.h>

Inheritance diagram for vil_nitf2_field_value_greater_than< T >:
Inheritance graph
[legend]

Public Member Functions

 vil_nitf2_field_value_greater_than (std::string tag, T threshold)
 
vil_nitf2_field_functor< bool > * copy () const override
 
bool operator() (vil_nitf2_field_sequence *record, const vil_nitf2_index_vector &indexes, bool &result) override
 

Private Attributes

std::string tag
 
threshold
 

Detailed Description

template<typename T>
class vil_nitf2_field_value_greater_than< T >

Functor vil_nitf2_field_value_greater_than defines a comparison predicate that sets its out parameter to true if a specified field from a field sequence is found and its value is greater than a specified threshold.

The predicate returns whether the field was found.

Definition at line 170 of file vil_nitf2_field_functor.h.

Constructor & Destructor Documentation

◆ vil_nitf2_field_value_greater_than()

template<typename T >
vil_nitf2_field_value_greater_than< T >::vil_nitf2_field_value_greater_than ( std::string  tag,
threshold 
)
inline

Definition at line 173 of file vil_nitf2_field_functor.h.

Member Function Documentation

◆ copy()

template<typename T >
vil_nitf2_field_functor<bool>* vil_nitf2_field_value_greater_than< T >::copy ( ) const
inlineoverridevirtual

Implements vil_nitf2_field_functor< bool >.

Definition at line 176 of file vil_nitf2_field_functor.h.

◆ operator()()

template<typename T >
bool vil_nitf2_field_value_greater_than< T >::operator() ( vil_nitf2_field_sequence record,
const vil_nitf2_index_vector indexes,
bool &  result 
)
inlineoverridevirtual

Implements vil_nitf2_field_functor< bool >.

Definition at line 179 of file vil_nitf2_field_functor.h.

Member Data Documentation

◆ tag

template<typename T >
std::string vil_nitf2_field_value_greater_than< T >::tag
private

Definition at line 191 of file vil_nitf2_field_functor.h.

◆ threshold

template<typename T >
T vil_nitf2_field_value_greater_than< T >::threshold
private

Definition at line 192 of file vil_nitf2_field_functor.h.


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