GnuCash c935c2f+
Loading...
Searching...
No Matches
Public Member Functions
test_prop_type_str Struct Reference

Functor to check if the above map has an element of which the value equals name. More...

#include <gnc-imp-props-tx.hpp>

Public Member Functions

 test_prop_type_str (const char *name)
 
bool operator() (const std::pair< GncTransPropType, const char * > &v) const
 

Detailed Description

Functor to check if the above map has an element of which the value equals name.

To be used with std::find_if.

Definition at line 95 of file gnc-imp-props-tx.hpp.

Constructor & Destructor Documentation

◆ test_prop_type_str()

test_prop_type_str::test_prop_type_str ( const char *  name)
inline

Definition at line 97 of file gnc-imp-props-tx.hpp.

97: m_name(name) {}

Member Function Documentation

◆ operator()()

bool test_prop_type_str::operator() ( const std::pair< GncTransPropType, const char * > &  v) const
inline

Definition at line 98 of file gnc-imp-props-tx.hpp.

99 {
100 return !g_strcmp0(v.second, m_name);
101 }

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