Get SWIG wrappers working with C# again (#4020)

* fix to work for C#

* revert gitignore
This commit is contained in:
Kazuya Ujihara
2021-04-15 02:56:15 +09:00
committed by greg landrum
parent 0a478a65d8
commit cdae65d31a
2 changed files with 13 additions and 13 deletions

View File

@@ -47,13 +47,13 @@ class RDKIT_GRAPHMOL_EXPORT MolPicklerException : public std::exception {
namespace PicklerOps {
typedef enum {
NoProps = 0, // no data pickled (default pickling, single-precision coords)
MolProps = BOOST_BINARY(1), // only public non computed properties
AtomProps = BOOST_BINARY(10),
BondProps = BOOST_BINARY(100),
QueryAtomData = BOOST_BINARY(
10), // n.b. DEPRECATED and set to AtomProps (does the same work)
PrivateProps = BOOST_BINARY(10000),
ComputedProps = BOOST_BINARY(100000),
MolProps = 0x1, // only public non computed properties
AtomProps = 0x2,
BondProps = 0x4,
QueryAtomData =
0x2, // n.b. DEPRECATED and set to AtomProps (does the same work)
PrivateProps = 0x10,
ComputedProps = 0x20,
AllProps = 0x0000FFFF, // all data pickled
CoordsAsDouble = 0x0001FFFF // save coordinates in double precision
} PropertyPickleOptions;

View File

@@ -270,14 +270,14 @@ typedef unsigned long long int uintmax_t;
%include <DataStructs/BitOps.h>
%template(TanimotoSimilarityEBV) TanimotoSimilarity<ExplicitBitVect,ExplicitBitVect>;
%template(DiceSimilarityEBV) DiceSimilarity<ExplicitBitVect,ExplicitBitVect>;
%template(DiceSimilarity) RDKit::DiceSimilarity<uint32_t>;
*/
%template(DiceSimilarity) RDKit::DiceSimilarity<boost::uint32_t>;
/* vector */
%template(Int_Vect) std::vector<int>;
%template(Byte_Vect) std::vector<signed char>;
%template(Double_Vect) std::vector<double>;
%template(UInt_Vect) std::vector<boost::uint32_t>;
%template(UInt_Vect) std::vector<uint32_t>;
%template(Str_Vect) std::vector<std::string> ;
%template(Point_Vect) std::vector<RDGeom::Point *>;
%template(Point2D_Vect) std::vector<RDGeom::Point2D *>;
@@ -285,9 +285,9 @@ typedef unsigned long long int uintmax_t;
%template(Atomic_Params_Vect) std::vector<const ForceFields::UFF::AtomicParams *>;
/* pair */
%template(Int_Pair) std::pair<boost::int32_t, int >;
%template(Int_Pair) std::pair<int32_t, int >;
%template(Double_Pair) std::pair<double,double>;
%template(UInt_Pair) std::pair<boost::uint32_t, int >;
%template(UInt_Pair) std::pair<uint32_t, int >;
%template(Long_Pair) std::pair<boost::int64_t,int>;
/* map */
@@ -298,8 +298,8 @@ typedef unsigned long long int uintmax_t;
%template(Int_Int_Vect_List_Map) std::map<int,std::list<std::vector<int> > >;
/* vector pair */
%template(UInt_Pair_Vect) std::vector<std::pair<boost::uint32_t,int> >;
%template(Match_Vect) std::vector<std::pair<boost::int32_t,int> >;
%template(UInt_Pair_Vect) std::vector<std::pair<uint32_t,int> >;
%template(Match_Vect) std::vector<std::pair<int32_t,int> >;
%template(Long_Pair_Vect) std::vector<std::pair<boost::int64_t,int> >;
/* vector vector */