mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-04 21:54:27 +08:00
* fixes a regression introduced in #7582 which made all SWIG enums become type-unsafe * fix also PipelineStrage asserts --------- Co-authored-by: ptosco <paolo.tosco@novartis.com>
26 lines
674 B
OpenEdge ABL
26 lines
674 B
OpenEdge ABL
%{
|
|
#include <GraphMol/MolStandardize/MolStandardize.h>
|
|
#include <GraphMol/MolStandardize/Pipeline.h>
|
|
|
|
namespace RDKit {
|
|
namespace MolStandardize {
|
|
bool operator==(const PipelineLogEntry & rhs, const PipelineLogEntry & lhs) {
|
|
return (rhs.status == lhs.status) && (rhs.detail == lhs.detail);
|
|
}
|
|
bool operator!=(const PipelineLogEntry & rhs, const PipelineLogEntry & lhs) {
|
|
return !(rhs == lhs);
|
|
}
|
|
}
|
|
}
|
|
%}
|
|
|
|
%include <std_vector.i>
|
|
namespace std {
|
|
%template(PipelineLog) std::vector<RDKit::MolStandardize::PipelineLogEntry>;
|
|
}
|
|
|
|
%include <GraphMol/MolStandardize/MolStandardize.h>
|
|
|
|
%include "enums.swg"
|
|
%include <GraphMol/MolStandardize/Pipeline.h>
|