GnuCash c935c2f+
Loading...
Searching...
No Matches
Public Member Functions
test_price_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-price.hpp>

Public Member Functions

 test_price_prop_type_str (const char *name)
 
bool operator() (const std::pair< GncPricePropType, 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 68 of file gnc-imp-props-price.hpp.

Constructor & Destructor Documentation

◆ test_price_prop_type_str()

test_price_prop_type_str::test_price_prop_type_str ( const char *  name)
inline

Definition at line 70 of file gnc-imp-props-price.hpp.

70: m_name(name) {}

Member Function Documentation

◆ operator()()

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

Definition at line 71 of file gnc-imp-props-price.hpp.

72 {
73 return !g_strcmp0(v.second, m_name);
74 }

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