* src/atom.h, src/base.h, src/bond.h, src/residue.h, src/mol.h,
src/ring.h, src/mol.cpp, src/base.cpp, src/obiter.h: Remove
OBNodeBase, OBEdgeBase, and OBGraphBase classes, contributed by
Gerd Menche.
* tools/obprop.cpp: Ditto. Example of changing iterators to new format.
* scripts/*: Updated based on above changes.
2006-11-20 18:43:41 +00:00
|
|
|
%module openbabel
|
2005-11-18 00:53:15 +00:00
|
|
|
|
|
|
|
|
%{
|
2006-04-19 15:37:47 +00:00
|
|
|
// used to set import/export for Cygwin DLLs
|
|
|
|
|
#ifdef WIN32
|
|
|
|
|
#define USING_OBDLL
|
|
|
|
|
#endif
|
|
|
|
|
|
2006-11-06 17:44:10 +00:00
|
|
|
#include <math.h>
|
2006-04-19 15:37:47 +00:00
|
|
|
|
2006-12-10 13:56:00 +00:00
|
|
|
#include <openbabel/obutil.h>
|
|
|
|
|
#include <openbabel/math/vector3.h>
|
|
|
|
|
#include <openbabel/math/matrix3x3.h>
|
|
|
|
|
#include <openbabel/generic.h>
|
2006-03-14 00:47:39 +00:00
|
|
|
|
2006-12-10 13:56:00 +00:00
|
|
|
#include <openbabel/base.h>
|
|
|
|
|
#include <openbabel/mol.h>
|
|
|
|
|
#include <openbabel/ring.h>
|
|
|
|
|
#include <openbabel/obconversion.h>
|
|
|
|
|
#include <openbabel/oberror.h>
|
2007-01-06 18:19:41 +00:00
|
|
|
#include <openbabel/pluginiter.h>
|
2006-12-10 13:56:00 +00:00
|
|
|
#include <openbabel/fingerprint.h>
|
2006-12-08 00:05:39 +00:00
|
|
|
|
2006-12-10 13:56:00 +00:00
|
|
|
#include <openbabel/data.h>
|
|
|
|
|
#include <openbabel/parsmart.h>
|
2006-12-14 23:17:34 +00:00
|
|
|
|
|
|
|
|
#include <openbabel/bitvec.h>
|
|
|
|
|
#include <openbabel/chains.h>
|
|
|
|
|
#include <openbabel/typer.h>
|
2005-11-18 00:53:15 +00:00
|
|
|
%}
|
|
|
|
|
|
|
|
|
|
%include "std_map.i"
|
|
|
|
|
%include "std_vector.i"
|
|
|
|
|
%include "std_string.i"
|
|
|
|
|
|
2006-03-14 00:47:39 +00:00
|
|
|
namespace std {
|
2006-06-06 16:28:28 +00:00
|
|
|
%template (vectorInt) vector<int>;
|
2006-12-12 12:48:54 +00:00
|
|
|
%template (vectorUnsignedInt) vector<unsigned int>;
|
2006-06-06 16:28:28 +00:00
|
|
|
%template (vvInt) vector< vector<int> >;
|
2006-03-14 00:47:39 +00:00
|
|
|
%template (vectorDouble) vector<double>;
|
2006-06-06 16:28:28 +00:00
|
|
|
%template (vVector3) vector<OpenBabel::vector3>;
|
2006-03-14 00:47:39 +00:00
|
|
|
|
2006-06-06 16:28:28 +00:00
|
|
|
%template (vectorMol) vector<OpenBabel::OBMol>;
|
2006-03-14 00:47:39 +00:00
|
|
|
%template (vectorBond) vector<OpenBabel::OBBond>;
|
|
|
|
|
%template (vectorResidue) vector<OpenBabel::OBResidue>;
|
|
|
|
|
%template (vectorRing) vector<OpenBabel::OBRing>;
|
2006-06-09 10:00:18 +00:00
|
|
|
%template (vectorData) vector<OpenBabel::OBGenericData*>;
|
2006-03-14 00:47:39 +00:00
|
|
|
}
|
|
|
|
|
|
2007-01-06 18:19:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// These methods are renamed to valid Python method names, as otherwise
|
|
|
|
|
// they cannot be used from Python
|
|
|
|
|
%rename(inc) *::operator++;
|
|
|
|
|
%rename(good) *::operator bool;
|
|
|
|
|
%rename(deref) *::operator->;
|
2006-12-10 13:56:00 +00:00
|
|
|
%import <openbabel/babelconfig.h>
|
2005-11-18 00:53:15 +00:00
|
|
|
|
2006-10-17 20:36:33 +00:00
|
|
|
%apply std::string &OUTPUT { std::string &to };
|
2006-12-10 13:56:00 +00:00
|
|
|
%include <openbabel/data.h>
|
|
|
|
|
%include <openbabel/obutil.h>
|
|
|
|
|
%include <openbabel/math/vector3.h>
|
2006-12-14 23:17:34 +00:00
|
|
|
%include <openbabel/math/matrix3x3.h>
|
2006-12-10 13:56:00 +00:00
|
|
|
%include <openbabel/generic.h>
|
|
|
|
|
|
|
|
|
|
%include <openbabel/base.h>
|
|
|
|
|
|
2007-01-06 18:19:41 +00:00
|
|
|
%import <openbabel/chains.h>
|
|
|
|
|
%import <openbabel/bitvec.h>
|
|
|
|
|
%import <openbabel/typer.h>
|
|
|
|
|
|
|
|
|
|
%include <openbabel/pluginiter.h>
|
|
|
|
|
%template (pluginiterFingerprint) OpenBabel::PluginIter<OpenBabel::OBFingerprint>;
|
2006-12-10 13:56:00 +00:00
|
|
|
|
|
|
|
|
%include <openbabel/oberror.h>
|
|
|
|
|
%include <openbabel/obconversion.h>
|
|
|
|
|
%include <openbabel/residue.h>
|
|
|
|
|
%include <openbabel/atom.h>
|
|
|
|
|
%include <openbabel/bond.h>
|
|
|
|
|
%include <openbabel/mol.h>
|
|
|
|
|
%include <openbabel/ring.h>
|
|
|
|
|
%include <openbabel/parsmart.h>
|
|
|
|
|
%include <openbabel/fingerprint.h>
|
2006-10-27 21:10:17 +00:00
|
|
|
|
2006-12-12 12:48:54 +00:00
|
|
|
# The following %ignores avoid warning messages due to shadowed classes.
|
|
|
|
|
# This does not imply a loss of functionality as (in this case)
|
|
|
|
|
# the shadowed class is identical (from the point of view of SWIG) to
|
|
|
|
|
# the shadowing class.
|
|
|
|
|
# This is because C++ references (&) are transformed by SWIG back into
|
|
|
|
|
# pointers, so that OBAtomIter(OBMol &) would be treated the same as
|
|
|
|
|
# OBAtomIter(OBMol *).
|
|
|
|
|
|
2006-12-14 13:15:31 +00:00
|
|
|
%ignore OBAtomAtomIter(OBAtom &);
|
|
|
|
|
%ignore OBAtomBondIter(OBAtom &);
|
|
|
|
|
%ignore OBMolAngleIter(OBMol &);
|
2006-12-12 12:48:54 +00:00
|
|
|
%ignore OBMolAtomIter(OBMol &);
|
|
|
|
|
%ignore OBMolAtomBFSIter(OBMol &);
|
2006-12-14 13:15:31 +00:00
|
|
|
%ignore OBMolAtomDFSIter(OBMol &);
|
2006-12-12 12:48:54 +00:00
|
|
|
%ignore OBMolBondIter(OBMol &);
|
2006-12-14 13:15:31 +00:00
|
|
|
%ignore OBMolPairIter(OBMol &);
|
|
|
|
|
%ignore OBMolRingIter(OBMol &);
|
|
|
|
|
%ignore OBMolTorsionIter(OBMol &);
|
2006-12-13 13:29:36 +00:00
|
|
|
%ignore OBResidueIter(OBMol &);
|
2006-12-12 12:48:54 +00:00
|
|
|
%ignore OBResidueAtomIter(OBResidue &);
|
|
|
|
|
|
2007-01-06 18:19:41 +00:00
|
|
|
|
|
|
|
|
%ignore *::operator=;
|
2006-10-27 21:10:17 +00:00
|
|
|
|
2006-12-10 13:56:00 +00:00
|
|
|
%include <openbabel/obiter.h>
|