![]() |
RDKit
Open-source cheminformatics and machine learning.
|
#include <RingInfo.h>
Public Types | |
| typedef std::vector< int > | MemberType |
| typedef std::vector< MemberType > | DataType |
| typedef std::vector< int > | INT_VECT |
| typedef std::vector< INT_VECT > | VECT_INT_VECT |
Public Member Functions | |
| RingInfo () | |
| RingInfo (const RingInfo &other)=default | |
| RingInfo & | operator= (const RingInfo &other)=default |
| RingInfo (RingInfo &&other) noexcept=default | |
| RingInfo & | operator= (RingInfo &&other) noexcept=default |
| bool | isInitialized () const |
| checks to see if we've been properly initialized | |
| void | initialize (RDKit::FIND_RING_TYPE ringType=FIND_RING_TYPE_OTHER_OR_UNKNOWN) |
| does initialization | |
| RDKit::FIND_RING_TYPE | getRingType () const |
| void | reset (bool resetRingFamilies=true) |
| blows out all current data and de-initializes | |
| bool | isFindFastOrBetter () const |
| bool | isSssrOrBetter () const |
| bool | isSymmSssr () const |
| unsigned int | addRing (const INT_VECT &atomIndices, const INT_VECT &bondIndices) |
| adds a ring to our data | |
| void | preallocate (unsigned int numAtoms, unsigned int numBonds) |
| pre-allocates some memory to save time later | |
Atom information | |
| INT_VECT | atomRingSizes (unsigned int idx) const |
| bool | isAtomInRingOfSize (unsigned int idx, unsigned int size) const |
returns whether or not the atom with index idx is in a size - ring. | |
| unsigned int | numAtomRings (unsigned int idx) const |
returns the number of rings atom idx is involved in | |
| unsigned int | minAtomRingSize (unsigned int idx) const |
returns the size of the smallest ring atom idx is involved in | |
| const VECT_INT_VECT & | atomRings () const |
| const INT_VECT & | atomMembers (unsigned int idx) const |
| bool | areAtomsInSameRing (unsigned int idx1, unsigned int idx2) const |
| bool | areAtomsInSameRingOfSize (unsigned int idx1, unsigned int idx2, unsigned int size) const |
Bond information | |
| INT_VECT | bondRingSizes (unsigned int idx) const |
| bool | isBondInRingOfSize (unsigned int idx, unsigned int size) const |
returns whether or not the bond with index idx is in a size - ring. | |
| unsigned int | numBondRings (unsigned int idx) const |
returns the number of rings bond idx is involved in | |
| unsigned int | minBondRingSize (unsigned int idx) const |
returns the size of the smallest ring bond idx is involved in | |
| unsigned int | numRings () const |
| returns the total number of rings | |
| const VECT_INT_VECT & | bondRings () const |
| const INT_VECT & | bondMembers (unsigned int idx) const |
| bool | areBondsInSameRing (unsigned int idx1, unsigned int idx2) const |
| bool | areBondsInSameRingOfSize (unsigned int idx1, unsigned int idx2, unsigned int size) const |
| bool | isRingFused (unsigned int ringIdx) |
returns whether ring with index ringIdx is fused with other rings. | |
| bool | areRingsFused (unsigned int ring1Idx, unsigned int ring2Idx) |
| unsigned int | numFusedBonds (unsigned int ringIdx) |
| unsigned int | numFusedRingNeighbors (unsigned int ringIdx) |
| std::vector< unsigned int > | fusedRingNeighbors (unsigned int ringIdx) |
| unsigned int | addRingFamily (const INT_VECT &atomIndices, const INT_VECT &bondIndices) |
| adds a ring family to our data | |
| unsigned int | numRingFamilies () const |
| returns the total number of ring families | |
| unsigned int | numRelevantCycles () const |
| returns the total number of relevant cycles | |
| const VECT_INT_VECT & | atomRingFamilies () const |
| returns our atom ring family vectors | |
| VECT_INT_VECT | atomRelevantCycles () const |
| const VECT_INT_VECT & | bondRingFamilies () const |
| returns our bond ring family vectors | |
| bool | areRingFamiliesInitialized () const |
| check if the ring families have been initialized | |
| void | resetRingFamilies () |
| reset ring family information | |
Public Attributes | |
| boost::shared_ptr< RDL_data > | dp_urfData |
Friends | |
| class | MolPickler |
Definition at line 34 of file RingInfo.h.
| typedef std::vector<MemberType> RDKit::RingInfo::DataType |
Definition at line 39 of file RingInfo.h.
| typedef std::vector<int> RDKit::RingInfo::INT_VECT |
Definition at line 40 of file RingInfo.h.
| typedef std::vector<int> RDKit::RingInfo::MemberType |
Definition at line 38 of file RingInfo.h.
| typedef std::vector<INT_VECT> RDKit::RingInfo::VECT_INT_VECT |
Definition at line 41 of file RingInfo.h.
|
inline |
Definition at line 43 of file RingInfo.h.
Referenced by operator=(), operator=(), RingInfo(), and RingInfo().
|
default |
References RingInfo().
|
defaultnoexcept |
References RingInfo().
| unsigned int RDKit::RingInfo::addRing | ( | const INT_VECT & | atomIndices, |
| const INT_VECT & | bondIndices ) |
adds a ring to our data
| atomIndices | the integer indices of the atoms involved in the ring |
| bondIndices | the integer indices of the bonds involved in the ring, this must be the same size as atomIndices. |
Notes:
| unsigned int RDKit::RingInfo::addRingFamily | ( | const INT_VECT & | atomIndices, |
| const INT_VECT & | bondIndices ) |
adds a ring family to our data
| atomIndices | the integer indices of the atoms involved in the ring family |
| bondIndices | the integer indices of the bonds involved in the ring family, this must be the same size as atomIndices. |
Notes:
|
inline |
returns whether or not atoms with indices idx1 and idx2 belong to the same ring.
Notes:
Definition at line 140 of file RingInfo.h.
References areAtomsInSameRingOfSize().
| bool RDKit::RingInfo::areAtomsInSameRingOfSize | ( | unsigned int | idx1, |
| unsigned int | idx2, | ||
| unsigned int | size ) const |
returns whether or not atoms with indices idx1 and idx2 belong to the same ring of size size.
Notes:
Referenced by areAtomsInSameRing().
|
inline |
returns whether or not bonds with indices idx1 and idx2 belong to the same ring.
Notes:
Definition at line 217 of file RingInfo.h.
References areBondsInSameRingOfSize().
| bool RDKit::RingInfo::areBondsInSameRingOfSize | ( | unsigned int | idx1, |
| unsigned int | idx2, | ||
| unsigned int | size ) const |
returns whether or not bonds with indices idx1 and idx2 belong to the same ring of size size.
Notes:
Referenced by areBondsInSameRing().
|
inline |
check if the ring families have been initialized
Definition at line 315 of file RingInfo.h.
References dp_urfData.
| bool RDKit::RingInfo::areRingsFused | ( | unsigned int | ring1Idx, |
| unsigned int | ring2Idx ) |
returns whether rings with indices ring1Idx and ring2Idx have at least one bond in common.
Notes:
| const INT_VECT & RDKit::RingInfo::atomMembers | ( | unsigned int | idx | ) | const |
returns our atom-members vector for atom idx (i.e., a vector of ints reporting the ring indices that atom idx is member of), or an empty vector if the atom is not in any ring.
Notes:
| VECT_INT_VECT RDKit::RingInfo::atomRelevantCycles | ( | ) | const |
|
inline |
returns our atom ring family vectors
Notes:
Definition at line 304 of file RingInfo.h.
|
inline |
returns our atom-rings vectors, i.e. a vector of int vectors reporting the atom indices which are part of each ring
Notes:
Definition at line 122 of file RingInfo.h.
| INT_VECT RDKit::RingInfo::atomRingSizes | ( | unsigned int | idx | ) | const |
returns a vector with sizes of the rings that atom with index idx is in.
Notes:
| const INT_VECT & RDKit::RingInfo::bondMembers | ( | unsigned int | idx | ) | const |
returns our bond-members vector for bond idx (i.e., a vector of ints reporting the ring indices that bond idx is member of), or an empty vector if the bond is not in any ring.
Notes:
|
inline |
returns our bond ring family vectors
Notes:
Definition at line 312 of file RingInfo.h.
|
inline |
returns our bond-rings vectors, i.e. a vector of int vectors reporting the bond indices which are part of each ring
Notes:
Definition at line 199 of file RingInfo.h.
| INT_VECT RDKit::RingInfo::bondRingSizes | ( | unsigned int | idx | ) | const |
returns a vector with sizes of the rings that bond with index idx is in.
Notes:
| std::vector< unsigned int > RDKit::RingInfo::fusedRingNeighbors | ( | unsigned int | ringIdx | ) |
returns the indices of rings which have at least one bond in common with ring with index ringIdx.
Notes:
|
inline |
Definition at line 53 of file RingInfo.h.
| void RDKit::RingInfo::initialize | ( | RDKit::FIND_RING_TYPE | ringType = FIND_RING_TYPE_OTHER_OR_UNKNOWN | ) |
does initialization
References RDKit::FIND_RING_TYPE_OTHER_OR_UNKNOWN.
| bool RDKit::RingInfo::isAtomInRingOfSize | ( | unsigned int | idx, |
| unsigned int | size ) const |
returns whether or not the atom with index idx is in a size - ring.
Notes:
Referenced by RDKit::queryAtomIsInRingOfSize(), and RDKit::queryAtomIsInRingOfSize().
| bool RDKit::RingInfo::isBondInRingOfSize | ( | unsigned int | idx, |
| unsigned int | size ) const |
returns whether or not the bond with index idx is in a size - ring.
Notes:
Referenced by RDKit::queryBondIsInRingOfSize().
|
inline |
Definition at line 57 of file RingInfo.h.
References RDKit::FIND_RING_TYPE_FAST, RDKit::FIND_RING_TYPE_SSSR, and RDKit::FIND_RING_TYPE_SYMM_SSSR.
|
inline |
checks to see if we've been properly initialized
Definition at line 49 of file RingInfo.h.
| bool RDKit::RingInfo::isRingFused | ( | unsigned int | ringIdx | ) |
returns whether ring with index ringIdx is fused with other rings.
Notes:
|
inline |
Definition at line 63 of file RingInfo.h.
References RDKit::FIND_RING_TYPE_SSSR, and RDKit::FIND_RING_TYPE_SYMM_SSSR.
|
inline |
Definition at line 68 of file RingInfo.h.
References RDKit::FIND_RING_TYPE_SYMM_SSSR.
| unsigned int RDKit::RingInfo::minAtomRingSize | ( | unsigned int | idx | ) | const |
returns the size of the smallest ring atom idx is involved in
Notes:
Referenced by RDKit::queryAtomMinRingSize().
| unsigned int RDKit::RingInfo::minBondRingSize | ( | unsigned int | idx | ) | const |
returns the size of the smallest ring bond idx is involved in
Notes:
Referenced by RDKit::queryBondMinRingSize().
| unsigned int RDKit::RingInfo::numAtomRings | ( | unsigned int | idx | ) | const |
returns the number of rings atom idx is involved in
Notes:
Referenced by RDKit::queryIsAtomInNRings(), and RDKit::queryIsAtomInRing().
| unsigned int RDKit::RingInfo::numBondRings | ( | unsigned int | idx | ) | const |
returns the number of rings bond idx is involved in
Notes:
Referenced by RDKit::queryAtomHasRingBond(), RDKit::queryAtomRingBondCount(), RDKit::queryIsBondInNRings(), and RDKit::queryIsBondInRing().
| unsigned int RDKit::RingInfo::numFusedBonds | ( | unsigned int | ringIdx | ) |
returns the number of bonds shared with other rings in ring with index ringIdx.
Notes:
| unsigned int RDKit::RingInfo::numFusedRingNeighbors | ( | unsigned int | ringIdx | ) |
returns the number of rings which have at least one bond in common with ring with index ringIdx.
Notes:
| unsigned int RDKit::RingInfo::numRelevantCycles | ( | ) | const |
returns the total number of relevant cycles
Notes:
| unsigned int RDKit::RingInfo::numRingFamilies | ( | ) | const |
returns the total number of ring families
Notes:
| unsigned int RDKit::RingInfo::numRings | ( | ) | const |
returns the total number of rings
Notes:
References RingInfo().
References RingInfo().
| void RDKit::RingInfo::preallocate | ( | unsigned int | numAtoms, |
| unsigned int | numBonds ) |
pre-allocates some memory to save time later
| void RDKit::RingInfo::reset | ( | bool | resetRingFamilies = true | ) |
blows out all current data and de-initializes
References resetRingFamilies().
| void RDKit::RingInfo::resetRingFamilies | ( | ) |
reset ring family information
Referenced by reset().
|
friend |
| boost::shared_ptr<RDL_data> RDKit::RingInfo::dp_urfData |
Definition at line 336 of file RingInfo.h.
Referenced by areRingFamiliesInitialized().