17#include <boost/dynamic_bitset.hpp>
19#include <boost/shared_ptr.hpp>
23#include <RingDecomposerLib.h>
145 return areAtomsInSameRingOfSize(idx1, idx2, 0);
155 unsigned int size)
const;
222 return areBondsInSameRingOfSize(idx1, idx2, 0);
232 unsigned int size)
const;
288 unsigned int addRingFamily(
const INT_VECT &atomIndices,
295 unsigned int numRingFamilies()
const;
302 unsigned int numRelevantCycles()
const;
309 const VECT_INT_VECT &atomRingFamilies()
const {
return d_atomRingFamilies; }
316 const VECT_INT_VECT &bondRingFamilies()
const {
return d_bondRingFamilies; }
319 bool areRingFamiliesInitialized()
const {
return dp_urfData !=
nullptr; }
326 void preallocate(
unsigned int numAtoms,
unsigned int numBonds);
327 void initFusedRings();
330 DataType d_atomMembers, d_bondMembers;
333 std::vector<boost::dynamic_bitset<>> d_fusedRings;
334 std::vector<unsigned int> d_numFusedBonds;
338 boost::shared_ptr<RDL_data> dp_urfData;
handles pickling (serializing) molecules
void reset()
blows out all current data and de-initializes
RingInfo(RingInfo &&other) noexcept=default
const VECT_INT_VECT & atomRings() const
bool areBondsInSameRing(unsigned int idx1, unsigned int idx2) const
bool areRingsFused(unsigned int ring1Idx, unsigned int ring2Idx)
RingInfo & operator=(RingInfo &&other) noexcept=default
bool areAtomsInSameRing(unsigned int idx1, unsigned int idx2) const
bool isRingFused(unsigned int ringIdx)
returns whether ring with index ringIdx is fused with other rings.
unsigned int numRings() const
returns the total number of rings
RingInfo & operator=(const RingInfo &other)=default
std::vector< MemberType > DataType
unsigned int numBondRings(unsigned int idx) const
returns the number of rings bond idx is involved in
bool areAtomsInSameRingOfSize(unsigned int idx1, unsigned int idx2, unsigned int size) const
unsigned int minBondRingSize(unsigned int idx) const
returns the size of the smallest ring bond idx is involved in
RingInfo(const RingInfo &other)=default
const INT_VECT & atomMembers(unsigned int idx) const
unsigned int numFusedBonds(unsigned int ringIdx)
INT_VECT atomRingSizes(unsigned int idx) const
const VECT_INT_VECT & bondRings() const
const INT_VECT & bondMembers(unsigned int idx) const
std::vector< int > INT_VECT
RDKit::FIND_RING_TYPE getRingType() const
void initialize(RDKit::FIND_RING_TYPE ringType=FIND_RING_TYPE_OTHER_OR_UNKNOWN)
does initialization
bool isSssrOrBetter() const
std::vector< unsigned int > fusedRingNeighbors(unsigned int ringIdx)
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 numFusedRingNeighbors(unsigned int ringIdx)
INT_VECT bondRingSizes(unsigned int idx) const
unsigned int addRing(const INT_VECT &atomIndices, const INT_VECT &bondIndices)
adds a ring to our data
bool areBondsInSameRingOfSize(unsigned int idx1, unsigned int idx2, unsigned int size) const
unsigned int numAtomRings(unsigned int idx) const
returns the number of rings atom idx is involved in
bool isBondInRingOfSize(unsigned int idx, unsigned int size) const
returns whether or not the bond with index idx is in a size - ring.
bool isInitialized() const
checks to see if we've been properly initialized
std::vector< int > MemberType
bool isFindFastOrBetter() const
unsigned int minAtomRingSize(unsigned int idx) const
returns the size of the smallest ring atom idx is involved in
std::vector< INT_VECT > VECT_INT_VECT
#define RDKIT_GRAPHMOL_EXPORT
std::vector< INT_VECT > VECT_INT_VECT
FIND_RING_TYPE
A class to store information about a molecule's rings.
@ FIND_RING_TYPE_OTHER_OR_UNKNOWN
@ FIND_RING_TYPE_SYMM_SSSR
std::vector< std::vector< int > > VECT_INT_VECT