6 |
#include <functional> |
#include <functional> |
7 |
|
|
8 |
namespace GEDCOMParser { |
namespace GEDCOMParser { |
9 |
class HasSpouse : public std::binary_function<GEDCOMParser::LineageLinkageGedcom const * const, GEDCOMParser::IndividualRecords_elem_t, bool> { |
namespace Predicates { |
10 |
public: |
class HasSpouse : public std::binary_function<GEDCOMParser::LineageLinkageGedcom const * const, GEDCOMParser::IndividualRecords_elem_t, bool> { |
11 |
bool operator()(GEDCOMParser::LineageLinkageGedcom const * const lineage, |
public: |
12 |
GEDCOMParser::IndividualRecords_elem_t individu) const |
bool operator()(GEDCOMParser::LineageLinkageGedcom const * const lineage, |
13 |
{ |
GEDCOMParser::IndividualRecords_elem_t individu) const |
14 |
bool res = lineage->hasSpouse(individu.second.getPtr()); |
{ |
15 |
return res; |
bool res = lineage->hasSpouse(individu.second.getPtr()); |
16 |
|
return res; |
17 |
|
}; |
18 |
}; |
}; |
19 |
}; |
}; |
20 |
}; |
}; |