RxDock 0.1.0
A fast, versatile, and open-source program for docking ligands to proteins and nucleic acids
Loading...
Searching...
No Matches
AtomFuncs.h
1/***********************************************************************
2 * The rDock program was developed from 1998 - 2006 by the software team
3 * at RiboTargets (subsequently Vernalis (R&D) Ltd).
4 * In 2006, the software was licensed to the University of York for
5 * maintenance and distribution.
6 * In 2012, Vernalis and the University of York agreed to release the
7 * program as Open Source software.
8 * This version is licensed under GNU-LGPL version 3.0 with support from
9 * the University of Barcelona.
10 * http://rdock.sourceforge.net/
11 ***********************************************************************/
12
13// Common functions involving atoms and bonds
14
15#ifndef _RBTATOMFUNCS_H_
16#define _RBTATOMFUNCS_H_
17
18#include "rxdock/Atom.h"
19#include "rxdock/Bond.h"
20
21namespace rxdock {
22
23// DM 31 Oct 2000
24// Given a bond, determines if it is in a ring (cutdown version of ToSpin)
25bool FindCyclic(BondPtr spBond, AtomList &atomList, BondList &bondList);
26
27// DM 4 Dec 1998
28// Given a bond, set the selection flags for all atoms which are connected to
29// atom 2 of the bond Returns true if bond is in a ring (i.e. if atom 1's flag
30// gets set also) DM 8 Feb 2000 - standalone version (formerly only available as
31// Model method) WARNING - no check that spBond is actually present in
32// bondList, or that atom and bond lists are consistent
33bool ToSpin(BondPtr spBond, AtomList &atomList, BondList &bondList);
34
35// DM 7 Dec 1998
36// Set the atom and bond cyclic flags for all atoms and bonds in the model
37// DM 8 Feb 2000 - standalone version (formerly only available as Model
38// method)
39void SetAtomAndBondCyclicFlags(AtomList &atomList, BondList &bondList);
40
41// Find the smallest ring containing the given atom
42// Assumes SetAtomAndBondCyclicFlags has already been called
43// Note: if the atom is a member of two equally sized rings, only one will be
44// returned 30 Oct 2000 - Standalone version
45AtomList FindRing(AtomPtr spAtom, BondList &bondList);
46
47// 30 Oct 2000 (DM) - Find all rings, standalone version
48void FindRings(AtomList &atomList, BondList &bondList, AtomListList &ringList);
49
50} // namespace rxdock
51
52#endif //_RBTATOMFUNCS_H_