Commit Graph

11 Commits

Author SHA1 Message Date
Greg Landrum
ba12d98ad0 Removes ATOM/BOND_SPTR in boost::graph in favor of raw pointers (#1713)
* Removes ATOM/BOND_SPTR in boost::graph in favor of raw pointers

* Actually delete atoms and bonds...

* RWMol::clear now calls destroy to handle atom/bond deletion

* Changes broken Atom lookup for windows/gcc

* Adds tests for running with valgrind

* Adds test designed for valgrind and molecule deletions

* Removes RNG, actually tests bond deletions

* update swig wrappers

* deal with most recent changes on the main branch
2018-01-07 14:19:47 -05:00
Greg Landrum
636a0f6e69 Cleanup a bunch of compiler warnings (#1697)
* remove a bunch of compiler warnings

* remove some more warnings on windows (there are still plenty to go...)
2017-12-22 12:59:52 +01:00
Greg Landrum
e08e0d16d8 first pass, using google style 2015-11-14 14:58:11 +01:00
Greg Landrum
ea7f446369 and fix ChiNn too (#463) 2015-03-26 08:41:09 -04:00
Greg Landrum
9208936bbb Fixes #463 2015-03-26 07:10:02 -04:00
Brian Kelley
95a92282d1 Dictionary access is saniztized and optimized.
o rdkit gains a RDKit::common_properties namespace that contains common string value properties

 o Dict.h and below gain getPropIfPresent that attempts to retrieve a property and returns
  true/false on success or failure.  This is used to optimize access.

 o rdkit learns how to pass property keys by reference, not value.

A new namespace has been added to RDKit, common_properties
that contains the std::string values for commonly used
properties.  This helps to avoid typos in string values
but also avoids a creation of std::strings from character
values.  All accessors (has/get/clear and getPropIfPresent) now pass
the key by reference.

Additionally, getPropIfPresent removes the double lookup
of hasProp/getProp which can be a significant speedup
in the smiles and smarts parsers (10-20%)
2015-01-15 12:23:29 -05:00
Greg Landrum
dd52d8234d fix github issue 23 and fix the setProp call that led to it in the first place 2013-04-25 04:02:49 +00:00
Greg Landrum
1bda01294c support getting atom contributions to hkAlpha; support chiral flags for torsions and atom pair fingerprints 2013-04-07 23:40:17 +00:00
Greg Landrum
e011d14fb1 add the kappa descriptors 2012-10-28 17:00:29 +00:00
Greg Landrum
b3268d197f versions for the new connectivity descriptors; replace the python version of chi descriptors with the C++ version 2012-10-27 16:10:17 +00:00
Greg Landrum
fdccec7216 initial pass at c++ implementation of some connectivity descriptors 2012-10-27 15:24:35 +00:00