- wrap types that are otherwise not accessible from SWIG wrappers (#6110)

- remove redundant Point2D_Vect definition (laready defined elsewhere)
- blacklist getPositions() whose return type is not accessible from SWIG

Co-authored-by: Tosco, Paolo <paolo.tosco@novartis.com>
This commit is contained in:
Paolo Tosco
2023-02-20 12:44:24 +01:00
committed by GitHub
parent cb6caa161b
commit 3d5a3f2af1
2 changed files with 8 additions and 1 deletions

View File

@@ -37,6 +37,11 @@
#include <Geometry/point.h>
%}
// no point in wrapping something that can't be accessed
// getAtomPos() and setAtomPos() are convenient accessors
%ignore RDKit::Conformer::getPositions();
%ignore RDKit::Conformer::getPositions() const;
%typemap(javacode) RDKit::Conformer %{
public void setSwigCMemOwn(boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;

View File

@@ -53,13 +53,15 @@
%template(Int_String_Map) std::map< int, std::string >;
%template(ColourPalette) std::map< int, RDKit::DrawColour >;
%template(Colour_Vect) std::vector< RDKit::DrawColour >;
%template(MultipleColourPalette) std::map< int, std::vector< RDKit::DrawColour > >;
%template(Int_Double_Map) std::map< int, double >;
%template(Float_Pair) std::pair<float,float>;
%template(Float_Pair_Vect) std::vector< std::pair<float,float> >;
%template(ROMol_Ptr_Vect) std::vector<RDKit::ROMol*>;
%template(Point2D_Vect) std::vector<RDGeom::Point2D *>;
%template(ColourPalette_Vect) std::vector< std::map< int, RDKit::DrawColour > >;
%template(Int_Double_Map_Vect) std::vector< std::map< int, double > >;
%ignore RDKit::MolDraw2DSVG::MolDraw2DSVG(int,int,std::ostream &);
%ignore RDKit::MolDraw2DUtils::contourAndDrawGaussians(