From 127a0007f0867b9aca116718ad7bff940c54412b Mon Sep 17 00:00:00 2001 From: Lester Hedges Date: Tue, 10 Nov 2026 21:34:08 +0000 Subject: [PATCH] Remove ring size limit from Connectivity.in_ring for one and two atoms. --- corelib/src/libs/SireMol/connectivity.cpp | 279 ++- corelib/src/libs/SireMol/connectivity.h | 22 +- doc/source/changelog.rst | 8 + tests/mol/test_in_ring.py | 87 + wrapper/Mol/ConnectivityBase.pypp.cpp | 1908 ++++++++------------- 5 files changed, 1000 insertions(+), 1304 deletions(-) create mode 100644 tests/mol/test_in_ring.py diff --git a/corelib/src/libs/SireMol/connectivity.cpp b/corelib/src/libs/SireMol/connectivity.cpp index e69338a15..8a58e8c7b 100644 --- a/corelib/src/libs/SireMol/connectivity.cpp +++ b/corelib/src/libs/SireMol/connectivity.cpp @@ -216,6 +216,8 @@ QDataStream &operator>>(QDataStream &ds, ConnectivityBase &conbase) else throw version_error(v, "1,2", r_conbase, CODELOC); + conbase._pvt_clearRingSystems(); + return ds; } @@ -268,7 +270,7 @@ ConnectivityBase::ConnectivityBase(const MoleculeData &moldata) : MolViewPropert ConnectivityBase::ConnectivityBase(const ConnectivityBase &other) : MolViewProperty(other), connected_atoms(other.connected_atoms), connected_res(other.connected_res), bond_props(other.bond_props), ang_props(other.ang_props), dih_props(other.dih_props), imp_props(other.imp_props), - minfo(other.minfo) + minfo(other.minfo), ring_systems(std::atomic_load(&other.ring_systems)) { } @@ -289,6 +291,8 @@ ConnectivityBase &ConnectivityBase::operator=(const ConnectivityBase &other) dih_props = other.dih_props; imp_props = other.imp_props; minfo = other.minfo; + + std::atomic_store(&ring_systems, std::atomic_load(&other.ring_systems)); } return *this; @@ -1136,121 +1140,246 @@ QList> ConnectivityBase::findPaths(const AtomID &atom0, const Ato return this->findPaths(minfo.atomIdx(atom0), minfo.atomIdx(atom1), max_length); } -// We only consider rings consisting of less than 12 atoms. -const int MAX_RING_SIZE = 12; - -/** This function returns whether or not the atom is in a ring. */ -bool ConnectivityBase::inRing(AtomIdx atom) const +/** Return the IDs of the ring systems (biconnected components of more than + two atoms) containing each atom, found with Tarjan's algorithm */ +std::shared_ptr>> ConnectivityBase::_pvt_ringSystems() const { - // Loop over all atoms connected to this atom. - for (const auto &atm : this->connectionsTo(atom)) + auto cached = std::atomic_load(&ring_systems); + + if (cached) + return cached; + + const int nats = connected_atoms.count(); + + QVector> systems(nats); + QVector disc(nats, -1); + QVector low(nats, 0); + QVector> edges; + + struct Frame { - // Find all of the paths between the two atoms. - QList> paths = findPaths(atom, atm, MAX_RING_SIZE); + int atom; + int parent; + QSet::const_iterator it; + }; - // The atom is part of a ring. - if (paths.count() > 1) - return true; + QVector stack; + int counter = 0; + int nsystems = 0; + + for (int root = 0; root < nats; ++root) + { + if (disc[root] != -1) + continue; + + disc[root] = low[root] = counter++; + stack.append(Frame{root, -1, connected_atoms[root].constBegin()}); + + while (not stack.isEmpty()) + { + Frame &frame = stack.last(); + const int u = frame.atom; + + if (frame.it != connected_atoms[u].constEnd()) + { + const int v = frame.it->value(); + ++frame.it; + + if (disc[v] == -1) + { + edges.append(qMakePair(u, v)); + disc[v] = low[v] = counter++; + stack.append(Frame{v, u, connected_atoms[v].constBegin()}); + } + else if (v != frame.parent and disc[v] < disc[u]) + { + edges.append(qMakePair(u, v)); + low[u] = qMin(low[u], disc[v]); + } + } + else + { + const int parent = frame.parent; + stack.removeLast(); + + if (parent == -1) + continue; + + low[parent] = qMin(low[parent], low[u]); + + if (low[u] >= disc[parent]) + { + // parent is an articulation point (or the root), so the + // edges above (parent, u) on the stack form a component + QSet atoms; + + while (true) + { + const auto edge = edges.takeLast(); + atoms.insert(edge.first); + atoms.insert(edge.second); + + if (edge.first == parent and edge.second == u) + break; + } + + if (atoms.count() > 2) + { + for (const auto &atom : atoms) + { + systems[atom].append(nsystems); + } + + nsystems += 1; + } + } + } + } } - // If we get this far, then the atom isn't part of a ring. - return false; + auto result = std::make_shared>>(std::move(systems)); + + // keep the first result if another thread got there first + if (std::atomic_compare_exchange_strong(&ring_systems, &cached, result)) + return result; + + return cached; } -/** This function returns whether or not the two passed atoms are connected */ -bool ConnectivityBase::inRing(AtomIdx atom0, AtomIdx atom1) const +/** Clear the cached ring systems, which must be done whenever connected_atoms changes */ +void ConnectivityBase::_pvt_clearRingSystems() { - QList> paths = findPaths(atom0, atom1, MAX_RING_SIZE); - - // if there is more than one path between the atoms then they must - // be part of a ring - return (paths.count() > 1); + std::atomic_store(&ring_systems, std::shared_ptr>>()); } -/** This function returns whether or not the three passed atoms are connected - via a ring */ -bool ConnectivityBase::inRing(AtomIdx atom0, AtomIdx atom1, AtomIdx atom2) const +/** This function returns whether or not the atom is in a ring of any size */ +bool ConnectivityBase::inRing(AtomIdx atom) const { - QList> paths = findPaths(atom0, atom2, MAX_RING_SIZE); + atom = atom.map(minfo.nAtoms()); + + const auto systems = this->_pvt_ringSystems(); + + if (atom.value() >= systems->count()) + return false; + + return not systems->at(atom.value()).isEmpty(); +} +/** This function returns whether or not the two passed atoms are in the same + ring of any size */ +bool ConnectivityBase::inRing(AtomIdx atom0, AtomIdx atom1) const +{ + atom0 = atom0.map(minfo.nAtoms()); atom1 = atom1.map(minfo.nAtoms()); - if (paths.count() > 1) + if (atom0 == atom1) + return false; + + const auto systems = this->_pvt_ringSystems(); + + if (atom0.value() >= systems->count() or atom1.value() >= systems->count()) + return false; + + const auto &systems1 = systems->at(atom1.value()); + + for (const auto &system : systems->at(atom0.value())) { - // the three are part of the same ring if any of the paths contains - // atom1 - foreach (const QList &path, paths) - { - if (path.contains(atom1)) - return true; - } + if (systems1.contains(system)) + return true; } return false; } -/** This function returns whether or not the four passed atoms are connected - via a same ring */ -bool ConnectivityBase::inRing(AtomIdx atom0, AtomIdx atom1, AtomIdx atom2, AtomIdx atom3) const +/** Return whether two of the passed paths between the same end atoms form a + ring of at most max_ring_size atoms that contains all of 'atoms' */ +static bool paths_form_ring(const QList> &paths, const QList &atoms, int max_ring_size) { - QList> paths = findPaths(atom0, atom3, MAX_RING_SIZE); - - atom1 = atom1.map(minfo.nAtoms()); - atom2 = atom2.map(minfo.nAtoms()); - - if (paths.count() > 1) + for (int i = 0; i < paths.count(); ++i) { - // the four are part of the same ring if atom1 and atom2 are contained - // in any of the paths - bool have_atom1 = false; - bool have_atom2 = false; + const auto &path0 = paths.at(i); - foreach (const QList &path, paths) + for (int j = i + 1; j < paths.count(); ++j) { - if (path.contains(atom1)) + const auto &path1 = paths.at(j); + + const int ring_size = path0.count() + path1.count() - 2; + + if (ring_size > max_ring_size) + continue; + + bool is_ring = true; + + for (int k = 1; is_ring and k < path0.count() - 1; ++k) { - have_atom1 = true; - if (have_atom2) - return this->inRing(atom1, atom2); + is_ring = not path1.contains(path0.at(k)); } - if (path.contains(atom2)) + for (int k = 0; is_ring and k < atoms.count(); ++k) { - have_atom2 = true; - if (have_atom1) - return this->inRing(atom1, atom2); + is_ring = path0.contains(atoms.at(k)) or path1.contains(atoms.at(k)); } + + if (is_ring) + return true; } } return false; } +/** This function returns whether or not the three passed atoms are in the + same ring of at most max_ring_size atoms */ +bool ConnectivityBase::inRing(AtomIdx atom0, AtomIdx atom1, AtomIdx atom2, int max_ring_size) const +{ + if (max_ring_size < 3) + return false; + + const auto paths = findPaths(atom0, atom2, max_ring_size); + + return paths_form_ring(paths, {AtomIdx(atom1.map(minfo.nAtoms()))}, max_ring_size); +} + +/** This function returns whether or not the four passed atoms are in the + same ring of at most max_ring_size atoms */ +bool ConnectivityBase::inRing(AtomIdx atom0, AtomIdx atom1, AtomIdx atom2, AtomIdx atom3, int max_ring_size) const +{ + if (max_ring_size < 3) + return false; + + const auto paths = findPaths(atom0, atom3, max_ring_size); + + return paths_form_ring(paths, {AtomIdx(atom1.map(minfo.nAtoms())), AtomIdx(atom2.map(minfo.nAtoms()))}, + max_ring_size); +} + /** This function returns whether or not the atom is in a ring */ bool ConnectivityBase::inRing(const AtomID &atom) const { return this->inRing(info().atomIdx(atom)); } -/** This function returns whether or not the two passed atoms are connected - via a ring */ +/** This function returns whether or not the two passed atoms are in the same + ring of any size */ bool ConnectivityBase::inRing(const AtomID &atom0, const AtomID &atom1) const { return this->inRing(info().atomIdx(atom0), info().atomIdx(atom1)); } -/** This function returns whether or not the three passed atoms are connected - via a ring */ -bool ConnectivityBase::inRing(const AtomID &atom0, const AtomID &atom1, const AtomID &atom2) const +/** This function returns whether or not the three passed atoms are in the + same ring of at most max_ring_size atoms */ +bool ConnectivityBase::inRing(const AtomID &atom0, const AtomID &atom1, const AtomID &atom2, int max_ring_size) const { - return this->inRing(info().atomIdx(atom0), info().atomIdx(atom1), info().atomIdx(atom2)); + return this->inRing(info().atomIdx(atom0), info().atomIdx(atom1), info().atomIdx(atom2), max_ring_size); } -/** This function returns whether or not the two passed atoms are connected - via a ring */ -bool ConnectivityBase::inRing(const AtomID &atom0, const AtomID &atom1, const AtomID &atom2, const AtomID &atom3) const +/** This function returns whether or not the four passed atoms are in the + same ring of at most max_ring_size atoms */ +bool ConnectivityBase::inRing(const AtomID &atom0, const AtomID &atom1, const AtomID &atom2, const AtomID &atom3, + int max_ring_size) const { - return this->inRing(info().atomIdx(atom0), info().atomIdx(atom1), info().atomIdx(atom2), info().atomIdx(atom3)); + return this->inRing(info().atomIdx(atom0), info().atomIdx(atom1), info().atomIdx(atom2), info().atomIdx(atom3), + max_ring_size); } /** This function returns whether or not the two atoms in the passed bond @@ -1261,17 +1390,17 @@ bool ConnectivityBase::inRing(const BondID &bond) const } /** This function returns whether or not the three atoms in the passed angle - are all part of the same ring */ -bool ConnectivityBase::inRing(const AngleID &angle) const + are all part of the same ring of at most max_ring_size atoms */ +bool ConnectivityBase::inRing(const AngleID &angle, int max_ring_size) const { - return this->inRing(angle.atom0(), angle.atom1(), angle.atom2()); + return this->inRing(angle.atom0(), angle.atom1(), angle.atom2(), max_ring_size); } /** This function returns whether or not the four atoms in the passed dihedral - are all part of the same ring */ -bool ConnectivityBase::inRing(const DihedralID &dihedral) const + are all part of the same ring of at most max_ring_size atoms */ +bool ConnectivityBase::inRing(const DihedralID &dihedral, int max_ring_size) const { - return this->inRing(dihedral.atom0(), dihedral.atom1(), dihedral.atom2(), dihedral.atom3()); + return this->inRing(dihedral.atom0(), dihedral.atom1(), dihedral.atom2(), dihedral.atom3(), max_ring_size); } /** This is a recursive function that traces all atoms that can trace their bonding @@ -4045,6 +4174,8 @@ ConnectivityEditor &ConnectivityEditor::connect(AtomIdx atom0, AtomIdx atom1) connected_atoms_array[atomidx0].insert(atomidx1); connected_atoms_array[atomidx1].insert(atomidx0); + this->_pvt_clearRingSystems(); + if (info().isWithinResidue(atomidx0) and info().isWithinResidue(atomidx1)) { QSet *connected_res_array = connected_res.data(); @@ -4106,6 +4237,8 @@ ConnectivityEditor &ConnectivityEditor::disconnect(AtomIdx atom0, AtomIdx atom1) connected_atoms[atomidx0].remove(atomidx1); connected_atoms[atomidx1].remove(atomidx0); + this->_pvt_clearRingSystems(); + // remove any properties associated with this bond this->bond_props.remove(SireMol::detail::IDPair(atomidx0, atomidx1)); @@ -4219,6 +4352,8 @@ ConnectivityEditor &ConnectivityEditor::disconnectAll() connected_atoms.clear(); connected_res.clear(); + this->_pvt_clearRingSystems(); + if (info().nAtoms() > 0) { connected_atoms.resize(info().nAtoms()); diff --git a/corelib/src/libs/SireMol/connectivity.h b/corelib/src/libs/SireMol/connectivity.h index 9b9f3c8f0..e6f343d26 100644 --- a/corelib/src/libs/SireMol/connectivity.h +++ b/corelib/src/libs/SireMol/connectivity.h @@ -31,6 +31,8 @@ #include #include +#include + #include #include "bondhunter.h" @@ -173,17 +175,18 @@ namespace SireMol bool inRing(AtomIdx atom) const; bool inRing(AtomIdx atom0, AtomIdx atom1) const; - bool inRing(AtomIdx atom0, AtomIdx atom1, AtomIdx atom2) const; - bool inRing(AtomIdx atom0, AtomIdx atom1, AtomIdx atom2, AtomIdx atom3) const; + bool inRing(AtomIdx atom0, AtomIdx atom1, AtomIdx atom2, int max_ring_size = 12) const; + bool inRing(AtomIdx atom0, AtomIdx atom1, AtomIdx atom2, AtomIdx atom3, int max_ring_size = 12) const; bool inRing(const AtomID &atom) const; bool inRing(const AtomID &atom0, const AtomID &atom1) const; - bool inRing(const AtomID &atom0, const AtomID &atom1, const AtomID &atom2) const; - bool inRing(const AtomID &atom0, const AtomID &atom1, const AtomID &atom2, const AtomID &atom3) const; + bool inRing(const AtomID &atom0, const AtomID &atom1, const AtomID &atom2, int max_ring_size = 12) const; + bool inRing(const AtomID &atom0, const AtomID &atom1, const AtomID &atom2, const AtomID &atom3, + int max_ring_size = 12) const; bool inRing(const BondID &bond) const; - bool inRing(const AngleID &angle) const; - bool inRing(const DihedralID &dihedral) const; + bool inRing(const AngleID &angle, int max_ring_size = 12) const; + bool inRing(const DihedralID &dihedral, int max_ring_size = 12) const; int nConnections() const; int nConnections(AtomIdx atomidx) const; @@ -353,6 +356,8 @@ namespace SireMol SireBase::PropertyPtr _pvt_makeCompatibleWith(const MoleculeInfoData &molinfo, const QHash &map) const; + void _pvt_clearRingSystems(); + /** The which atoms are connected to which other atoms in this molecule */ QVector> connected_atoms; @@ -381,6 +386,11 @@ namespace SireMol QList> _pvt_findPaths(AtomIdx cursor, const AtomIdx end_atom, QSet &done, int max_length = -1) const; + std::shared_ptr>> _pvt_ringSystems() const; + + /** Cached ring systems of each atom, cleared when connected_atoms changes */ + mutable std::shared_ptr>> ring_systems; + void traceRoute(AtomIdx start, QSet &root, QSet &group) const; void traceRoute(const AtomSelection &selected_atoms, AtomIdx start, QSet &root, diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index 4c46ded2e..54b90b175 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -190,6 +190,14 @@ organisation on `GitHub `__. * Added support for Python 3.13 and 3.14, and dropped support for Python 3.10 and 3.11. +* Fixed ``Connectivity.in_ring`` missing rings with more than 12 atoms. The one- and two-atom + overloads now find ring systems with Tarjan's algorithm, so there is no size limit. The + two-atom overload now returns whether the atoms are in the same ring, rather than whether + there is more than one path between them, so atoms in separate rings joined by a bond or a + spiro atom are no longer reported as in a ring together. The three- and four-atom overloads + take an optional ``max_ring_size`` argument, defaulting to 12, which is now the largest ring + size matched. Previously the three-atom overload also matched 13-membered rings. + `2026.2.0 `__ - September 2026 ---------------------------------------------------------------------------------------------- diff --git a/tests/mol/test_in_ring.py b/tests/mol/test_in_ring.py new file mode 100644 index 000000000..3beb3eab8 --- /dev/null +++ b/tests/mol/test_in_ring.py @@ -0,0 +1,87 @@ +import pytest +import sire as sr + +from sire.legacy.Mol import AtomIdx + + +@pytest.mark.skipif( + "rdkit" not in sr.convert.supported_formats(), + reason="rdkit support is not available", +) +@pytest.mark.parametrize("size", [3, 6, 12, 13, 14, 30]) +def test_in_ring_no_size_limit(size): + mol = sr.smiles("C1" + "C" * (size - 2) + "C1") + conn = mol.property("connectivity") + + for i in range(size): + assert conn.in_ring(AtomIdx(i)) + assert conn.in_ring(AtomIdx(i), AtomIdx((i + 1) % size)) + + # Hydrogens follow the heavy atoms. + hydrogen = AtomIdx(mol.num_atoms() - 1) + assert not conn.in_ring(hydrogen) + assert not conn.in_ring(hydrogen, next(iter(conn.connections_to(hydrogen)))) + + +@pytest.mark.skipif( + "rdkit" not in sr.convert.supported_formats(), + reason="rdkit support is not available", +) +def test_in_ring_separate_rings(): + # Biphenyl: ring A is atoms 0-5, ring B is atoms 6-11, joined by 5-6. + conn = sr.smiles("c1ccccc1-c1ccccc1").property("connectivity") + + assert conn.in_ring(AtomIdx(5)) + assert conn.in_ring(AtomIdx(6)) + assert conn.in_ring(AtomIdx(1), AtomIdx(3)) + assert not conn.in_ring(AtomIdx(5), AtomIdx(6)) + assert not conn.in_ring(AtomIdx(1), AtomIdx(8)) + + # Spiro[4.4]nonane: atom 3 is shared by rings 0-4 and 3,5-8. + conn = sr.smiles("C1CCC2(C1)CCCC2").property("connectivity") + + assert conn.in_ring(AtomIdx(3), AtomIdx(0)) + assert conn.in_ring(AtomIdx(3), AtomIdx(6)) + assert not conn.in_ring(AtomIdx(0), AtomIdx(6)) + + +@pytest.mark.skipif( + "rdkit" not in sr.convert.supported_formats(), + reason="rdkit support is not available", +) +def test_in_ring_after_edit(): + conn = sr.smiles("C1CCCCC1").property("connectivity") + + # Populate the cached ring systems before editing a copy. + assert conn.in_ring(AtomIdx(0)) + + broken = conn.edit().disconnect(AtomIdx(0), AtomIdx(1)).commit() + + assert conn.in_ring(AtomIdx(0)) + assert not broken.in_ring(AtomIdx(0)) + assert not broken.in_ring(AtomIdx(2), AtomIdx(3)) + + closed = broken.edit().connect(AtomIdx(0), AtomIdx(1)).commit() + + assert closed.in_ring(AtomIdx(0)) + assert closed.in_ring(AtomIdx(2), AtomIdx(3)) + + +@pytest.mark.skipif( + "rdkit" not in sr.convert.supported_formats(), + reason="rdkit support is not available", +) +@pytest.mark.parametrize("size", [3, 4, 6, 12, 13, 14]) +def test_in_ring_max_ring_size(size): + conn = sr.smiles("C1" + "C" * (size - 2) + "C1").property("connectivity") + + atoms = [AtomIdx(i) for i in range(min(size, 4))] + + assert conn.in_ring(*atoms[:3], max_ring_size=size) + assert not conn.in_ring(*atoms[:3], max_ring_size=size - 1) + assert conn.in_ring(*atoms[:3]) == (size <= 12) + + if size >= 4: + assert conn.in_ring(*atoms, max_ring_size=size) + assert not conn.in_ring(*atoms, max_ring_size=size - 1) + assert conn.in_ring(*atoms) == (size <= 12) diff --git a/wrapper/Mol/ConnectivityBase.pypp.cpp b/wrapper/Mol/ConnectivityBase.pypp.cpp index 7480c66ff..87caf328d 100644 --- a/wrapper/Mol/ConnectivityBase.pypp.cpp +++ b/wrapper/Mol/ConnectivityBase.pypp.cpp @@ -2,9 +2,9 @@ // (C) Christopher Woods, LGPL >= 3 License -#include "boost/python.hpp" -#include "Helpers/clone_const_reference.hpp" #include "ConnectivityBase.pypp.hpp" +#include "Helpers/clone_const_reference.hpp" +#include "boost/python.hpp" namespace bp = boost::python; @@ -64,1452 +64,908 @@ namespace bp = boost::python; #include "Helpers/release_gil_policy.hpp" -void register_ConnectivityBase_class(){ +void register_ConnectivityBase_class() +{ { //::SireMol::ConnectivityBase - typedef bp::class_< SireMol::ConnectivityBase, bp::bases< SireMol::MolViewProperty, SireBase::Property >, boost::noncopyable > ConnectivityBase_exposer_t; - ConnectivityBase_exposer_t ConnectivityBase_exposer = ConnectivityBase_exposer_t( "ConnectivityBase", "The base class of Connectivity and ConnectivityEditor\n\nAuthor: Christopher Woods\n", bp::no_init ); - bp::scope ConnectivityBase_scope( ConnectivityBase_exposer ); + typedef bp::class_, boost::noncopyable> ConnectivityBase_exposer_t; + ConnectivityBase_exposer_t ConnectivityBase_exposer = ConnectivityBase_exposer_t("ConnectivityBase", "The base class of Connectivity and ConnectivityEditor\n\nAuthor: Christopher Woods\n", bp::no_init); + bp::scope ConnectivityBase_scope(ConnectivityBase_exposer); { //::SireMol::ConnectivityBase::areAngled - - typedef bool ( ::SireMol::ConnectivityBase::*areAngled_function_type)( ::SireMol::AtomIdx,::SireMol::AtomIdx ) const; - areAngled_function_type areAngled_function_value( &::SireMol::ConnectivityBase::areAngled ); - - ConnectivityBase_exposer.def( - "areAngled" - , areAngled_function_value - , ( bp::arg("atom0"), bp::arg("atom2") ) - , bp::release_gil_policy() - , "Return whether or not the two atoms are angled together" ); - + + typedef bool (::SireMol::ConnectivityBase::*areAngled_function_type)(::SireMol::AtomIdx, ::SireMol::AtomIdx) const; + areAngled_function_type areAngled_function_value(&::SireMol::ConnectivityBase::areAngled); + + ConnectivityBase_exposer.def( + "areAngled", areAngled_function_value, (bp::arg("atom0"), bp::arg("atom2")), bp::release_gil_policy(), "Return whether or not the two atoms are angled together"); } { //::SireMol::ConnectivityBase::areAngled - - typedef bool ( ::SireMol::ConnectivityBase::*areAngled_function_type)( ::SireMol::AtomID const &,::SireMol::AtomID const & ) const; - areAngled_function_type areAngled_function_value( &::SireMol::ConnectivityBase::areAngled ); - - ConnectivityBase_exposer.def( - "areAngled" - , areAngled_function_value - , ( bp::arg("atom0"), bp::arg("atom2") ) - , bp::release_gil_policy() - , "Return whether or not the two atoms are angled together" ); - + + typedef bool (::SireMol::ConnectivityBase::*areAngled_function_type)(::SireMol::AtomID const &, ::SireMol::AtomID const &) const; + areAngled_function_type areAngled_function_value(&::SireMol::ConnectivityBase::areAngled); + + ConnectivityBase_exposer.def( + "areAngled", areAngled_function_value, (bp::arg("atom0"), bp::arg("atom2")), bp::release_gil_policy(), "Return whether or not the two atoms are angled together"); } { //::SireMol::ConnectivityBase::areBonded - - typedef bool ( ::SireMol::ConnectivityBase::*areBonded_function_type)( ::SireMol::AtomIdx,::SireMol::AtomIdx ) const; - areBonded_function_type areBonded_function_value( &::SireMol::ConnectivityBase::areBonded ); - - ConnectivityBase_exposer.def( - "areBonded" - , areBonded_function_value - , ( bp::arg("atom0"), bp::arg("atom1") ) - , bp::release_gil_policy() - , "Return whether or not the two atoms are bonded together" ); - + + typedef bool (::SireMol::ConnectivityBase::*areBonded_function_type)(::SireMol::AtomIdx, ::SireMol::AtomIdx) const; + areBonded_function_type areBonded_function_value(&::SireMol::ConnectivityBase::areBonded); + + ConnectivityBase_exposer.def( + "areBonded", areBonded_function_value, (bp::arg("atom0"), bp::arg("atom1")), bp::release_gil_policy(), "Return whether or not the two atoms are bonded together"); } { //::SireMol::ConnectivityBase::areBonded - - typedef bool ( ::SireMol::ConnectivityBase::*areBonded_function_type)( ::SireMol::AtomID const &,::SireMol::AtomID const & ) const; - areBonded_function_type areBonded_function_value( &::SireMol::ConnectivityBase::areBonded ); - - ConnectivityBase_exposer.def( - "areBonded" - , areBonded_function_value - , ( bp::arg("atom0"), bp::arg("atom1") ) - , bp::release_gil_policy() - , "Return whether or not the two atoms are bonded together" ); - + + typedef bool (::SireMol::ConnectivityBase::*areBonded_function_type)(::SireMol::AtomID const &, ::SireMol::AtomID const &) const; + areBonded_function_type areBonded_function_value(&::SireMol::ConnectivityBase::areBonded); + + ConnectivityBase_exposer.def( + "areBonded", areBonded_function_value, (bp::arg("atom0"), bp::arg("atom1")), bp::release_gil_policy(), "Return whether or not the two atoms are bonded together"); } { //::SireMol::ConnectivityBase::areConnected - - typedef bool ( ::SireMol::ConnectivityBase::*areConnected_function_type)( ::SireMol::AtomIdx,::SireMol::AtomIdx ) const; - areConnected_function_type areConnected_function_value( &::SireMol::ConnectivityBase::areConnected ); - - ConnectivityBase_exposer.def( - "areConnected" - , areConnected_function_value - , ( bp::arg("atom0"), bp::arg("atom1") ) - , bp::release_gil_policy() - , "Return whether or not the atoms at indicies atom0 and atom1\nare connected\nThrow: SireError::invalid_index\n" ); - + + typedef bool (::SireMol::ConnectivityBase::*areConnected_function_type)(::SireMol::AtomIdx, ::SireMol::AtomIdx) const; + areConnected_function_type areConnected_function_value(&::SireMol::ConnectivityBase::areConnected); + + ConnectivityBase_exposer.def( + "areConnected", areConnected_function_value, (bp::arg("atom0"), bp::arg("atom1")), bp::release_gil_policy(), "Return whether or not the atoms at indicies atom0 and atom1\nare connected\nThrow: SireError::invalid_index\n"); } { //::SireMol::ConnectivityBase::areConnected - - typedef bool ( ::SireMol::ConnectivityBase::*areConnected_function_type)( ::SireMol::AtomID const &,::SireMol::AtomID const & ) const; - areConnected_function_type areConnected_function_value( &::SireMol::ConnectivityBase::areConnected ); - - ConnectivityBase_exposer.def( - "areConnected" - , areConnected_function_value - , ( bp::arg("atom0"), bp::arg("atom1") ) - , bp::release_gil_policy() - , "Return whether or not the atoms identified by atom0 and atom1\nare connected\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\n" ); - + + typedef bool (::SireMol::ConnectivityBase::*areConnected_function_type)(::SireMol::AtomID const &, ::SireMol::AtomID const &) const; + areConnected_function_type areConnected_function_value(&::SireMol::ConnectivityBase::areConnected); + + ConnectivityBase_exposer.def( + "areConnected", areConnected_function_value, (bp::arg("atom0"), bp::arg("atom1")), bp::release_gil_policy(), "Return whether or not the atoms identified by atom0 and atom1\nare connected\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\n"); } { //::SireMol::ConnectivityBase::areConnected - - typedef bool ( ::SireMol::ConnectivityBase::*areConnected_function_type)( ::SireMol::ResIdx,::SireMol::ResIdx ) const; - areConnected_function_type areConnected_function_value( &::SireMol::ConnectivityBase::areConnected ); - - ConnectivityBase_exposer.def( - "areConnected" - , areConnected_function_value - , ( bp::arg("res0"), bp::arg("res1") ) - , bp::release_gil_policy() - , "Return whether or not the residues at indicies res0 and res1\nare connected\nThrow: SireError::invalid_index\n" ); - + + typedef bool (::SireMol::ConnectivityBase::*areConnected_function_type)(::SireMol::ResIdx, ::SireMol::ResIdx) const; + areConnected_function_type areConnected_function_value(&::SireMol::ConnectivityBase::areConnected); + + ConnectivityBase_exposer.def( + "areConnected", areConnected_function_value, (bp::arg("res0"), bp::arg("res1")), bp::release_gil_policy(), "Return whether or not the residues at indicies res0 and res1\nare connected\nThrow: SireError::invalid_index\n"); } { //::SireMol::ConnectivityBase::areConnected - - typedef bool ( ::SireMol::ConnectivityBase::*areConnected_function_type)( ::SireMol::ResID const &,::SireMol::ResID const & ) const; - areConnected_function_type areConnected_function_value( &::SireMol::ConnectivityBase::areConnected ); - - ConnectivityBase_exposer.def( - "areConnected" - , areConnected_function_value - , ( bp::arg("res0"), bp::arg("res1") ) - , bp::release_gil_policy() - , "Return whether the residues identified by res0 and res1 are connected" ); - + + typedef bool (::SireMol::ConnectivityBase::*areConnected_function_type)(::SireMol::ResID const &, ::SireMol::ResID const &) const; + areConnected_function_type areConnected_function_value(&::SireMol::ConnectivityBase::areConnected); + + ConnectivityBase_exposer.def( + "areConnected", areConnected_function_value, (bp::arg("res0"), bp::arg("res1")), bp::release_gil_policy(), "Return whether the residues identified by res0 and res1 are connected"); } { //::SireMol::ConnectivityBase::areConnected - - typedef bool ( ::SireMol::ConnectivityBase::*areConnected_function_type)( ::SireMol::CGIdx,::SireMol::CGIdx ) const; - areConnected_function_type areConnected_function_value( &::SireMol::ConnectivityBase::areConnected ); - - ConnectivityBase_exposer.def( - "areConnected" - , areConnected_function_value - , ( bp::arg("cg0"), bp::arg("cg1") ) - , bp::release_gil_policy() - , "Return whether or not the CutGroups at indicies cg0 and cg1 are\nconnected" ); - + + typedef bool (::SireMol::ConnectivityBase::*areConnected_function_type)(::SireMol::CGIdx, ::SireMol::CGIdx) const; + areConnected_function_type areConnected_function_value(&::SireMol::ConnectivityBase::areConnected); + + ConnectivityBase_exposer.def( + "areConnected", areConnected_function_value, (bp::arg("cg0"), bp::arg("cg1")), bp::release_gil_policy(), "Return whether or not the CutGroups at indicies cg0 and cg1 are\nconnected"); } { //::SireMol::ConnectivityBase::areConnected - - typedef bool ( ::SireMol::ConnectivityBase::*areConnected_function_type)( ::SireMol::CGID const &,::SireMol::CGID const & ) const; - areConnected_function_type areConnected_function_value( &::SireMol::ConnectivityBase::areConnected ); - - ConnectivityBase_exposer.def( - "areConnected" - , areConnected_function_value - , ( bp::arg("cg0"), bp::arg("cg1") ) - , bp::release_gil_policy() - , "Return whether or not the CutGroups at indicies cg0 and cg1 are\nconnected" ); - + + typedef bool (::SireMol::ConnectivityBase::*areConnected_function_type)(::SireMol::CGID const &, ::SireMol::CGID const &) const; + areConnected_function_type areConnected_function_value(&::SireMol::ConnectivityBase::areConnected); + + ConnectivityBase_exposer.def( + "areConnected", areConnected_function_value, (bp::arg("cg0"), bp::arg("cg1")), bp::release_gil_policy(), "Return whether or not the CutGroups at indicies cg0 and cg1 are\nconnected"); } { //::SireMol::ConnectivityBase::areDihedraled - - typedef bool ( ::SireMol::ConnectivityBase::*areDihedraled_function_type)( ::SireMol::AtomIdx,::SireMol::AtomIdx ) const; - areDihedraled_function_type areDihedraled_function_value( &::SireMol::ConnectivityBase::areDihedraled ); - - ConnectivityBase_exposer.def( - "areDihedraled" - , areDihedraled_function_value - , ( bp::arg("atom0"), bp::arg("atom3") ) - , bp::release_gil_policy() - , "Return whether or not the two atoms are dihedraled together" ); - + + typedef bool (::SireMol::ConnectivityBase::*areDihedraled_function_type)(::SireMol::AtomIdx, ::SireMol::AtomIdx) const; + areDihedraled_function_type areDihedraled_function_value(&::SireMol::ConnectivityBase::areDihedraled); + + ConnectivityBase_exposer.def( + "areDihedraled", areDihedraled_function_value, (bp::arg("atom0"), bp::arg("atom3")), bp::release_gil_policy(), "Return whether or not the two atoms are dihedraled together"); } { //::SireMol::ConnectivityBase::areDihedraled - - typedef bool ( ::SireMol::ConnectivityBase::*areDihedraled_function_type)( ::SireMol::AtomID const &,::SireMol::AtomID const & ) const; - areDihedraled_function_type areDihedraled_function_value( &::SireMol::ConnectivityBase::areDihedraled ); - - ConnectivityBase_exposer.def( - "areDihedraled" - , areDihedraled_function_value - , ( bp::arg("atom0"), bp::arg("atom3") ) - , bp::release_gil_policy() - , "Return whether or not the two atoms are bonded together" ); - + + typedef bool (::SireMol::ConnectivityBase::*areDihedraled_function_type)(::SireMol::AtomID const &, ::SireMol::AtomID const &) const; + areDihedraled_function_type areDihedraled_function_value(&::SireMol::ConnectivityBase::areDihedraled); + + ConnectivityBase_exposer.def( + "areDihedraled", areDihedraled_function_value, (bp::arg("atom0"), bp::arg("atom3")), bp::release_gil_policy(), "Return whether or not the two atoms are bonded together"); } { //::SireMol::ConnectivityBase::assertHasProperty - - typedef void ( ::SireMol::ConnectivityBase::*assertHasProperty_function_type)( ::SireMol::BondID const &,::SireBase::PropertyName const & ) const; - assertHasProperty_function_type assertHasProperty_function_value( &::SireMol::ConnectivityBase::assertHasProperty ); - - ConnectivityBase_exposer.def( - "assertHasProperty" - , assertHasProperty_function_value - , ( bp::arg("bond"), bp::arg("key") ) - , bp::release_gil_policy() - , "Assert that the specified bond has the specified property" ); - + + typedef void (::SireMol::ConnectivityBase::*assertHasProperty_function_type)(::SireMol::BondID const &, ::SireBase::PropertyName const &) const; + assertHasProperty_function_type assertHasProperty_function_value(&::SireMol::ConnectivityBase::assertHasProperty); + + ConnectivityBase_exposer.def( + "assertHasProperty", assertHasProperty_function_value, (bp::arg("bond"), bp::arg("key")), bp::release_gil_policy(), "Assert that the specified bond has the specified property"); } { //::SireMol::ConnectivityBase::assertHasProperty - - typedef void ( ::SireMol::ConnectivityBase::*assertHasProperty_function_type)( ::SireMol::AngleID const &,::SireBase::PropertyName const & ) const; - assertHasProperty_function_type assertHasProperty_function_value( &::SireMol::ConnectivityBase::assertHasProperty ); - - ConnectivityBase_exposer.def( - "assertHasProperty" - , assertHasProperty_function_value - , ( bp::arg("ang"), bp::arg("key") ) - , bp::release_gil_policy() - , "Assert that the specified angle has the specified property" ); - + + typedef void (::SireMol::ConnectivityBase::*assertHasProperty_function_type)(::SireMol::AngleID const &, ::SireBase::PropertyName const &) const; + assertHasProperty_function_type assertHasProperty_function_value(&::SireMol::ConnectivityBase::assertHasProperty); + + ConnectivityBase_exposer.def( + "assertHasProperty", assertHasProperty_function_value, (bp::arg("ang"), bp::arg("key")), bp::release_gil_policy(), "Assert that the specified angle has the specified property"); } { //::SireMol::ConnectivityBase::assertHasProperty - - typedef void ( ::SireMol::ConnectivityBase::*assertHasProperty_function_type)( ::SireMol::DihedralID const &,::SireBase::PropertyName const & ) const; - assertHasProperty_function_type assertHasProperty_function_value( &::SireMol::ConnectivityBase::assertHasProperty ); - - ConnectivityBase_exposer.def( - "assertHasProperty" - , assertHasProperty_function_value - , ( bp::arg("dih"), bp::arg("key") ) - , bp::release_gil_policy() - , "Assert that the specified angle has the specified property" ); - + + typedef void (::SireMol::ConnectivityBase::*assertHasProperty_function_type)(::SireMol::DihedralID const &, ::SireBase::PropertyName const &) const; + assertHasProperty_function_type assertHasProperty_function_value(&::SireMol::ConnectivityBase::assertHasProperty); + + ConnectivityBase_exposer.def( + "assertHasProperty", assertHasProperty_function_value, (bp::arg("dih"), bp::arg("key")), bp::release_gil_policy(), "Assert that the specified angle has the specified property"); } { //::SireMol::ConnectivityBase::assertHasProperty - - typedef void ( ::SireMol::ConnectivityBase::*assertHasProperty_function_type)( ::SireMol::ImproperID const &,::SireBase::PropertyName const & ) const; - assertHasProperty_function_type assertHasProperty_function_value( &::SireMol::ConnectivityBase::assertHasProperty ); - - ConnectivityBase_exposer.def( - "assertHasProperty" - , assertHasProperty_function_value - , ( bp::arg("imp"), bp::arg("key") ) - , bp::release_gil_policy() - , "Assert that the specified angle has the specified property" ); - + + typedef void (::SireMol::ConnectivityBase::*assertHasProperty_function_type)(::SireMol::ImproperID const &, ::SireBase::PropertyName const &) const; + assertHasProperty_function_type assertHasProperty_function_value(&::SireMol::ConnectivityBase::assertHasProperty); + + ConnectivityBase_exposer.def( + "assertHasProperty", assertHasProperty_function_value, (bp::arg("imp"), bp::arg("key")), bp::release_gil_policy(), "Assert that the specified angle has the specified property"); } { //::SireMol::ConnectivityBase::connectionType - - typedef int ( ::SireMol::ConnectivityBase::*connectionType_function_type)( ::SireMol::AtomIdx,::SireMol::AtomIdx ) const; - connectionType_function_type connectionType_function_value( &::SireMol::ConnectivityBase::connectionType ); - - ConnectivityBase_exposer.def( - "connectionType" - , connectionType_function_value - , ( bp::arg("atom0"), bp::arg("atom1") ) - , bp::release_gil_policy() - , "Return the connection type of the passed two atoms. This returns;\n" ); - + + typedef int (::SireMol::ConnectivityBase::*connectionType_function_type)(::SireMol::AtomIdx, ::SireMol::AtomIdx) const; + connectionType_function_type connectionType_function_value(&::SireMol::ConnectivityBase::connectionType); + + ConnectivityBase_exposer.def( + "connectionType", connectionType_function_value, (bp::arg("atom0"), bp::arg("atom1")), bp::release_gil_policy(), "Return the connection type of the passed two atoms. This returns;\n"); } { //::SireMol::ConnectivityBase::connectionType - - typedef int ( ::SireMol::ConnectivityBase::*connectionType_function_type)( ::SireMol::AtomID const &,::SireMol::AtomID const & ) const; - connectionType_function_type connectionType_function_value( &::SireMol::ConnectivityBase::connectionType ); - - ConnectivityBase_exposer.def( - "connectionType" - , connectionType_function_value - , ( bp::arg("atom0"), bp::arg("atom1") ) - , bp::release_gil_policy() - , "Return the connection type of the passed two atoms. This returns;\n" ); - + + typedef int (::SireMol::ConnectivityBase::*connectionType_function_type)(::SireMol::AtomID const &, ::SireMol::AtomID const &) const; + connectionType_function_type connectionType_function_value(&::SireMol::ConnectivityBase::connectionType); + + ConnectivityBase_exposer.def( + "connectionType", connectionType_function_value, (bp::arg("atom0"), bp::arg("atom1")), bp::release_gil_policy(), "Return the connection type of the passed two atoms. This returns;\n"); } { //::SireMol::ConnectivityBase::connectionsTo - - typedef ::QSet< SireMol::AtomIdx > const & ( ::SireMol::ConnectivityBase::*connectionsTo_function_type)( ::SireMol::AtomIdx ) const; - connectionsTo_function_type connectionsTo_function_value( &::SireMol::ConnectivityBase::connectionsTo ); - - ConnectivityBase_exposer.def( - "connectionsTo" - , connectionsTo_function_value - , ( bp::arg("atomidx") ) - , bp::return_value_policy< bp::copy_const_reference >() - , "Return the indicies of atoms connected to the atom at index atomidx.\nThis returns an empty set if there are no atoms connected to\nthis atom\nThrow: SireError::invalid_index\n" ); - + + typedef ::QSet const &(::SireMol::ConnectivityBase::*connectionsTo_function_type)(::SireMol::AtomIdx) const; + connectionsTo_function_type connectionsTo_function_value(&::SireMol::ConnectivityBase::connectionsTo); + + ConnectivityBase_exposer.def( + "connectionsTo", connectionsTo_function_value, (bp::arg("atomidx")), bp::return_value_policy(), "Return the indicies of atoms connected to the atom at index atomidx.\nThis returns an empty set if there are no atoms connected to\nthis atom\nThrow: SireError::invalid_index\n"); } { //::SireMol::ConnectivityBase::connectionsTo - - typedef ::QSet< SireMol::AtomIdx > const & ( ::SireMol::ConnectivityBase::*connectionsTo_function_type)( ::SireMol::AtomID const & ) const; - connectionsTo_function_type connectionsTo_function_value( &::SireMol::ConnectivityBase::connectionsTo ); - - ConnectivityBase_exposer.def( - "connectionsTo" - , connectionsTo_function_value - , ( bp::arg("atomid") ) - , bp::return_value_policy< bp::copy_const_reference >() - , "Return the indicies of atoms connected to the atom identified\nby resid - this returns an empty set if there are no connections\nto this atom\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\n" ); - + + typedef ::QSet const &(::SireMol::ConnectivityBase::*connectionsTo_function_type)(::SireMol::AtomID const &) const; + connectionsTo_function_type connectionsTo_function_value(&::SireMol::ConnectivityBase::connectionsTo); + + ConnectivityBase_exposer.def( + "connectionsTo", connectionsTo_function_value, (bp::arg("atomid")), bp::return_value_policy(), "Return the indicies of atoms connected to the atom identified\nby resid - this returns an empty set if there are no connections\nto this atom\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\n"); } { //::SireMol::ConnectivityBase::connectionsTo - - typedef ::QSet< SireMol::ResIdx > const & ( ::SireMol::ConnectivityBase::*connectionsTo_function_type)( ::SireMol::ResIdx ) const; - connectionsTo_function_type connectionsTo_function_value( &::SireMol::ConnectivityBase::connectionsTo ); - - ConnectivityBase_exposer.def( - "connectionsTo" - , connectionsTo_function_value - , ( bp::arg("residx") ) - , bp::return_value_policy< bp::copy_const_reference >() - , "Return the indicies of the residues connected to the residue at\nindex residx. This returns an empty set if there are no residues\nconnected to this residue\nThrow: SireError::invalid_index\n" ); - + + typedef ::QSet const &(::SireMol::ConnectivityBase::*connectionsTo_function_type)(::SireMol::ResIdx) const; + connectionsTo_function_type connectionsTo_function_value(&::SireMol::ConnectivityBase::connectionsTo); + + ConnectivityBase_exposer.def( + "connectionsTo", connectionsTo_function_value, (bp::arg("residx")), bp::return_value_policy(), "Return the indicies of the residues connected to the residue at\nindex residx. This returns an empty set if there are no residues\nconnected to this residue\nThrow: SireError::invalid_index\n"); } { //::SireMol::ConnectivityBase::connectionsTo - - typedef ::QSet< SireMol::ResIdx > const & ( ::SireMol::ConnectivityBase::*connectionsTo_function_type)( ::SireMol::ResID const & ) const; - connectionsTo_function_type connectionsTo_function_value( &::SireMol::ConnectivityBase::connectionsTo ); - - ConnectivityBase_exposer.def( - "connectionsTo" - , connectionsTo_function_value - , ( bp::arg("resid") ) - , bp::return_value_policy< bp::copy_const_reference >() - , "Return the indicies of the residues connectd to the residue\nidentified by resid. This returns an empty set if there are\nno residues connected to this residue.\nThrow: SireMol::missing_residue\nThrow: SireMol::duplicate_residue\nThrow: SireError::invalid_index\n" ); - + + typedef ::QSet const &(::SireMol::ConnectivityBase::*connectionsTo_function_type)(::SireMol::ResID const &) const; + connectionsTo_function_type connectionsTo_function_value(&::SireMol::ConnectivityBase::connectionsTo); + + ConnectivityBase_exposer.def( + "connectionsTo", connectionsTo_function_value, (bp::arg("resid")), bp::return_value_policy(), "Return the indicies of the residues connectd to the residue\nidentified by resid. This returns an empty set if there are\nno residues connected to this residue.\nThrow: SireMol::missing_residue\nThrow: SireMol::duplicate_residue\nThrow: SireError::invalid_index\n"); } { //::SireMol::ConnectivityBase::findPath - - typedef ::QList< SireMol::AtomIdx > ( ::SireMol::ConnectivityBase::*findPath_function_type)( ::SireMol::AtomIdx,::SireMol::AtomIdx ) const; - findPath_function_type findPath_function_value( &::SireMol::ConnectivityBase::findPath ); - - ConnectivityBase_exposer.def( - "findPath" - , findPath_function_value - , ( bp::arg("atom0"), bp::arg("atom1") ) - , bp::release_gil_policy() - , "Find the shortest bonded path between two atoms. This returns an empty\nlist if there is no bonded path between these two atoms" ); - + + typedef ::QList (::SireMol::ConnectivityBase::*findPath_function_type)(::SireMol::AtomIdx, ::SireMol::AtomIdx) const; + findPath_function_type findPath_function_value(&::SireMol::ConnectivityBase::findPath); + + ConnectivityBase_exposer.def( + "findPath", findPath_function_value, (bp::arg("atom0"), bp::arg("atom1")), bp::release_gil_policy(), "Find the shortest bonded path between two atoms. This returns an empty\nlist if there is no bonded path between these two atoms"); } { //::SireMol::ConnectivityBase::findPath - - typedef ::QList< SireMol::AtomIdx > ( ::SireMol::ConnectivityBase::*findPath_function_type)( ::SireMol::AtomIdx,::SireMol::AtomIdx,int ) const; - findPath_function_type findPath_function_value( &::SireMol::ConnectivityBase::findPath ); - - ConnectivityBase_exposer.def( - "findPath" - , findPath_function_value - , ( bp::arg("atom0"), bp::arg("atom1"), bp::arg("max_length") ) - , bp::release_gil_policy() - , "Find the shortest bonded path between two atoms where the path has\na maximum length. This returns an empty list if there is no bonded\npath between these two atoms" ); - + + typedef ::QList (::SireMol::ConnectivityBase::*findPath_function_type)(::SireMol::AtomIdx, ::SireMol::AtomIdx, int) const; + findPath_function_type findPath_function_value(&::SireMol::ConnectivityBase::findPath); + + ConnectivityBase_exposer.def( + "findPath", findPath_function_value, (bp::arg("atom0"), bp::arg("atom1"), bp::arg("max_length")), bp::release_gil_policy(), "Find the shortest bonded path between two atoms where the path has\na maximum length. This returns an empty list if there is no bonded\npath between these two atoms"); } { //::SireMol::ConnectivityBase::findPath - - typedef ::QList< SireMol::AtomIdx > ( ::SireMol::ConnectivityBase::*findPath_function_type)( ::SireMol::AtomID const &,::SireMol::AtomID const & ) const; - findPath_function_type findPath_function_value( &::SireMol::ConnectivityBase::findPath ); - - ConnectivityBase_exposer.def( - "findPath" - , findPath_function_value - , ( bp::arg("atom0"), bp::arg("atom1") ) - , bp::release_gil_policy() - , "Return all possible bonded paths between two atoms. This returns an empty\nlist if there are no bonded paths between the two atoms" ); - + + typedef ::QList (::SireMol::ConnectivityBase::*findPath_function_type)(::SireMol::AtomID const &, ::SireMol::AtomID const &) const; + findPath_function_type findPath_function_value(&::SireMol::ConnectivityBase::findPath); + + ConnectivityBase_exposer.def( + "findPath", findPath_function_value, (bp::arg("atom0"), bp::arg("atom1")), bp::release_gil_policy(), "Return all possible bonded paths between two atoms. This returns an empty\nlist if there are no bonded paths between the two atoms"); } { //::SireMol::ConnectivityBase::findPath - - typedef ::QList< SireMol::AtomIdx > ( ::SireMol::ConnectivityBase::*findPath_function_type)( ::SireMol::AtomID const &,::SireMol::AtomID const &,int ) const; - findPath_function_type findPath_function_value( &::SireMol::ConnectivityBase::findPath ); - - ConnectivityBase_exposer.def( - "findPath" - , findPath_function_value - , ( bp::arg("atom0"), bp::arg("atom1"), bp::arg("max_length") ) - , bp::release_gil_policy() - , "Return all possible bonded paths between two atoms. This returns an empty\nlist if there are no bonded paths between the two atoms where the path has\na maximum length." ); - + + typedef ::QList (::SireMol::ConnectivityBase::*findPath_function_type)(::SireMol::AtomID const &, ::SireMol::AtomID const &, int) const; + findPath_function_type findPath_function_value(&::SireMol::ConnectivityBase::findPath); + + ConnectivityBase_exposer.def( + "findPath", findPath_function_value, (bp::arg("atom0"), bp::arg("atom1"), bp::arg("max_length")), bp::release_gil_policy(), "Return all possible bonded paths between two atoms. This returns an empty\nlist if there are no bonded paths between the two atoms where the path has\na maximum length."); } { //::SireMol::ConnectivityBase::findPaths - - typedef ::QList< QList< SireMol::AtomIdx > > ( ::SireMol::ConnectivityBase::*findPaths_function_type)( ::SireMol::AtomIdx,::SireMol::AtomIdx ) const; - findPaths_function_type findPaths_function_value( &::SireMol::ConnectivityBase::findPaths ); - - ConnectivityBase_exposer.def( - "findPaths" - , findPaths_function_value - , ( bp::arg("atom0"), bp::arg("atom1") ) - , bp::release_gil_policy() - , "Return all possible bonded paths between two atoms. This returns an empty\nlist if there are no bonded paths between the two atoms" ); - + + typedef ::QList> (::SireMol::ConnectivityBase::*findPaths_function_type)(::SireMol::AtomIdx, ::SireMol::AtomIdx) const; + findPaths_function_type findPaths_function_value(&::SireMol::ConnectivityBase::findPaths); + + ConnectivityBase_exposer.def( + "findPaths", findPaths_function_value, (bp::arg("atom0"), bp::arg("atom1")), bp::release_gil_policy(), "Return all possible bonded paths between two atoms. This returns an empty\nlist if there are no bonded paths between the two atoms"); } { //::SireMol::ConnectivityBase::findPaths - - typedef ::QList< QList< SireMol::AtomIdx > > ( ::SireMol::ConnectivityBase::*findPaths_function_type)( ::SireMol::AtomIdx,::SireMol::AtomIdx,int ) const; - findPaths_function_type findPaths_function_value( &::SireMol::ConnectivityBase::findPaths ); - - ConnectivityBase_exposer.def( - "findPaths" - , findPaths_function_value - , ( bp::arg("atom0"), bp::arg("atom1"), bp::arg("max_length") ) - , bp::release_gil_policy() - , "Return all possible bonded paths between two atoms where the path has\na maximum length. This returns an empty list if there are no bonded\npaths between the two atoms" ); - + + typedef ::QList> (::SireMol::ConnectivityBase::*findPaths_function_type)(::SireMol::AtomIdx, ::SireMol::AtomIdx, int) const; + findPaths_function_type findPaths_function_value(&::SireMol::ConnectivityBase::findPaths); + + ConnectivityBase_exposer.def( + "findPaths", findPaths_function_value, (bp::arg("atom0"), bp::arg("atom1"), bp::arg("max_length")), bp::release_gil_policy(), "Return all possible bonded paths between two atoms where the path has\na maximum length. This returns an empty list if there are no bonded\npaths between the two atoms"); } { //::SireMol::ConnectivityBase::findPaths - - typedef ::QList< QList< SireMol::AtomIdx > > ( ::SireMol::ConnectivityBase::*findPaths_function_type)( ::SireMol::AtomID const &,::SireMol::AtomID const & ) const; - findPaths_function_type findPaths_function_value( &::SireMol::ConnectivityBase::findPaths ); - - ConnectivityBase_exposer.def( - "findPaths" - , findPaths_function_value - , ( bp::arg("atom0"), bp::arg("atom1") ) - , bp::release_gil_policy() - , "Find the shortest bonded path between two atoms. This returns an empty\nlist if there is no bonded path between these two atoms" ); - + + typedef ::QList> (::SireMol::ConnectivityBase::*findPaths_function_type)(::SireMol::AtomID const &, ::SireMol::AtomID const &) const; + findPaths_function_type findPaths_function_value(&::SireMol::ConnectivityBase::findPaths); + + ConnectivityBase_exposer.def( + "findPaths", findPaths_function_value, (bp::arg("atom0"), bp::arg("atom1")), bp::release_gil_policy(), "Find the shortest bonded path between two atoms. This returns an empty\nlist if there is no bonded path between these two atoms"); } { //::SireMol::ConnectivityBase::findPaths - - typedef ::QList< QList< SireMol::AtomIdx > > ( ::SireMol::ConnectivityBase::*findPaths_function_type)( ::SireMol::AtomID const &,::SireMol::AtomID const &,int ) const; - findPaths_function_type findPaths_function_value( &::SireMol::ConnectivityBase::findPaths ); - - ConnectivityBase_exposer.def( - "findPaths" - , findPaths_function_value - , ( bp::arg("atom0"), bp::arg("atom1"), bp::arg("max_length") ) - , bp::release_gil_policy() - , "Find the shortest bonded path between two atoms where the path has\na maximum length. This returns an empty list if there is no bonded\npath between these two atoms" ); - + + typedef ::QList> (::SireMol::ConnectivityBase::*findPaths_function_type)(::SireMol::AtomID const &, ::SireMol::AtomID const &, int) const; + findPaths_function_type findPaths_function_value(&::SireMol::ConnectivityBase::findPaths); + + ConnectivityBase_exposer.def( + "findPaths", findPaths_function_value, (bp::arg("atom0"), bp::arg("atom1"), bp::arg("max_length")), bp::release_gil_policy(), "Find the shortest bonded path between two atoms where the path has\na maximum length. This returns an empty list if there is no bonded\npath between these two atoms"); } { //::SireMol::ConnectivityBase::getAngles - - typedef ::QList< SireMol::AngleID > ( ::SireMol::ConnectivityBase::*getAngles_function_type)( ) const; - getAngles_function_type getAngles_function_value( &::SireMol::ConnectivityBase::getAngles ); - - ConnectivityBase_exposer.def( - "getAngles" - , getAngles_function_value - , bp::release_gil_policy() - , "Return a list of angles defined by the connectivity" ); - + + typedef ::QList (::SireMol::ConnectivityBase::*getAngles_function_type)() const; + getAngles_function_type getAngles_function_value(&::SireMol::ConnectivityBase::getAngles); + + ConnectivityBase_exposer.def( + "getAngles", getAngles_function_value, bp::release_gil_policy(), "Return a list of angles defined by the connectivity"); } { //::SireMol::ConnectivityBase::getAngles - - typedef ::QList< SireMol::AngleID > ( ::SireMol::ConnectivityBase::*getAngles_function_type)( ::SireMol::AtomID const & ) const; - getAngles_function_type getAngles_function_value( &::SireMol::ConnectivityBase::getAngles ); - - ConnectivityBase_exposer.def( - "getAngles" - , getAngles_function_value - , ( bp::arg("atom0") ) - , bp::release_gil_policy() - , "Return a list of angles defined by the connectivity that involve atom0" ); - + + typedef ::QList (::SireMol::ConnectivityBase::*getAngles_function_type)(::SireMol::AtomID const &) const; + getAngles_function_type getAngles_function_value(&::SireMol::ConnectivityBase::getAngles); + + ConnectivityBase_exposer.def( + "getAngles", getAngles_function_value, (bp::arg("atom0")), bp::release_gil_policy(), "Return a list of angles defined by the connectivity that involve atom0"); } { //::SireMol::ConnectivityBase::getAngles - - typedef ::QList< SireMol::AngleID > ( ::SireMol::ConnectivityBase::*getAngles_function_type)( ::SireMol::AtomID const &,::SireMol::AtomID const & ) const; - getAngles_function_type getAngles_function_value( &::SireMol::ConnectivityBase::getAngles ); - - ConnectivityBase_exposer.def( - "getAngles" - , getAngles_function_value - , ( bp::arg("atom0"), bp::arg("atom1") ) - , bp::release_gil_policy() - , "Return a list of angles defined by the connectivity that involve atom0 and atom1" ); - + + typedef ::QList (::SireMol::ConnectivityBase::*getAngles_function_type)(::SireMol::AtomID const &, ::SireMol::AtomID const &) const; + getAngles_function_type getAngles_function_value(&::SireMol::ConnectivityBase::getAngles); + + ConnectivityBase_exposer.def( + "getAngles", getAngles_function_value, (bp::arg("atom0"), bp::arg("atom1")), bp::release_gil_policy(), "Return a list of angles defined by the connectivity that involve atom0 and atom1"); } { //::SireMol::ConnectivityBase::getBondMatrix - - typedef ::QVector< QVector< bool > > ( ::SireMol::ConnectivityBase::*getBondMatrix_function_type)( int ) const; - getBondMatrix_function_type getBondMatrix_function_value( &::SireMol::ConnectivityBase::getBondMatrix ); - - ConnectivityBase_exposer.def( - "getBondMatrix" - , getBondMatrix_function_value - , ( bp::arg("order") ) - , bp::release_gil_policy() - , "Return a matrix (organised by AtomIdx) that says which atoms are bonded up to\norder order (e.g. if order is two, it returns true for each atom pair that\nare bonded together, if order is three, then true for each atom pair that are\nbonded or angled together, if order is four, then true for each atom pair\nthat are bonded, angled or dihedraled)" ); - + + typedef ::QVector> (::SireMol::ConnectivityBase::*getBondMatrix_function_type)(int) const; + getBondMatrix_function_type getBondMatrix_function_value(&::SireMol::ConnectivityBase::getBondMatrix); + + ConnectivityBase_exposer.def( + "getBondMatrix", getBondMatrix_function_value, (bp::arg("order")), bp::release_gil_policy(), "Return a matrix (organised by AtomIdx) that says which atoms are bonded up to\norder order (e.g. if order is two, it returns true for each atom pair that\nare bonded together, if order is three, then true for each atom pair that are\nbonded or angled together, if order is four, then true for each atom pair\nthat are bonded, angled or dihedraled)"); } { //::SireMol::ConnectivityBase::getBondMatrix - - typedef ::QVector< QVector< bool > > ( ::SireMol::ConnectivityBase::*getBondMatrix_function_type)( int,int ) const; - getBondMatrix_function_type getBondMatrix_function_value( &::SireMol::ConnectivityBase::getBondMatrix ); - - ConnectivityBase_exposer.def( - "getBondMatrix" - , getBondMatrix_function_value - , ( bp::arg("start"), bp::arg("end") ) - , bp::release_gil_policy() - , "Return a matrix (organised by AtomIdx) that says which atoms are bonded between\norder start and order end (e.g. if order is two, it returns true for each atom pair that\nare bonded together, if order is three, then true for each atom pair that are\nbonded or angled together, if order is four, then true for each atom pair\nthat are bonded, angled or dihedraled)" ); - + + typedef ::QVector> (::SireMol::ConnectivityBase::*getBondMatrix_function_type)(int, int) const; + getBondMatrix_function_type getBondMatrix_function_value(&::SireMol::ConnectivityBase::getBondMatrix); + + ConnectivityBase_exposer.def( + "getBondMatrix", getBondMatrix_function_value, (bp::arg("start"), bp::arg("end")), bp::release_gil_policy(), "Return a matrix (organised by AtomIdx) that says which atoms are bonded between\norder start and order end (e.g. if order is two, it returns true for each atom pair that\nare bonded together, if order is three, then true for each atom pair that are\nbonded or angled together, if order is four, then true for each atom pair\nthat are bonded, angled or dihedraled)"); } { //::SireMol::ConnectivityBase::getBonds - - typedef ::QList< SireMol::BondID > ( ::SireMol::ConnectivityBase::*getBonds_function_type)( ) const; - getBonds_function_type getBonds_function_value( &::SireMol::ConnectivityBase::getBonds ); - - ConnectivityBase_exposer.def( - "getBonds" - , getBonds_function_value - , bp::release_gil_policy() - , "Return the list of bonds present in this connectivity" ); - + + typedef ::QList (::SireMol::ConnectivityBase::*getBonds_function_type)() const; + getBonds_function_type getBonds_function_value(&::SireMol::ConnectivityBase::getBonds); + + ConnectivityBase_exposer.def( + "getBonds", getBonds_function_value, bp::release_gil_policy(), "Return the list of bonds present in this connectivity"); } { //::SireMol::ConnectivityBase::getBonds - - typedef ::QList< SireMol::BondID > ( ::SireMol::ConnectivityBase::*getBonds_function_type)( ::SireMol::AtomID const & ) const; - getBonds_function_type getBonds_function_value( &::SireMol::ConnectivityBase::getBonds ); - - ConnectivityBase_exposer.def( - "getBonds" - , getBonds_function_value - , ( bp::arg("atom") ) - , bp::release_gil_policy() - , "Return the list of bonds in the connectivity containing atom" ); - + + typedef ::QList (::SireMol::ConnectivityBase::*getBonds_function_type)(::SireMol::AtomID const &) const; + getBonds_function_type getBonds_function_value(&::SireMol::ConnectivityBase::getBonds); + + ConnectivityBase_exposer.def( + "getBonds", getBonds_function_value, (bp::arg("atom")), bp::release_gil_policy(), "Return the list of bonds in the connectivity containing atom"); } { //::SireMol::ConnectivityBase::getBonds - - typedef ::QList< SireMol::BondID > ( ::SireMol::ConnectivityBase::*getBonds_function_type)( ::QList< SireMol::AtomIdx > const &,bool ) const; - getBonds_function_type getBonds_function_value( &::SireMol::ConnectivityBase::getBonds ); - - ConnectivityBase_exposer.def( - "getBonds" - , getBonds_function_value - , ( bp::arg("atoms"), bp::arg("exclusive")=(bool)(true) ) - , "Return all of the connections that involve the passed atoms - if exclusive is true,\n then return only connections where both atoms are present in the list.\n" ); - + + typedef ::QList (::SireMol::ConnectivityBase::*getBonds_function_type)(::QList const &, bool) const; + getBonds_function_type getBonds_function_value(&::SireMol::ConnectivityBase::getBonds); + + ConnectivityBase_exposer.def( + "getBonds", getBonds_function_value, (bp::arg("atoms"), bp::arg("exclusive") = (bool)(true)), "Return all of the connections that involve the passed atoms - if exclusive is true,\n then return only connections where both atoms are present in the list.\n"); } { //::SireMol::ConnectivityBase::getDihedrals - - typedef ::QList< SireMol::DihedralID > ( ::SireMol::ConnectivityBase::*getDihedrals_function_type)( ) const; - getDihedrals_function_type getDihedrals_function_value( &::SireMol::ConnectivityBase::getDihedrals ); - - ConnectivityBase_exposer.def( - "getDihedrals" - , getDihedrals_function_value - , bp::release_gil_policy() - , "Return a list of dihedrals defined by the connectivity" ); - + + typedef ::QList (::SireMol::ConnectivityBase::*getDihedrals_function_type)() const; + getDihedrals_function_type getDihedrals_function_value(&::SireMol::ConnectivityBase::getDihedrals); + + ConnectivityBase_exposer.def( + "getDihedrals", getDihedrals_function_value, bp::release_gil_policy(), "Return a list of dihedrals defined by the connectivity"); } { //::SireMol::ConnectivityBase::getDihedrals - - typedef ::QList< SireMol::DihedralID > ( ::SireMol::ConnectivityBase::*getDihedrals_function_type)( ::SireMol::AtomID const & ) const; - getDihedrals_function_type getDihedrals_function_value( &::SireMol::ConnectivityBase::getDihedrals ); - - ConnectivityBase_exposer.def( - "getDihedrals" - , getDihedrals_function_value - , ( bp::arg("atom0") ) - , bp::release_gil_policy() - , "Return a list of dihedrals defined by the connectivity that involve atom0" ); - + + typedef ::QList (::SireMol::ConnectivityBase::*getDihedrals_function_type)(::SireMol::AtomID const &) const; + getDihedrals_function_type getDihedrals_function_value(&::SireMol::ConnectivityBase::getDihedrals); + + ConnectivityBase_exposer.def( + "getDihedrals", getDihedrals_function_value, (bp::arg("atom0")), bp::release_gil_policy(), "Return a list of dihedrals defined by the connectivity that involve atom0"); } { //::SireMol::ConnectivityBase::getDihedrals - - typedef ::QList< SireMol::DihedralID > ( ::SireMol::ConnectivityBase::*getDihedrals_function_type)( ::SireMol::AtomID const &,::SireMol::AtomID const & ) const; - getDihedrals_function_type getDihedrals_function_value( &::SireMol::ConnectivityBase::getDihedrals ); - - ConnectivityBase_exposer.def( - "getDihedrals" - , getDihedrals_function_value - , ( bp::arg("atom0"), bp::arg("atom1") ) - , bp::release_gil_policy() - , "Return a list of dihedrals defined by the connectivity that involve atom0 and atom1" ); - + + typedef ::QList (::SireMol::ConnectivityBase::*getDihedrals_function_type)(::SireMol::AtomID const &, ::SireMol::AtomID const &) const; + getDihedrals_function_type getDihedrals_function_value(&::SireMol::ConnectivityBase::getDihedrals); + + ConnectivityBase_exposer.def( + "getDihedrals", getDihedrals_function_value, (bp::arg("atom0"), bp::arg("atom1")), bp::release_gil_policy(), "Return a list of dihedrals defined by the connectivity that involve atom0 and atom1"); } { //::SireMol::ConnectivityBase::getDihedrals - - typedef ::QList< SireMol::DihedralID > ( ::SireMol::ConnectivityBase::*getDihedrals_function_type)( ::SireMol::AtomID const &,::SireMol::AtomID const &,::SireMol::AtomID const & ) const; - getDihedrals_function_type getDihedrals_function_value( &::SireMol::ConnectivityBase::getDihedrals ); - - ConnectivityBase_exposer.def( - "getDihedrals" - , getDihedrals_function_value - , ( bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2") ) - , bp::release_gil_policy() - , "Return a list of dihedrals defined by the connectivity that involve atom0, atom1 and atom2" ); - + + typedef ::QList (::SireMol::ConnectivityBase::*getDihedrals_function_type)(::SireMol::AtomID const &, ::SireMol::AtomID const &, ::SireMol::AtomID const &) const; + getDihedrals_function_type getDihedrals_function_value(&::SireMol::ConnectivityBase::getDihedrals); + + ConnectivityBase_exposer.def( + "getDihedrals", getDihedrals_function_value, (bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2")), bp::release_gil_policy(), "Return a list of dihedrals defined by the connectivity that involve atom0, atom1 and atom2"); } { //::SireMol::ConnectivityBase::hasProperty - - typedef bool ( ::SireMol::ConnectivityBase::*hasProperty_function_type)( ::SireMol::BondID const &,::SireBase::PropertyName const & ) const; - hasProperty_function_type hasProperty_function_value( &::SireMol::ConnectivityBase::hasProperty ); - - ConnectivityBase_exposer.def( - "hasProperty" - , hasProperty_function_value - , ( bp::arg("bond"), bp::arg("key") ) - , bp::release_gil_policy() - , "Return whether the specified bond has a property at key key" ); - + + typedef bool (::SireMol::ConnectivityBase::*hasProperty_function_type)(::SireMol::BondID const &, ::SireBase::PropertyName const &) const; + hasProperty_function_type hasProperty_function_value(&::SireMol::ConnectivityBase::hasProperty); + + ConnectivityBase_exposer.def( + "hasProperty", hasProperty_function_value, (bp::arg("bond"), bp::arg("key")), bp::release_gil_policy(), "Return whether the specified bond has a property at key key"); } { //::SireMol::ConnectivityBase::hasProperty - - typedef bool ( ::SireMol::ConnectivityBase::*hasProperty_function_type)( ::SireMol::AngleID const &,::SireBase::PropertyName const & ) const; - hasProperty_function_type hasProperty_function_value( &::SireMol::ConnectivityBase::hasProperty ); - - ConnectivityBase_exposer.def( - "hasProperty" - , hasProperty_function_value - , ( bp::arg("ang"), bp::arg("key") ) - , bp::release_gil_policy() - , "Return whether the specified angle has a property at key key" ); - + + typedef bool (::SireMol::ConnectivityBase::*hasProperty_function_type)(::SireMol::AngleID const &, ::SireBase::PropertyName const &) const; + hasProperty_function_type hasProperty_function_value(&::SireMol::ConnectivityBase::hasProperty); + + ConnectivityBase_exposer.def( + "hasProperty", hasProperty_function_value, (bp::arg("ang"), bp::arg("key")), bp::release_gil_policy(), "Return whether the specified angle has a property at key key"); } { //::SireMol::ConnectivityBase::hasProperty - - typedef bool ( ::SireMol::ConnectivityBase::*hasProperty_function_type)( ::SireMol::DihedralID const &,::SireBase::PropertyName const & ) const; - hasProperty_function_type hasProperty_function_value( &::SireMol::ConnectivityBase::hasProperty ); - - ConnectivityBase_exposer.def( - "hasProperty" - , hasProperty_function_value - , ( bp::arg("dih"), bp::arg("key") ) - , bp::release_gil_policy() - , "Return whether the specified dihedral has a property at key key" ); - + + typedef bool (::SireMol::ConnectivityBase::*hasProperty_function_type)(::SireMol::DihedralID const &, ::SireBase::PropertyName const &) const; + hasProperty_function_type hasProperty_function_value(&::SireMol::ConnectivityBase::hasProperty); + + ConnectivityBase_exposer.def( + "hasProperty", hasProperty_function_value, (bp::arg("dih"), bp::arg("key")), bp::release_gil_policy(), "Return whether the specified dihedral has a property at key key"); } { //::SireMol::ConnectivityBase::hasProperty - - typedef bool ( ::SireMol::ConnectivityBase::*hasProperty_function_type)( ::SireMol::ImproperID const &,::SireBase::PropertyName const & ) const; - hasProperty_function_type hasProperty_function_value( &::SireMol::ConnectivityBase::hasProperty ); - - ConnectivityBase_exposer.def( - "hasProperty" - , hasProperty_function_value - , ( bp::arg("imp"), bp::arg("key") ) - , bp::release_gil_policy() - , "Return whether the specified improper has a property at key key" ); - + + typedef bool (::SireMol::ConnectivityBase::*hasProperty_function_type)(::SireMol::ImproperID const &, ::SireBase::PropertyName const &) const; + hasProperty_function_type hasProperty_function_value(&::SireMol::ConnectivityBase::hasProperty); + + ConnectivityBase_exposer.def( + "hasProperty", hasProperty_function_value, (bp::arg("imp"), bp::arg("key")), bp::release_gil_policy(), "Return whether the specified improper has a property at key key"); } { //::SireMol::ConnectivityBase::inRing - - typedef bool ( ::SireMol::ConnectivityBase::*inRing_function_type)( ::SireMol::AtomIdx ) const; - inRing_function_type inRing_function_value( &::SireMol::ConnectivityBase::inRing ); - - ConnectivityBase_exposer.def( - "inRing" - , inRing_function_value - , ( bp::arg("atom") ) - , bp::release_gil_policy() - , "This function returns whether or not the atom is in a ring." ); - + + typedef bool (::SireMol::ConnectivityBase::*inRing_function_type)(::SireMol::AtomIdx) const; + inRing_function_type inRing_function_value(&::SireMol::ConnectivityBase::inRing); + + ConnectivityBase_exposer.def( + "inRing", inRing_function_value, (bp::arg("atom")), bp::release_gil_policy(), "This function returns whether or not the atom is in a ring of any size"); } { //::SireMol::ConnectivityBase::inRing - - typedef bool ( ::SireMol::ConnectivityBase::*inRing_function_type)( ::SireMol::AtomIdx,::SireMol::AtomIdx ) const; - inRing_function_type inRing_function_value( &::SireMol::ConnectivityBase::inRing ); - - ConnectivityBase_exposer.def( - "inRing" - , inRing_function_value - , ( bp::arg("atom0"), bp::arg("atom1") ) - , bp::release_gil_policy() - , "This function returns whether or not the two passed atoms are connected" ); - + + typedef bool (::SireMol::ConnectivityBase::*inRing_function_type)(::SireMol::AtomIdx, ::SireMol::AtomIdx) const; + inRing_function_type inRing_function_value(&::SireMol::ConnectivityBase::inRing); + + ConnectivityBase_exposer.def( + "inRing", inRing_function_value, (bp::arg("atom0"), bp::arg("atom1")), bp::release_gil_policy(), "This function returns whether or not the two passed atoms are in the same\nring of any size"); } { //::SireMol::ConnectivityBase::inRing - - typedef bool ( ::SireMol::ConnectivityBase::*inRing_function_type)( ::SireMol::AtomIdx,::SireMol::AtomIdx,::SireMol::AtomIdx ) const; - inRing_function_type inRing_function_value( &::SireMol::ConnectivityBase::inRing ); - - ConnectivityBase_exposer.def( - "inRing" - , inRing_function_value - , ( bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2") ) - , bp::release_gil_policy() - , "This function returns whether or not the three passed atoms are connected\nvia a ring" ); - + + typedef bool (::SireMol::ConnectivityBase::*inRing_function_type)(::SireMol::AtomIdx, ::SireMol::AtomIdx, ::SireMol::AtomIdx, int) const; + inRing_function_type inRing_function_value(&::SireMol::ConnectivityBase::inRing); + + ConnectivityBase_exposer.def( + "inRing", inRing_function_value, (bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2"), bp::arg("max_ring_size") = (int)(12)), bp::release_gil_policy(), "This function returns whether or not the three passed atoms are in the\nsame ring of at most max_ring_size atoms"); } { //::SireMol::ConnectivityBase::inRing - - typedef bool ( ::SireMol::ConnectivityBase::*inRing_function_type)( ::SireMol::AtomIdx,::SireMol::AtomIdx,::SireMol::AtomIdx,::SireMol::AtomIdx ) const; - inRing_function_type inRing_function_value( &::SireMol::ConnectivityBase::inRing ); - - ConnectivityBase_exposer.def( - "inRing" - , inRing_function_value - , ( bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2"), bp::arg("atom3") ) - , bp::release_gil_policy() - , "This function returns whether or not the four passed atoms are connected\nvia a same ring" ); - + + typedef bool (::SireMol::ConnectivityBase::*inRing_function_type)(::SireMol::AtomIdx, ::SireMol::AtomIdx, ::SireMol::AtomIdx, ::SireMol::AtomIdx, int) const; + inRing_function_type inRing_function_value(&::SireMol::ConnectivityBase::inRing); + + ConnectivityBase_exposer.def( + "inRing", inRing_function_value, (bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2"), bp::arg("atom3"), bp::arg("max_ring_size") = (int)(12)), bp::release_gil_policy(), "This function returns whether or not the four passed atoms are in the\nsame ring of at most max_ring_size atoms"); } { //::SireMol::ConnectivityBase::inRing - - typedef bool ( ::SireMol::ConnectivityBase::*inRing_function_type)( ::SireMol::AtomID const & ) const; - inRing_function_type inRing_function_value( &::SireMol::ConnectivityBase::inRing ); - - ConnectivityBase_exposer.def( - "inRing" - , inRing_function_value - , ( bp::arg("atom") ) - , bp::release_gil_policy() - , "This function returns whether or not the atom is in a ring" ); - + + typedef bool (::SireMol::ConnectivityBase::*inRing_function_type)(::SireMol::AtomID const &) const; + inRing_function_type inRing_function_value(&::SireMol::ConnectivityBase::inRing); + + ConnectivityBase_exposer.def( + "inRing", inRing_function_value, (bp::arg("atom")), bp::release_gil_policy(), "This function returns whether or not the atom is in a ring"); } { //::SireMol::ConnectivityBase::inRing - - typedef bool ( ::SireMol::ConnectivityBase::*inRing_function_type)( ::SireMol::AtomID const &,::SireMol::AtomID const & ) const; - inRing_function_type inRing_function_value( &::SireMol::ConnectivityBase::inRing ); - - ConnectivityBase_exposer.def( - "inRing" - , inRing_function_value - , ( bp::arg("atom0"), bp::arg("atom1") ) - , bp::release_gil_policy() - , "This function returns whether or not the two passed atoms are connected\nvia a ring" ); - + + typedef bool (::SireMol::ConnectivityBase::*inRing_function_type)(::SireMol::AtomID const &, ::SireMol::AtomID const &) const; + inRing_function_type inRing_function_value(&::SireMol::ConnectivityBase::inRing); + + ConnectivityBase_exposer.def( + "inRing", inRing_function_value, (bp::arg("atom0"), bp::arg("atom1")), bp::release_gil_policy(), "This function returns whether or not the two passed atoms are in the same\nring of any size"); } { //::SireMol::ConnectivityBase::inRing - - typedef bool ( ::SireMol::ConnectivityBase::*inRing_function_type)( ::SireMol::AtomID const &,::SireMol::AtomID const &,::SireMol::AtomID const & ) const; - inRing_function_type inRing_function_value( &::SireMol::ConnectivityBase::inRing ); - - ConnectivityBase_exposer.def( - "inRing" - , inRing_function_value - , ( bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2") ) - , bp::release_gil_policy() - , "This function returns whether or not the three passed atoms are connected\nvia a ring" ); - + + typedef bool (::SireMol::ConnectivityBase::*inRing_function_type)(::SireMol::AtomID const &, ::SireMol::AtomID const &, ::SireMol::AtomID const &, int) const; + inRing_function_type inRing_function_value(&::SireMol::ConnectivityBase::inRing); + + ConnectivityBase_exposer.def( + "inRing", inRing_function_value, (bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2"), bp::arg("max_ring_size") = (int)(12)), bp::release_gil_policy(), "This function returns whether or not the three passed atoms are in the\nsame ring of at most max_ring_size atoms"); } { //::SireMol::ConnectivityBase::inRing - - typedef bool ( ::SireMol::ConnectivityBase::*inRing_function_type)( ::SireMol::AtomID const &,::SireMol::AtomID const &,::SireMol::AtomID const &,::SireMol::AtomID const & ) const; - inRing_function_type inRing_function_value( &::SireMol::ConnectivityBase::inRing ); - - ConnectivityBase_exposer.def( - "inRing" - , inRing_function_value - , ( bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2"), bp::arg("atom3") ) - , bp::release_gil_policy() - , "This function returns whether or not the two passed atoms are connected\nvia a ring" ); - + + typedef bool (::SireMol::ConnectivityBase::*inRing_function_type)(::SireMol::AtomID const &, ::SireMol::AtomID const &, ::SireMol::AtomID const &, ::SireMol::AtomID const &, int) const; + inRing_function_type inRing_function_value(&::SireMol::ConnectivityBase::inRing); + + ConnectivityBase_exposer.def( + "inRing", inRing_function_value, (bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2"), bp::arg("atom3"), bp::arg("max_ring_size") = (int)(12)), bp::release_gil_policy(), "This function returns whether or not the four passed atoms are in the\nsame ring of at most max_ring_size atoms"); } { //::SireMol::ConnectivityBase::inRing - - typedef bool ( ::SireMol::ConnectivityBase::*inRing_function_type)( ::SireMol::BondID const & ) const; - inRing_function_type inRing_function_value( &::SireMol::ConnectivityBase::inRing ); - - ConnectivityBase_exposer.def( - "inRing" - , inRing_function_value - , ( bp::arg("bond") ) - , bp::release_gil_policy() - , "This function returns whether or not the two atoms in the passed bond\nare both part of the same ring" ); - + + typedef bool (::SireMol::ConnectivityBase::*inRing_function_type)(::SireMol::BondID const &) const; + inRing_function_type inRing_function_value(&::SireMol::ConnectivityBase::inRing); + + ConnectivityBase_exposer.def( + "inRing", inRing_function_value, (bp::arg("bond")), bp::release_gil_policy(), "This function returns whether or not the two atoms in the passed bond\nare both part of the same ring"); } { //::SireMol::ConnectivityBase::inRing - - typedef bool ( ::SireMol::ConnectivityBase::*inRing_function_type)( ::SireMol::AngleID const & ) const; - inRing_function_type inRing_function_value( &::SireMol::ConnectivityBase::inRing ); - - ConnectivityBase_exposer.def( - "inRing" - , inRing_function_value - , ( bp::arg("angle") ) - , bp::release_gil_policy() - , "This function returns whether or not the three atoms in the passed angle\nare all part of the same ring" ); - + + typedef bool (::SireMol::ConnectivityBase::*inRing_function_type)(::SireMol::AngleID const &, int) const; + inRing_function_type inRing_function_value(&::SireMol::ConnectivityBase::inRing); + + ConnectivityBase_exposer.def( + "inRing", inRing_function_value, (bp::arg("angle"), bp::arg("max_ring_size") = (int)(12)), bp::release_gil_policy(), "This function returns whether or not the three atoms in the passed angle\nare all part of the same ring of at most max_ring_size atoms"); } { //::SireMol::ConnectivityBase::inRing - - typedef bool ( ::SireMol::ConnectivityBase::*inRing_function_type)( ::SireMol::DihedralID const & ) const; - inRing_function_type inRing_function_value( &::SireMol::ConnectivityBase::inRing ); - - ConnectivityBase_exposer.def( - "inRing" - , inRing_function_value - , ( bp::arg("dihedral") ) - , bp::release_gil_policy() - , "This function returns whether or not the four atoms in the passed dihedral\nare all part of the same ring" ); - + + typedef bool (::SireMol::ConnectivityBase::*inRing_function_type)(::SireMol::DihedralID const &, int) const; + inRing_function_type inRing_function_value(&::SireMol::ConnectivityBase::inRing); + + ConnectivityBase_exposer.def( + "inRing", inRing_function_value, (bp::arg("dihedral"), bp::arg("max_ring_size") = (int)(12)), bp::release_gil_policy(), "This function returns whether or not the four atoms in the passed dihedral\nare all part of the same ring of at most max_ring_size atoms"); } { //::SireMol::ConnectivityBase::info - - typedef ::SireMol::MoleculeInfo ( ::SireMol::ConnectivityBase::*info_function_type)( ) const; - info_function_type info_function_value( &::SireMol::ConnectivityBase::info ); - - ConnectivityBase_exposer.def( - "info" - , info_function_value - , bp::release_gil_policy() - , "Return the info object that describes the molecule for which this connectivity applies" ); - + + typedef ::SireMol::MoleculeInfo (::SireMol::ConnectivityBase::*info_function_type)() const; + info_function_type info_function_value(&::SireMol::ConnectivityBase::info); + + ConnectivityBase_exposer.def( + "info", info_function_value, bp::release_gil_policy(), "Return the info object that describes the molecule for which this connectivity applies"); } { //::SireMol::ConnectivityBase::isCompatibleWith - - typedef bool ( ::SireMol::ConnectivityBase::*isCompatibleWith_function_type)( ::SireMol::MoleculeInfoData const & ) const; - isCompatibleWith_function_type isCompatibleWith_function_value( &::SireMol::ConnectivityBase::isCompatibleWith ); - - ConnectivityBase_exposer.def( - "isCompatibleWith" - , isCompatibleWith_function_value - , ( bp::arg("molinfo") ) - , bp::release_gil_policy() - , "" ); - + + typedef bool (::SireMol::ConnectivityBase::*isCompatibleWith_function_type)(::SireMol::MoleculeInfoData const &) const; + isCompatibleWith_function_type isCompatibleWith_function_value(&::SireMol::ConnectivityBase::isCompatibleWith); + + ConnectivityBase_exposer.def( + "isCompatibleWith", isCompatibleWith_function_value, (bp::arg("molinfo")), bp::release_gil_policy(), ""); } { //::SireMol::ConnectivityBase::merge - - typedef ::SireBase::PropertyList ( ::SireMol::ConnectivityBase::*merge_function_type)( ::SireMol::MolViewProperty const &,::SireMol::AtomIdxMapping const &,::QString const &,::SireBase::PropertyMap const & ) const; - merge_function_type merge_function_value( &::SireMol::ConnectivityBase::merge ); - - ConnectivityBase_exposer.def( - "merge" - , merge_function_value - , ( bp::arg("other"), bp::arg("mapping"), bp::arg("ghost")=::QString( ), bp::arg("map")=SireBase::PropertyMap() ) - , "Merge this property with another property" ); - + + typedef ::SireBase::PropertyList (::SireMol::ConnectivityBase::*merge_function_type)(::SireMol::MolViewProperty const &, ::SireMol::AtomIdxMapping const &, ::QString const &, ::SireBase::PropertyMap const &) const; + merge_function_type merge_function_value(&::SireMol::ConnectivityBase::merge); + + ConnectivityBase_exposer.def( + "merge", merge_function_value, (bp::arg("other"), bp::arg("mapping"), bp::arg("ghost") = ::QString(), bp::arg("map") = SireBase::PropertyMap()), "Merge this property with another property"); } { //::SireMol::ConnectivityBase::nConnections - - typedef int ( ::SireMol::ConnectivityBase::*nConnections_function_type)( ) const; - nConnections_function_type nConnections_function_value( &::SireMol::ConnectivityBase::nConnections ); - - ConnectivityBase_exposer.def( - "nConnections" - , nConnections_function_value - , bp::release_gil_policy() - , "Return the total number of connections between atoms\nin this connectivity object" ); - + + typedef int (::SireMol::ConnectivityBase::*nConnections_function_type)() const; + nConnections_function_type nConnections_function_value(&::SireMol::ConnectivityBase::nConnections); + + ConnectivityBase_exposer.def( + "nConnections", nConnections_function_value, bp::release_gil_policy(), "Return the total number of connections between atoms\nin this connectivity object"); } { //::SireMol::ConnectivityBase::nConnections - - typedef int ( ::SireMol::ConnectivityBase::*nConnections_function_type)( ::SireMol::AtomIdx ) const; - nConnections_function_type nConnections_function_value( &::SireMol::ConnectivityBase::nConnections ); - - ConnectivityBase_exposer.def( - "nConnections" - , nConnections_function_value - , ( bp::arg("atomidx") ) - , bp::release_gil_policy() - , "Return the number of connections to the atom at index atomidx\nThrow: SireError::index_error\n" ); - + + typedef int (::SireMol::ConnectivityBase::*nConnections_function_type)(::SireMol::AtomIdx) const; + nConnections_function_type nConnections_function_value(&::SireMol::ConnectivityBase::nConnections); + + ConnectivityBase_exposer.def( + "nConnections", nConnections_function_value, (bp::arg("atomidx")), bp::release_gil_policy(), "Return the number of connections to the atom at index atomidx\nThrow: SireError::index_error\n"); } { //::SireMol::ConnectivityBase::nConnections - - typedef int ( ::SireMol::ConnectivityBase::*nConnections_function_type)( ::SireMol::AtomID const & ) const; - nConnections_function_type nConnections_function_value( &::SireMol::ConnectivityBase::nConnections ); - - ConnectivityBase_exposer.def( - "nConnections" - , nConnections_function_value - , ( bp::arg("atomid") ) - , bp::release_gil_policy() - , "Return the number of connections to the atom with ID atomid\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\n" ); - + + typedef int (::SireMol::ConnectivityBase::*nConnections_function_type)(::SireMol::AtomID const &) const; + nConnections_function_type nConnections_function_value(&::SireMol::ConnectivityBase::nConnections); + + ConnectivityBase_exposer.def( + "nConnections", nConnections_function_value, (bp::arg("atomid")), bp::release_gil_policy(), "Return the number of connections to the atom with ID atomid\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\n"); } { //::SireMol::ConnectivityBase::nConnections - - typedef int ( ::SireMol::ConnectivityBase::*nConnections_function_type)( ::SireMol::ResIdx ) const; - nConnections_function_type nConnections_function_value( &::SireMol::ConnectivityBase::nConnections ); - - ConnectivityBase_exposer.def( - "nConnections" - , nConnections_function_value - , ( bp::arg("residx") ) - , bp::release_gil_policy() - , "Return the number of connections to the residue at index residx\nThrow: SireError::invalid_index\n" ); - + + typedef int (::SireMol::ConnectivityBase::*nConnections_function_type)(::SireMol::ResIdx) const; + nConnections_function_type nConnections_function_value(&::SireMol::ConnectivityBase::nConnections); + + ConnectivityBase_exposer.def( + "nConnections", nConnections_function_value, (bp::arg("residx")), bp::release_gil_policy(), "Return the number of connections to the residue at index residx\nThrow: SireError::invalid_index\n"); } { //::SireMol::ConnectivityBase::nConnections - - typedef int ( ::SireMol::ConnectivityBase::*nConnections_function_type)( ::SireMol::ResID const & ) const; - nConnections_function_type nConnections_function_value( &::SireMol::ConnectivityBase::nConnections ); - - ConnectivityBase_exposer.def( - "nConnections" - , nConnections_function_value - , ( bp::arg("resid") ) - , bp::release_gil_policy() - , "Return the number of connections to the residue identified\nby resid\nThrow: SireMol::missing_residue\nThrow: SireMol::duplicate_residue\nThrow: SireError::invalid_index\n" ); - + + typedef int (::SireMol::ConnectivityBase::*nConnections_function_type)(::SireMol::ResID const &) const; + nConnections_function_type nConnections_function_value(&::SireMol::ConnectivityBase::nConnections); + + ConnectivityBase_exposer.def( + "nConnections", nConnections_function_value, (bp::arg("resid")), bp::release_gil_policy(), "Return the number of connections to the residue identified\nby resid\nThrow: SireMol::missing_residue\nThrow: SireMol::duplicate_residue\nThrow: SireError::invalid_index\n"); } { //::SireMol::ConnectivityBase::nConnections - - typedef int ( ::SireMol::ConnectivityBase::*nConnections_function_type)( ::SireMol::ResIdx,::SireMol::ResIdx ) const; - nConnections_function_type nConnections_function_value( &::SireMol::ConnectivityBase::nConnections ); - - ConnectivityBase_exposer.def( - "nConnections" - , nConnections_function_value - , ( bp::arg("res0"), bp::arg("res1") ) - , bp::release_gil_policy() - , "Return the number of atom connections between the residues at\nindicies res0 and res1\nThrow: SireError::invalid_index\n" ); - + + typedef int (::SireMol::ConnectivityBase::*nConnections_function_type)(::SireMol::ResIdx, ::SireMol::ResIdx) const; + nConnections_function_type nConnections_function_value(&::SireMol::ConnectivityBase::nConnections); + + ConnectivityBase_exposer.def( + "nConnections", nConnections_function_value, (bp::arg("res0"), bp::arg("res1")), bp::release_gil_policy(), "Return the number of atom connections between the residues at\nindicies res0 and res1\nThrow: SireError::invalid_index\n"); } { //::SireMol::ConnectivityBase::nConnections - - typedef int ( ::SireMol::ConnectivityBase::*nConnections_function_type)( ::SireMol::ResID const &,::SireMol::ResID const & ) const; - nConnections_function_type nConnections_function_value( &::SireMol::ConnectivityBase::nConnections ); - - ConnectivityBase_exposer.def( - "nConnections" - , nConnections_function_value - , ( bp::arg("res0"), bp::arg("res1") ) - , bp::release_gil_policy() - , "Return the number of atom connections between the residues\nidentified by res0 and res1\nThrow: SireMol::missing_residue\nThrow: SireMol::duplicate_residue\nThrow: SireError::invalid_index\n" ); - + + typedef int (::SireMol::ConnectivityBase::*nConnections_function_type)(::SireMol::ResID const &, ::SireMol::ResID const &) const; + nConnections_function_type nConnections_function_value(&::SireMol::ConnectivityBase::nConnections); + + ConnectivityBase_exposer.def( + "nConnections", nConnections_function_value, (bp::arg("res0"), bp::arg("res1")), bp::release_gil_policy(), "Return the number of atom connections between the residues\nidentified by res0 and res1\nThrow: SireMol::missing_residue\nThrow: SireMol::duplicate_residue\nThrow: SireError::invalid_index\n"); } { //::SireMol::ConnectivityBase::properties - - typedef ::SireBase::Properties ( ::SireMol::ConnectivityBase::*properties_function_type)( ::SireMol::BondID const & ) const; - properties_function_type properties_function_value( &::SireMol::ConnectivityBase::properties ); - - ConnectivityBase_exposer.def( - "properties" - , properties_function_value - , ( bp::arg("bond") ) - , bp::release_gil_policy() - , "Return the properties of the passed bond" ); - + + typedef ::SireBase::Properties (::SireMol::ConnectivityBase::*properties_function_type)(::SireMol::BondID const &) const; + properties_function_type properties_function_value(&::SireMol::ConnectivityBase::properties); + + ConnectivityBase_exposer.def( + "properties", properties_function_value, (bp::arg("bond")), bp::release_gil_policy(), "Return the properties of the passed bond"); } { //::SireMol::ConnectivityBase::properties - - typedef ::SireBase::Properties ( ::SireMol::ConnectivityBase::*properties_function_type)( ::SireMol::AngleID const & ) const; - properties_function_type properties_function_value( &::SireMol::ConnectivityBase::properties ); - - ConnectivityBase_exposer.def( - "properties" - , properties_function_value - , ( bp::arg("ang") ) - , bp::release_gil_policy() - , "Return the properties of the passed angle" ); - + + typedef ::SireBase::Properties (::SireMol::ConnectivityBase::*properties_function_type)(::SireMol::AngleID const &) const; + properties_function_type properties_function_value(&::SireMol::ConnectivityBase::properties); + + ConnectivityBase_exposer.def( + "properties", properties_function_value, (bp::arg("ang")), bp::release_gil_policy(), "Return the properties of the passed angle"); } { //::SireMol::ConnectivityBase::properties - - typedef ::SireBase::Properties ( ::SireMol::ConnectivityBase::*properties_function_type)( ::SireMol::DihedralID const & ) const; - properties_function_type properties_function_value( &::SireMol::ConnectivityBase::properties ); - - ConnectivityBase_exposer.def( - "properties" - , properties_function_value - , ( bp::arg("dih") ) - , bp::release_gil_policy() - , "Return the properties of the passed dihedral" ); - + + typedef ::SireBase::Properties (::SireMol::ConnectivityBase::*properties_function_type)(::SireMol::DihedralID const &) const; + properties_function_type properties_function_value(&::SireMol::ConnectivityBase::properties); + + ConnectivityBase_exposer.def( + "properties", properties_function_value, (bp::arg("dih")), bp::release_gil_policy(), "Return the properties of the passed dihedral"); } { //::SireMol::ConnectivityBase::properties - - typedef ::SireBase::Properties ( ::SireMol::ConnectivityBase::*properties_function_type)( ::SireMol::ImproperID const & ) const; - properties_function_type properties_function_value( &::SireMol::ConnectivityBase::properties ); - - ConnectivityBase_exposer.def( - "properties" - , properties_function_value - , ( bp::arg("imp") ) - , bp::release_gil_policy() - , "Return the properties of the passed improper" ); - + + typedef ::SireBase::Properties (::SireMol::ConnectivityBase::*properties_function_type)(::SireMol::ImproperID const &) const; + properties_function_type properties_function_value(&::SireMol::ConnectivityBase::properties); + + ConnectivityBase_exposer.def( + "properties", properties_function_value, (bp::arg("imp")), bp::release_gil_policy(), "Return the properties of the passed improper"); } { //::SireMol::ConnectivityBase::property - - typedef ::SireBase::Property const & ( ::SireMol::ConnectivityBase::*property_function_type)( ::SireMol::BondID const &,::SireBase::PropertyName const & ) const; - property_function_type property_function_value( &::SireMol::ConnectivityBase::property ); - - ConnectivityBase_exposer.def( - "property" - , property_function_value - , ( bp::arg("bond"), bp::arg("key") ) - , bp::return_value_policy() - , "Return the specified property of the specified bond" ); - + + typedef ::SireBase::Property const &(::SireMol::ConnectivityBase::*property_function_type)(::SireMol::BondID const &, ::SireBase::PropertyName const &) const; + property_function_type property_function_value(&::SireMol::ConnectivityBase::property); + + ConnectivityBase_exposer.def( + "property", property_function_value, (bp::arg("bond"), bp::arg("key")), bp::return_value_policy(), "Return the specified property of the specified bond"); } { //::SireMol::ConnectivityBase::property - - typedef ::SireBase::Property const & ( ::SireMol::ConnectivityBase::*property_function_type)( ::SireMol::BondID const &,::SireBase::PropertyName const &,::SireBase::Property const & ) const; - property_function_type property_function_value( &::SireMol::ConnectivityBase::property ); - - ConnectivityBase_exposer.def( - "property" - , property_function_value - , ( bp::arg("bond"), bp::arg("key"), bp::arg("default_value") ) - , bp::return_value_policy() - , "Return the specified property of the specified bond, or\ndefault_value if such a property is not defined\n" ); - + + typedef ::SireBase::Property const &(::SireMol::ConnectivityBase::*property_function_type)(::SireMol::BondID const &, ::SireBase::PropertyName const &, ::SireBase::Property const &) const; + property_function_type property_function_value(&::SireMol::ConnectivityBase::property); + + ConnectivityBase_exposer.def( + "property", property_function_value, (bp::arg("bond"), bp::arg("key"), bp::arg("default_value")), bp::return_value_policy(), "Return the specified property of the specified bond, or\ndefault_value if such a property is not defined\n"); } { //::SireMol::ConnectivityBase::property - - typedef ::SireBase::Property const & ( ::SireMol::ConnectivityBase::*property_function_type)( ::SireMol::AngleID const &,::SireBase::PropertyName const & ) const; - property_function_type property_function_value( &::SireMol::ConnectivityBase::property ); - - ConnectivityBase_exposer.def( - "property" - , property_function_value - , ( bp::arg("ang"), bp::arg("key") ) - , bp::return_value_policy() - , "Return the specified property of the specified angle" ); - + + typedef ::SireBase::Property const &(::SireMol::ConnectivityBase::*property_function_type)(::SireMol::AngleID const &, ::SireBase::PropertyName const &) const; + property_function_type property_function_value(&::SireMol::ConnectivityBase::property); + + ConnectivityBase_exposer.def( + "property", property_function_value, (bp::arg("ang"), bp::arg("key")), bp::return_value_policy(), "Return the specified property of the specified angle"); } { //::SireMol::ConnectivityBase::property - - typedef ::SireBase::Property const & ( ::SireMol::ConnectivityBase::*property_function_type)( ::SireMol::AngleID const &,::SireBase::PropertyName const &,::SireBase::Property const & ) const; - property_function_type property_function_value( &::SireMol::ConnectivityBase::property ); - - ConnectivityBase_exposer.def( - "property" - , property_function_value - , ( bp::arg("ang"), bp::arg("key"), bp::arg("default_value") ) - , bp::return_value_policy() - , "Return the specified property of the specified angle, or\ndefault_value if such a property is not defined\n" ); - + + typedef ::SireBase::Property const &(::SireMol::ConnectivityBase::*property_function_type)(::SireMol::AngleID const &, ::SireBase::PropertyName const &, ::SireBase::Property const &) const; + property_function_type property_function_value(&::SireMol::ConnectivityBase::property); + + ConnectivityBase_exposer.def( + "property", property_function_value, (bp::arg("ang"), bp::arg("key"), bp::arg("default_value")), bp::return_value_policy(), "Return the specified property of the specified angle, or\ndefault_value if such a property is not defined\n"); } { //::SireMol::ConnectivityBase::property - - typedef ::SireBase::Property const & ( ::SireMol::ConnectivityBase::*property_function_type)( ::SireMol::DihedralID const &,::SireBase::PropertyName const & ) const; - property_function_type property_function_value( &::SireMol::ConnectivityBase::property ); - - ConnectivityBase_exposer.def( - "property" - , property_function_value - , ( bp::arg("dih"), bp::arg("key") ) - , bp::return_value_policy() - , "Return the specified property of the specified dihedral" ); - + + typedef ::SireBase::Property const &(::SireMol::ConnectivityBase::*property_function_type)(::SireMol::DihedralID const &, ::SireBase::PropertyName const &) const; + property_function_type property_function_value(&::SireMol::ConnectivityBase::property); + + ConnectivityBase_exposer.def( + "property", property_function_value, (bp::arg("dih"), bp::arg("key")), bp::return_value_policy(), "Return the specified property of the specified dihedral"); } { //::SireMol::ConnectivityBase::property - - typedef ::SireBase::Property const & ( ::SireMol::ConnectivityBase::*property_function_type)( ::SireMol::DihedralID const &,::SireBase::PropertyName const &,::SireBase::Property const & ) const; - property_function_type property_function_value( &::SireMol::ConnectivityBase::property ); - - ConnectivityBase_exposer.def( - "property" - , property_function_value - , ( bp::arg("dih"), bp::arg("key"), bp::arg("default_value") ) - , bp::return_value_policy() - , "Return the specified property of the specified dihedral, or\ndefault_value if such a property is not defined\n" ); - + + typedef ::SireBase::Property const &(::SireMol::ConnectivityBase::*property_function_type)(::SireMol::DihedralID const &, ::SireBase::PropertyName const &, ::SireBase::Property const &) const; + property_function_type property_function_value(&::SireMol::ConnectivityBase::property); + + ConnectivityBase_exposer.def( + "property", property_function_value, (bp::arg("dih"), bp::arg("key"), bp::arg("default_value")), bp::return_value_policy(), "Return the specified property of the specified dihedral, or\ndefault_value if such a property is not defined\n"); } { //::SireMol::ConnectivityBase::property - - typedef ::SireBase::Property const & ( ::SireMol::ConnectivityBase::*property_function_type)( ::SireMol::ImproperID const &,::SireBase::PropertyName const & ) const; - property_function_type property_function_value( &::SireMol::ConnectivityBase::property ); - - ConnectivityBase_exposer.def( - "property" - , property_function_value - , ( bp::arg("imp"), bp::arg("key") ) - , bp::return_value_policy() - , "Return the specified property of the specified improper" ); - + + typedef ::SireBase::Property const &(::SireMol::ConnectivityBase::*property_function_type)(::SireMol::ImproperID const &, ::SireBase::PropertyName const &) const; + property_function_type property_function_value(&::SireMol::ConnectivityBase::property); + + ConnectivityBase_exposer.def( + "property", property_function_value, (bp::arg("imp"), bp::arg("key")), bp::return_value_policy(), "Return the specified property of the specified improper"); } { //::SireMol::ConnectivityBase::property - - typedef ::SireBase::Property const & ( ::SireMol::ConnectivityBase::*property_function_type)( ::SireMol::ImproperID const &,::SireBase::PropertyName const &,::SireBase::Property const & ) const; - property_function_type property_function_value( &::SireMol::ConnectivityBase::property ); - - ConnectivityBase_exposer.def( - "property" - , property_function_value - , ( bp::arg("imp"), bp::arg("key"), bp::arg("default_value") ) - , bp::return_value_policy() - , "Return the specified property of the specified improper, or\ndefault_value if such a property is not defined\n" ); - + + typedef ::SireBase::Property const &(::SireMol::ConnectivityBase::*property_function_type)(::SireMol::ImproperID const &, ::SireBase::PropertyName const &, ::SireBase::Property const &) const; + property_function_type property_function_value(&::SireMol::ConnectivityBase::property); + + ConnectivityBase_exposer.def( + "property", property_function_value, (bp::arg("imp"), bp::arg("key"), bp::arg("default_value")), bp::return_value_policy(), "Return the specified property of the specified improper, or\ndefault_value if such a property is not defined\n"); } { //::SireMol::ConnectivityBase::propertyKeys - - typedef ::QStringList ( ::SireMol::ConnectivityBase::*propertyKeys_function_type)( ) const; - propertyKeys_function_type propertyKeys_function_value( &::SireMol::ConnectivityBase::propertyKeys ); - - ConnectivityBase_exposer.def( - "propertyKeys" - , propertyKeys_function_value - , bp::release_gil_policy() - , "Return all of the property keys for all of the bonds" ); - + + typedef ::QStringList (::SireMol::ConnectivityBase::*propertyKeys_function_type)() const; + propertyKeys_function_type propertyKeys_function_value(&::SireMol::ConnectivityBase::propertyKeys); + + ConnectivityBase_exposer.def( + "propertyKeys", propertyKeys_function_value, bp::release_gil_policy(), "Return all of the property keys for all of the bonds"); } { //::SireMol::ConnectivityBase::propertyKeys - - typedef ::QStringList ( ::SireMol::ConnectivityBase::*propertyKeys_function_type)( ::SireMol::BondID const & ) const; - propertyKeys_function_type propertyKeys_function_value( &::SireMol::ConnectivityBase::propertyKeys ); - - ConnectivityBase_exposer.def( - "propertyKeys" - , propertyKeys_function_value - , ( bp::arg("bond") ) - , bp::release_gil_policy() - , "Return the property keys for the specified bond" ); - + + typedef ::QStringList (::SireMol::ConnectivityBase::*propertyKeys_function_type)(::SireMol::BondID const &) const; + propertyKeys_function_type propertyKeys_function_value(&::SireMol::ConnectivityBase::propertyKeys); + + ConnectivityBase_exposer.def( + "propertyKeys", propertyKeys_function_value, (bp::arg("bond")), bp::release_gil_policy(), "Return the property keys for the specified bond"); } { //::SireMol::ConnectivityBase::propertyKeys - - typedef ::QStringList ( ::SireMol::ConnectivityBase::*propertyKeys_function_type)( ::SireMol::AngleID const & ) const; - propertyKeys_function_type propertyKeys_function_value( &::SireMol::ConnectivityBase::propertyKeys ); - - ConnectivityBase_exposer.def( - "propertyKeys" - , propertyKeys_function_value - , ( bp::arg("ang") ) - , bp::release_gil_policy() - , "Return the property keys for the specified angle" ); - + + typedef ::QStringList (::SireMol::ConnectivityBase::*propertyKeys_function_type)(::SireMol::AngleID const &) const; + propertyKeys_function_type propertyKeys_function_value(&::SireMol::ConnectivityBase::propertyKeys); + + ConnectivityBase_exposer.def( + "propertyKeys", propertyKeys_function_value, (bp::arg("ang")), bp::release_gil_policy(), "Return the property keys for the specified angle"); } { //::SireMol::ConnectivityBase::propertyKeys - - typedef ::QStringList ( ::SireMol::ConnectivityBase::*propertyKeys_function_type)( ::SireMol::DihedralID const & ) const; - propertyKeys_function_type propertyKeys_function_value( &::SireMol::ConnectivityBase::propertyKeys ); - - ConnectivityBase_exposer.def( - "propertyKeys" - , propertyKeys_function_value - , ( bp::arg("dih") ) - , bp::release_gil_policy() - , "Return the property keys for the specified dihedral" ); - + + typedef ::QStringList (::SireMol::ConnectivityBase::*propertyKeys_function_type)(::SireMol::DihedralID const &) const; + propertyKeys_function_type propertyKeys_function_value(&::SireMol::ConnectivityBase::propertyKeys); + + ConnectivityBase_exposer.def( + "propertyKeys", propertyKeys_function_value, (bp::arg("dih")), bp::release_gil_policy(), "Return the property keys for the specified dihedral"); } { //::SireMol::ConnectivityBase::propertyKeys - - typedef ::QStringList ( ::SireMol::ConnectivityBase::*propertyKeys_function_type)( ::SireMol::ImproperID const & ) const; - propertyKeys_function_type propertyKeys_function_value( &::SireMol::ConnectivityBase::propertyKeys ); - - ConnectivityBase_exposer.def( - "propertyKeys" - , propertyKeys_function_value - , ( bp::arg("imp") ) - , bp::release_gil_policy() - , "Return the property keys for the specified improper" ); - + + typedef ::QStringList (::SireMol::ConnectivityBase::*propertyKeys_function_type)(::SireMol::ImproperID const &) const; + propertyKeys_function_type propertyKeys_function_value(&::SireMol::ConnectivityBase::propertyKeys); + + ConnectivityBase_exposer.def( + "propertyKeys", propertyKeys_function_value, (bp::arg("imp")), bp::release_gil_policy(), "Return the property keys for the specified improper"); } { //::SireMol::ConnectivityBase::propertyType - - typedef char const * ( ::SireMol::ConnectivityBase::*propertyType_function_type)( ::SireMol::BondID const &,::SireBase::PropertyName const & ) const; - propertyType_function_type propertyType_function_value( &::SireMol::ConnectivityBase::propertyType ); - - ConnectivityBase_exposer.def( - "propertyType" - , propertyType_function_value - , ( bp::arg("bond"), bp::arg("key") ) - , bp::release_gil_policy() - , "Return the type of the property for the specified bond at key key" ); - + + typedef char const *(::SireMol::ConnectivityBase::*propertyType_function_type)(::SireMol::BondID const &, ::SireBase::PropertyName const &) const; + propertyType_function_type propertyType_function_value(&::SireMol::ConnectivityBase::propertyType); + + ConnectivityBase_exposer.def( + "propertyType", propertyType_function_value, (bp::arg("bond"), bp::arg("key")), bp::release_gil_policy(), "Return the type of the property for the specified bond at key key"); } { //::SireMol::ConnectivityBase::propertyType - - typedef char const * ( ::SireMol::ConnectivityBase::*propertyType_function_type)( ::SireMol::AngleID const &,::SireBase::PropertyName const & ) const; - propertyType_function_type propertyType_function_value( &::SireMol::ConnectivityBase::propertyType ); - - ConnectivityBase_exposer.def( - "propertyType" - , propertyType_function_value - , ( bp::arg("ang"), bp::arg("key") ) - , bp::release_gil_policy() - , "Return the type of the property for the specified angle at key key" ); - + + typedef char const *(::SireMol::ConnectivityBase::*propertyType_function_type)(::SireMol::AngleID const &, ::SireBase::PropertyName const &) const; + propertyType_function_type propertyType_function_value(&::SireMol::ConnectivityBase::propertyType); + + ConnectivityBase_exposer.def( + "propertyType", propertyType_function_value, (bp::arg("ang"), bp::arg("key")), bp::release_gil_policy(), "Return the type of the property for the specified angle at key key"); } { //::SireMol::ConnectivityBase::propertyType - - typedef char const * ( ::SireMol::ConnectivityBase::*propertyType_function_type)( ::SireMol::DihedralID const &,::SireBase::PropertyName const & ) const; - propertyType_function_type propertyType_function_value( &::SireMol::ConnectivityBase::propertyType ); - - ConnectivityBase_exposer.def( - "propertyType" - , propertyType_function_value - , ( bp::arg("dih"), bp::arg("key") ) - , bp::release_gil_policy() - , "Return the type of the property for the specified dihedral at key key" ); - + + typedef char const *(::SireMol::ConnectivityBase::*propertyType_function_type)(::SireMol::DihedralID const &, ::SireBase::PropertyName const &) const; + propertyType_function_type propertyType_function_value(&::SireMol::ConnectivityBase::propertyType); + + ConnectivityBase_exposer.def( + "propertyType", propertyType_function_value, (bp::arg("dih"), bp::arg("key")), bp::release_gil_policy(), "Return the type of the property for the specified dihedral at key key"); } { //::SireMol::ConnectivityBase::propertyType - - typedef char const * ( ::SireMol::ConnectivityBase::*propertyType_function_type)( ::SireMol::ImproperID const &,::SireBase::PropertyName const & ) const; - propertyType_function_type propertyType_function_value( &::SireMol::ConnectivityBase::propertyType ); - - ConnectivityBase_exposer.def( - "propertyType" - , propertyType_function_value - , ( bp::arg("imp"), bp::arg("key") ) - , bp::release_gil_policy() - , "Return the type of the property for the specified improper at key key" ); - + + typedef char const *(::SireMol::ConnectivityBase::*propertyType_function_type)(::SireMol::ImproperID const &, ::SireBase::PropertyName const &) const; + propertyType_function_type propertyType_function_value(&::SireMol::ConnectivityBase::propertyType); + + ConnectivityBase_exposer.def( + "propertyType", propertyType_function_value, (bp::arg("imp"), bp::arg("key")), bp::release_gil_policy(), "Return the type of the property for the specified improper at key key"); } { //::SireMol::ConnectivityBase::split - - typedef ::boost::tuples::tuple< SireMol::AtomSelection, SireMol::AtomSelection, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type > ( ::SireMol::ConnectivityBase::*split_function_type)( ::SireMol::AtomIdx,::SireMol::AtomIdx ) const; - split_function_type split_function_value( &::SireMol::ConnectivityBase::split ); - - ConnectivityBase_exposer.def( - "split" - , split_function_value - , ( bp::arg("atom0"), bp::arg("atom1") ) - , bp::release_gil_policy() - , "Split this molecule into two parts about the atoms\n" ); - + + typedef ::boost::tuples::tuple (::SireMol::ConnectivityBase::*split_function_type)(::SireMol::AtomIdx, ::SireMol::AtomIdx) const; + split_function_type split_function_value(&::SireMol::ConnectivityBase::split); + + ConnectivityBase_exposer.def( + "split", split_function_value, (bp::arg("atom0"), bp::arg("atom1")), bp::release_gil_policy(), "Split this molecule into two parts about the atoms\n"); } { //::SireMol::ConnectivityBase::split - - typedef ::boost::tuples::tuple< SireMol::AtomSelection, SireMol::AtomSelection, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type > ( ::SireMol::ConnectivityBase::*split_function_type)( ::SireMol::AtomID const &,::SireMol::AtomID const & ) const; - split_function_type split_function_value( &::SireMol::ConnectivityBase::split ); - - ConnectivityBase_exposer.def( - "split" - , split_function_value - , ( bp::arg("atom0"), bp::arg("atom1") ) - , bp::release_gil_policy() - , "Split the molecule into two parts about the bond between atom0 and atom1.\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n" ); - + + typedef ::boost::tuples::tuple (::SireMol::ConnectivityBase::*split_function_type)(::SireMol::AtomID const &, ::SireMol::AtomID const &) const; + split_function_type split_function_value(&::SireMol::ConnectivityBase::split); + + ConnectivityBase_exposer.def( + "split", split_function_value, (bp::arg("atom0"), bp::arg("atom1")), bp::release_gil_policy(), "Split the molecule into two parts about the bond between atom0 and atom1.\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n"); } { //::SireMol::ConnectivityBase::split - - typedef ::boost::tuples::tuple< SireMol::AtomSelection, SireMol::AtomSelection, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type > ( ::SireMol::ConnectivityBase::*split_function_type)( ::SireMol::BondID const & ) const; - split_function_type split_function_value( &::SireMol::ConnectivityBase::split ); - - ConnectivityBase_exposer.def( - "split" - , split_function_value - , ( bp::arg("bond") ) - , bp::release_gil_policy() - , "Split the molecule into two parts about the bond bond\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n" ); - + + typedef ::boost::tuples::tuple (::SireMol::ConnectivityBase::*split_function_type)(::SireMol::BondID const &) const; + split_function_type split_function_value(&::SireMol::ConnectivityBase::split); + + ConnectivityBase_exposer.def( + "split", split_function_value, (bp::arg("bond")), bp::release_gil_policy(), "Split the molecule into two parts about the bond bond\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n"); } { //::SireMol::ConnectivityBase::split - - typedef ::boost::tuples::tuple< SireMol::AtomSelection, SireMol::AtomSelection, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type > ( ::SireMol::ConnectivityBase::*split_function_type)( ::SireMol::AtomIdx,::SireMol::AtomIdx,::SireMol::AtomSelection const & ) const; - split_function_type split_function_value( &::SireMol::ConnectivityBase::split ); - - ConnectivityBase_exposer.def( - "split" - , split_function_value - , ( bp::arg("atom0"), bp::arg("atom1"), bp::arg("selected_atoms") ) - , bp::release_gil_policy() - , "Split the selected atoms of this molecule into two parts about the atoms\n" ); - + + typedef ::boost::tuples::tuple (::SireMol::ConnectivityBase::*split_function_type)(::SireMol::AtomIdx, ::SireMol::AtomIdx, ::SireMol::AtomSelection const &) const; + split_function_type split_function_value(&::SireMol::ConnectivityBase::split); + + ConnectivityBase_exposer.def( + "split", split_function_value, (bp::arg("atom0"), bp::arg("atom1"), bp::arg("selected_atoms")), bp::release_gil_policy(), "Split the selected atoms of this molecule into two parts about the atoms\n"); } { //::SireMol::ConnectivityBase::split - - typedef ::boost::tuples::tuple< SireMol::AtomSelection, SireMol::AtomSelection, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type > ( ::SireMol::ConnectivityBase::*split_function_type)( ::SireMol::AtomID const &,::SireMol::AtomID const &,::SireMol::AtomSelection const & ) const; - split_function_type split_function_value( &::SireMol::ConnectivityBase::split ); - - ConnectivityBase_exposer.def( - "split" - , split_function_value - , ( bp::arg("atom0"), bp::arg("atom1"), bp::arg("selected_atoms") ) - , bp::release_gil_policy() - , "Split the selected atoms of this molecule about the atoms\natom0 and atom1\nThrow: SireMol::incompatible_error\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n" ); - + + typedef ::boost::tuples::tuple (::SireMol::ConnectivityBase::*split_function_type)(::SireMol::AtomID const &, ::SireMol::AtomID const &, ::SireMol::AtomSelection const &) const; + split_function_type split_function_value(&::SireMol::ConnectivityBase::split); + + ConnectivityBase_exposer.def( + "split", split_function_value, (bp::arg("atom0"), bp::arg("atom1"), bp::arg("selected_atoms")), bp::release_gil_policy(), "Split the selected atoms of this molecule about the atoms\natom0 and atom1\nThrow: SireMol::incompatible_error\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n"); } { //::SireMol::ConnectivityBase::split - - typedef ::boost::tuples::tuple< SireMol::AtomSelection, SireMol::AtomSelection, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type > ( ::SireMol::ConnectivityBase::*split_function_type)( ::SireMol::BondID const &,::SireMol::AtomSelection const & ) const; - split_function_type split_function_value( &::SireMol::ConnectivityBase::split ); - - ConnectivityBase_exposer.def( - "split" - , split_function_value - , ( bp::arg("bond"), bp::arg("selected_atoms") ) - , bp::release_gil_policy() - , "Split the selected atoms of this molecule into two parts\nabout the bond bond\nThrow: SireError::incompatible_error\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n" ); - + + typedef ::boost::tuples::tuple (::SireMol::ConnectivityBase::*split_function_type)(::SireMol::BondID const &, ::SireMol::AtomSelection const &) const; + split_function_type split_function_value(&::SireMol::ConnectivityBase::split); + + ConnectivityBase_exposer.def( + "split", split_function_value, (bp::arg("bond"), bp::arg("selected_atoms")), bp::release_gil_policy(), "Split the selected atoms of this molecule into two parts\nabout the bond bond\nThrow: SireError::incompatible_error\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n"); } { //::SireMol::ConnectivityBase::split - - typedef ::boost::tuples::tuple< SireMol::AtomSelection, SireMol::AtomSelection, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type > ( ::SireMol::ConnectivityBase::*split_function_type)( ::SireMol::AtomIdx,::SireMol::AtomIdx,::SireMol::AtomIdx ) const; - split_function_type split_function_value( &::SireMol::ConnectivityBase::split ); - - ConnectivityBase_exposer.def( - "split" - , split_function_value - , ( bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2") ) - , bp::release_gil_policy() - , "Split this molecule into three parts about the atoms\natom0, atom1 and atom2.\n" ); - + + typedef ::boost::tuples::tuple (::SireMol::ConnectivityBase::*split_function_type)(::SireMol::AtomIdx, ::SireMol::AtomIdx, ::SireMol::AtomIdx) const; + split_function_type split_function_value(&::SireMol::ConnectivityBase::split); + + ConnectivityBase_exposer.def( + "split", split_function_value, (bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2")), bp::release_gil_policy(), "Split this molecule into three parts about the atoms\natom0, atom1 and atom2.\n"); } { //::SireMol::ConnectivityBase::split - - typedef ::boost::tuples::tuple< SireMol::AtomSelection, SireMol::AtomSelection, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type > ( ::SireMol::ConnectivityBase::*split_function_type)( ::SireMol::AtomID const &,::SireMol::AtomID const &,::SireMol::AtomID const & ) const; - split_function_type split_function_value( &::SireMol::ConnectivityBase::split ); - - ConnectivityBase_exposer.def( - "split" - , split_function_value - , ( bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2") ) - , bp::release_gil_policy() - , "Split the molecule into two parts based on the three supplied atoms\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n" ); - + + typedef ::boost::tuples::tuple (::SireMol::ConnectivityBase::*split_function_type)(::SireMol::AtomID const &, ::SireMol::AtomID const &, ::SireMol::AtomID const &) const; + split_function_type split_function_value(&::SireMol::ConnectivityBase::split); + + ConnectivityBase_exposer.def( + "split", split_function_value, (bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2")), bp::release_gil_policy(), "Split the molecule into two parts based on the three supplied atoms\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n"); } { //::SireMol::ConnectivityBase::split - - typedef ::boost::tuples::tuple< SireMol::AtomSelection, SireMol::AtomSelection, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type > ( ::SireMol::ConnectivityBase::*split_function_type)( ::SireMol::AngleID const & ) const; - split_function_type split_function_value( &::SireMol::ConnectivityBase::split ); - - ConnectivityBase_exposer.def( - "split" - , split_function_value - , ( bp::arg("angle") ) - , bp::release_gil_policy() - , "Split the molecule into two parts based on the supplied angle\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n" ); - + + typedef ::boost::tuples::tuple (::SireMol::ConnectivityBase::*split_function_type)(::SireMol::AngleID const &) const; + split_function_type split_function_value(&::SireMol::ConnectivityBase::split); + + ConnectivityBase_exposer.def( + "split", split_function_value, (bp::arg("angle")), bp::release_gil_policy(), "Split the molecule into two parts based on the supplied angle\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n"); } { //::SireMol::ConnectivityBase::split - - typedef ::boost::tuples::tuple< SireMol::AtomSelection, SireMol::AtomSelection, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type > ( ::SireMol::ConnectivityBase::*split_function_type)( ::SireMol::AtomIdx,::SireMol::AtomIdx,::SireMol::AtomIdx,::SireMol::AtomSelection const & ) const; - split_function_type split_function_value( &::SireMol::ConnectivityBase::split ); - - ConnectivityBase_exposer.def( - "split" - , split_function_value - , ( bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2"), bp::arg("selected_atoms") ) - , bp::release_gil_policy() - , "Split the selected atoms of this molecule into three parts about the atoms\natom0, atom1 and atom2.\nNote that all three atoms must be contained in the selection or else\na missing_atom exception will be thrown\nAn exception will be thrown if it is not possible to split the molecule\nunambiguously in two, as the angle is part of a ring.\n" ); - + + typedef ::boost::tuples::tuple (::SireMol::ConnectivityBase::*split_function_type)(::SireMol::AtomIdx, ::SireMol::AtomIdx, ::SireMol::AtomIdx, ::SireMol::AtomSelection const &) const; + split_function_type split_function_value(&::SireMol::ConnectivityBase::split); + + ConnectivityBase_exposer.def( + "split", split_function_value, (bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2"), bp::arg("selected_atoms")), bp::release_gil_policy(), "Split the selected atoms of this molecule into three parts about the atoms\natom0, atom1 and atom2.\nNote that all three atoms must be contained in the selection or else\na missing_atom exception will be thrown\nAn exception will be thrown if it is not possible to split the molecule\nunambiguously in two, as the angle is part of a ring.\n"); } { //::SireMol::ConnectivityBase::split - - typedef ::boost::tuples::tuple< SireMol::AtomSelection, SireMol::AtomSelection, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type > ( ::SireMol::ConnectivityBase::*split_function_type)( ::SireMol::AtomID const &,::SireMol::AtomID const &,::SireMol::AtomID const &,::SireMol::AtomSelection const & ) const; - split_function_type split_function_value( &::SireMol::ConnectivityBase::split ); - - ConnectivityBase_exposer.def( - "split" - , split_function_value - , ( bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2"), bp::arg("selected_atoms") ) - , bp::release_gil_policy() - , "Split the selected atoms of the molecule into two groups around the\nthree supplied atoms\nThrow: SireError::incompatible_error\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n" ); - + + typedef ::boost::tuples::tuple (::SireMol::ConnectivityBase::*split_function_type)(::SireMol::AtomID const &, ::SireMol::AtomID const &, ::SireMol::AtomID const &, ::SireMol::AtomSelection const &) const; + split_function_type split_function_value(&::SireMol::ConnectivityBase::split); + + ConnectivityBase_exposer.def( + "split", split_function_value, (bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2"), bp::arg("selected_atoms")), bp::release_gil_policy(), "Split the selected atoms of the molecule into two groups around the\nthree supplied atoms\nThrow: SireError::incompatible_error\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n"); } { //::SireMol::ConnectivityBase::split - - typedef ::boost::tuples::tuple< SireMol::AtomSelection, SireMol::AtomSelection, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type > ( ::SireMol::ConnectivityBase::*split_function_type)( ::SireMol::AngleID const &,::SireMol::AtomSelection const & ) const; - split_function_type split_function_value( &::SireMol::ConnectivityBase::split ); - - ConnectivityBase_exposer.def( - "split" - , split_function_value - , ( bp::arg("angle"), bp::arg("selected_atoms") ) - , bp::release_gil_policy() - , "Split the selected atoms selected_atoms of this molecule\ninto two parts based on the angle identified in\nangle. This splits the molecule about atom0() and atom2()\nof the angle, ignoring atom atom1().\nThrow: SireError::incompatible_error\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n" ); - + + typedef ::boost::tuples::tuple (::SireMol::ConnectivityBase::*split_function_type)(::SireMol::AngleID const &, ::SireMol::AtomSelection const &) const; + split_function_type split_function_value(&::SireMol::ConnectivityBase::split); + + ConnectivityBase_exposer.def( + "split", split_function_value, (bp::arg("angle"), bp::arg("selected_atoms")), bp::release_gil_policy(), "Split the selected atoms selected_atoms of this molecule\ninto two parts based on the angle identified in\nangle. This splits the molecule about atom0() and atom2()\nof the angle, ignoring atom atom1().\nThrow: SireError::incompatible_error\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n"); } { //::SireMol::ConnectivityBase::split - - typedef ::boost::tuples::tuple< SireMol::AtomSelection, SireMol::AtomSelection, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type > ( ::SireMol::ConnectivityBase::*split_function_type)( ::SireMol::AtomIdx,::SireMol::AtomIdx,::SireMol::AtomIdx,::SireMol::AtomIdx ) const; - split_function_type split_function_value( &::SireMol::ConnectivityBase::split ); - - ConnectivityBase_exposer.def( - "split" - , split_function_value - , ( bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2"), bp::arg("atom3") ) - , bp::release_gil_policy() - , "Split this molecule into two parts based on the passed atoms.\nThis splits the molecule between atom0 and atom3, ignoring\natom1 and atom2.\nC1 C4--C5--C6\n\ \nC2 C8--C9\n \ \nC3 C7\n\\nC10--C11\nSplitting C4,C2,C7,C10 will return\n" ); - + + typedef ::boost::tuples::tuple (::SireMol::ConnectivityBase::*split_function_type)(::SireMol::AtomIdx, ::SireMol::AtomIdx, ::SireMol::AtomIdx, ::SireMol::AtomIdx) const; + split_function_type split_function_value(&::SireMol::ConnectivityBase::split); + + ConnectivityBase_exposer.def( + "split", split_function_value, (bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2"), bp::arg("atom3")), bp::release_gil_policy(), "Split this molecule into two parts based on the passed atoms.\nThis splits the molecule between atom0 and atom3, ignoring\natom1 and atom2.\nC1 C4--C5--C6\n\ \nC2 C8--C9\n \ \nC3 C7\n\\nC10--C11\nSplitting C4,C2,C7,C10 will return\n"); } { //::SireMol::ConnectivityBase::split - - typedef ::boost::tuples::tuple< SireMol::AtomSelection, SireMol::AtomSelection, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type > ( ::SireMol::ConnectivityBase::*split_function_type)( ::SireMol::AtomID const &,::SireMol::AtomID const &,::SireMol::AtomID const &,::SireMol::AtomID const & ) const; - split_function_type split_function_value( &::SireMol::ConnectivityBase::split ); - - ConnectivityBase_exposer.def( - "split" - , split_function_value - , ( bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2"), bp::arg("atom3") ) - , bp::release_gil_policy() - , "Split this molecule into two parts based on the passed atoms.\nThis splits the molecule between atom0 and atom3, ignoring\natom1 and atom2.\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n" ); - + + typedef ::boost::tuples::tuple (::SireMol::ConnectivityBase::*split_function_type)(::SireMol::AtomID const &, ::SireMol::AtomID const &, ::SireMol::AtomID const &, ::SireMol::AtomID const &) const; + split_function_type split_function_value(&::SireMol::ConnectivityBase::split); + + ConnectivityBase_exposer.def( + "split", split_function_value, (bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2"), bp::arg("atom3")), bp::release_gil_policy(), "Split this molecule into two parts based on the passed atoms.\nThis splits the molecule between atom0 and atom3, ignoring\natom1 and atom2.\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n"); } { //::SireMol::ConnectivityBase::split - - typedef ::boost::tuples::tuple< SireMol::AtomSelection, SireMol::AtomSelection, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type > ( ::SireMol::ConnectivityBase::*split_function_type)( ::SireMol::DihedralID const & ) const; - split_function_type split_function_value( &::SireMol::ConnectivityBase::split ); - - ConnectivityBase_exposer.def( - "split" - , split_function_value - , ( bp::arg("dihedral") ) - , bp::release_gil_policy() - , "Split this molecule into two parts based on the dihedral identified in\ndihedral. This splits the molecule about atom0() and atom3()\nof the dihedral, ignoring atoms atom1() and atom2().\nThrow: SireError::incompatible_error\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n" ); - + + typedef ::boost::tuples::tuple (::SireMol::ConnectivityBase::*split_function_type)(::SireMol::DihedralID const &) const; + split_function_type split_function_value(&::SireMol::ConnectivityBase::split); + + ConnectivityBase_exposer.def( + "split", split_function_value, (bp::arg("dihedral")), bp::release_gil_policy(), "Split this molecule into two parts based on the dihedral identified in\ndihedral. This splits the molecule about atom0() and atom3()\nof the dihedral, ignoring atoms atom1() and atom2().\nThrow: SireError::incompatible_error\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n"); } { //::SireMol::ConnectivityBase::split - - typedef ::boost::tuples::tuple< SireMol::AtomSelection, SireMol::AtomSelection, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type > ( ::SireMol::ConnectivityBase::*split_function_type)( ::SireMol::AtomIdx,::SireMol::AtomIdx,::SireMol::AtomIdx,::SireMol::AtomIdx,::SireMol::AtomSelection const & ) const; - split_function_type split_function_value( &::SireMol::ConnectivityBase::split ); - - ConnectivityBase_exposer.def( - "split" - , split_function_value - , ( bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2"), bp::arg("atom3"), bp::arg("selected_atoms") ) - , bp::release_gil_policy() - , "Split the selected atoms of this molecule into two parts\nbased on the passed atoms.\nThis splits the molecule between atom0 and atom3, ignoring\natom1 and atom2.\nAll four atoms must be selected in selected_atoms or else\na missing_atom exception will be thrown\nC1 C4--C5--C6\n\ \nC2 C8--C9\n \ \nC3 C7\n\\nC10--C11\nSplitting C4,C2,C7,C10 will return\n" ); - + + typedef ::boost::tuples::tuple (::SireMol::ConnectivityBase::*split_function_type)(::SireMol::AtomIdx, ::SireMol::AtomIdx, ::SireMol::AtomIdx, ::SireMol::AtomIdx, ::SireMol::AtomSelection const &) const; + split_function_type split_function_value(&::SireMol::ConnectivityBase::split); + + ConnectivityBase_exposer.def( + "split", split_function_value, (bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2"), bp::arg("atom3"), bp::arg("selected_atoms")), bp::release_gil_policy(), "Split the selected atoms of this molecule into two parts\nbased on the passed atoms.\nThis splits the molecule between atom0 and atom3, ignoring\natom1 and atom2.\nAll four atoms must be selected in selected_atoms or else\na missing_atom exception will be thrown\nC1 C4--C5--C6\n\ \nC2 C8--C9\n \ \nC3 C7\n\\nC10--C11\nSplitting C4,C2,C7,C10 will return\n"); } { //::SireMol::ConnectivityBase::split - - typedef ::boost::tuples::tuple< SireMol::AtomSelection, SireMol::AtomSelection, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type > ( ::SireMol::ConnectivityBase::*split_function_type)( ::SireMol::AtomID const &,::SireMol::AtomID const &,::SireMol::AtomID const &,::SireMol::AtomID const &,::SireMol::AtomSelection const & ) const; - split_function_type split_function_value( &::SireMol::ConnectivityBase::split ); - - ConnectivityBase_exposer.def( - "split" - , split_function_value - , ( bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2"), bp::arg("atom3"), bp::arg("selected_atoms") ) - , bp::release_gil_policy() - , "Split the selected atoms selected_atoms of this molecule\ninto two parts based on the passed atoms. This splits\nthe molecule between atom0 and atom3, ignoring atom1 and\natom2.\nThrow: SireError::incompatible_error\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n" ); - + + typedef ::boost::tuples::tuple (::SireMol::ConnectivityBase::*split_function_type)(::SireMol::AtomID const &, ::SireMol::AtomID const &, ::SireMol::AtomID const &, ::SireMol::AtomID const &, ::SireMol::AtomSelection const &) const; + split_function_type split_function_value(&::SireMol::ConnectivityBase::split); + + ConnectivityBase_exposer.def( + "split", split_function_value, (bp::arg("atom0"), bp::arg("atom1"), bp::arg("atom2"), bp::arg("atom3"), bp::arg("selected_atoms")), bp::release_gil_policy(), "Split the selected atoms selected_atoms of this molecule\ninto two parts based on the passed atoms. This splits\nthe molecule between atom0 and atom3, ignoring atom1 and\natom2.\nThrow: SireError::incompatible_error\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n"); } { //::SireMol::ConnectivityBase::split - - typedef ::boost::tuples::tuple< SireMol::AtomSelection, SireMol::AtomSelection, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type > ( ::SireMol::ConnectivityBase::*split_function_type)( ::SireMol::DihedralID const &,::SireMol::AtomSelection const & ) const; - split_function_type split_function_value( &::SireMol::ConnectivityBase::split ); - - ConnectivityBase_exposer.def( - "split" - , split_function_value - , ( bp::arg("dihedral"), bp::arg("selected_atoms") ) - , bp::release_gil_policy() - , "Split the selected atoms selected_atoms of this molecule\ninto two parts based on the dihedral identified in\ndihedral. This splits the molecule about atom0() and atom3()\nof the dihedral, ignoring atoms atom1() and atom2().\nThrow: SireError::incompatible_error\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n" ); - + + typedef ::boost::tuples::tuple (::SireMol::ConnectivityBase::*split_function_type)(::SireMol::DihedralID const &, ::SireMol::AtomSelection const &) const; + split_function_type split_function_value(&::SireMol::ConnectivityBase::split); + + ConnectivityBase_exposer.def( + "split", split_function_value, (bp::arg("dihedral"), bp::arg("selected_atoms")), bp::release_gil_policy(), "Split the selected atoms selected_atoms of this molecule\ninto two parts based on the dihedral identified in\ndihedral. This splits the molecule about atom0() and atom3()\nof the dihedral, ignoring atoms atom1() and atom2().\nThrow: SireError::incompatible_error\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n"); } { //::SireMol::ConnectivityBase::split - - typedef ::boost::tuples::tuple< SireMol::AtomSelection, SireMol::AtomSelection, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type > ( ::SireMol::ConnectivityBase::*split_function_type)( ::SireMol::ImproperID const & ) const; - split_function_type split_function_value( &::SireMol::ConnectivityBase::split ); - - ConnectivityBase_exposer.def( - "split" - , split_function_value - , ( bp::arg("improper") ) - , bp::release_gil_policy() - , "Split this molecule into two parts based on the improper angle\nidentified by improper. This splits the molecule about\nbond between atom0() and atom1() of the improper\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n" ); - + + typedef ::boost::tuples::tuple (::SireMol::ConnectivityBase::*split_function_type)(::SireMol::ImproperID const &) const; + split_function_type split_function_value(&::SireMol::ConnectivityBase::split); + + ConnectivityBase_exposer.def( + "split", split_function_value, (bp::arg("improper")), bp::release_gil_policy(), "Split this molecule into two parts based on the improper angle\nidentified by improper. This splits the molecule about\nbond between atom0() and atom1() of the improper\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n"); } { //::SireMol::ConnectivityBase::split - - typedef ::boost::tuples::tuple< SireMol::AtomSelection, SireMol::AtomSelection, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type > ( ::SireMol::ConnectivityBase::*split_function_type)( ::SireMol::ImproperID const &,::SireMol::AtomSelection const & ) const; - split_function_type split_function_value( &::SireMol::ConnectivityBase::split ); - - ConnectivityBase_exposer.def( - "split" - , split_function_value - , ( bp::arg("improper"), bp::arg("selected_atoms") ) - , bp::release_gil_policy() - , "Split the selected atoms in selected_atoms in this molecule\ninto two parts based on the improper angle\nidentified by improper. This splits the molecule about\nbond between atom0() and atom1() of the improper\nThrow: SireError::incompatible_error\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n" ); - + + typedef ::boost::tuples::tuple (::SireMol::ConnectivityBase::*split_function_type)(::SireMol::ImproperID const &, ::SireMol::AtomSelection const &) const; + split_function_type split_function_value(&::SireMol::ConnectivityBase::split); + + ConnectivityBase_exposer.def( + "split", split_function_value, (bp::arg("improper"), bp::arg("selected_atoms")), bp::release_gil_policy(), "Split the selected atoms in selected_atoms in this molecule\ninto two parts based on the improper angle\nidentified by improper. This splits the molecule about\nbond between atom0() and atom1() of the improper\nThrow: SireError::incompatible_error\nThrow: SireMol::missing_atom\nThrow: SireMol::duplicate_atom\nThrow: SireError::invalid_index\nThrow: SireMol::ring_error\n"); } { //::SireMol::ConnectivityBase::toCONECT - - typedef ::QString ( ::SireMol::ConnectivityBase::*toCONECT_function_type)( int ) const; - toCONECT_function_type toCONECT_function_value( &::SireMol::ConnectivityBase::toCONECT ); - - ConnectivityBase_exposer.def( - "toCONECT" - , toCONECT_function_value - , ( bp::arg("offset")=(int)(0) ) - , "Return a PDB format CONECT record for this connectivity object." ); - + + typedef ::QString (::SireMol::ConnectivityBase::*toCONECT_function_type)(int) const; + toCONECT_function_type toCONECT_function_value(&::SireMol::ConnectivityBase::toCONECT); + + ConnectivityBase_exposer.def( + "toCONECT", toCONECT_function_value, (bp::arg("offset") = (int)(0)), "Return a PDB format CONECT record for this connectivity object."); } { //::SireMol::ConnectivityBase::toString - - typedef ::QString ( ::SireMol::ConnectivityBase::*toString_function_type)( ) const; - toString_function_type toString_function_value( &::SireMol::ConnectivityBase::toString ); - - ConnectivityBase_exposer.def( - "toString" - , toString_function_value - , bp::release_gil_policy() - , "" ); - + + typedef ::QString (::SireMol::ConnectivityBase::*toString_function_type)() const; + toString_function_type toString_function_value(&::SireMol::ConnectivityBase::toString); + + ConnectivityBase_exposer.def( + "toString", toString_function_value, bp::release_gil_policy(), ""); } { //::SireMol::ConnectivityBase::typeName - - typedef char const * ( *typeName_function_type )( ); - typeName_function_type typeName_function_value( &::SireMol::ConnectivityBase::typeName ); - - ConnectivityBase_exposer.def( - "typeName" - , typeName_function_value - , bp::release_gil_policy() - , "" ); - - } - ConnectivityBase_exposer.staticmethod( "typeName" ); - ConnectivityBase_exposer.def( "__rlshift__", &__rlshift__QDataStream< ::SireMol::ConnectivityBase >, - bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); - ConnectivityBase_exposer.def( "__rrshift__", &__rrshift__QDataStream< ::SireMol::ConnectivityBase >, - bp::return_internal_reference<1, bp::with_custodian_and_ward<1,2> >() ); - ConnectivityBase_exposer.def_pickle(sire_pickle_suite< ::SireMol::ConnectivityBase >()); - ConnectivityBase_exposer.def( "__str__", &__str__< ::SireMol::ConnectivityBase > ); - ConnectivityBase_exposer.def( "__repr__", &__str__< ::SireMol::ConnectivityBase > ); - } + typedef char const *(*typeName_function_type)(); + typeName_function_type typeName_function_value(&::SireMol::ConnectivityBase::typeName); + + ConnectivityBase_exposer.def( + "typeName", typeName_function_value, bp::release_gil_policy(), ""); + } + ConnectivityBase_exposer.staticmethod("typeName"); + ConnectivityBase_exposer.def("__rlshift__", &__rlshift__QDataStream<::SireMol::ConnectivityBase>, + bp::return_internal_reference<1, bp::with_custodian_and_ward<1, 2>>()); + ConnectivityBase_exposer.def("__rrshift__", &__rrshift__QDataStream<::SireMol::ConnectivityBase>, + bp::return_internal_reference<1, bp::with_custodian_and_ward<1, 2>>()); + ConnectivityBase_exposer.def_pickle(sire_pickle_suite<::SireMol::ConnectivityBase>()); + ConnectivityBase_exposer.def("__str__", &__str__<::SireMol::ConnectivityBase>); + ConnectivityBase_exposer.def("__repr__", &__str__<::SireMol::ConnectivityBase>); + } }