![]() |
RDKit
Open-source cheminformatics and machine learning.
|
Concrete class that holds binary cached molecules in memory. More...
#include <SubstructLibrary.h>
Public Member Functions | |
CachedMolHolder () | |
unsigned int | addMol (const ROMol &m) override |
unsigned int | addBinary (const std::string &pickle) |
boost::shared_ptr< ROMol > | getMol (unsigned int idx) const override |
unsigned int | size () const override |
Get the current library size. More... | |
std::vector< std::string > & | getMols () |
const std::vector< std::string > & | getMols () const |
![]() | |
virtual | ~MolHolderBase () |
virtual unsigned int | addMol (const ROMol &m)=0 |
virtual boost::shared_ptr< ROMol > | getMol (unsigned int) const =0 |
virtual unsigned int | size () const =0 |
Get the current library size. More... | |
Concrete class that holds binary cached molecules in memory.
This implementation uses quite a bit less memory than the non cached implementation. However, due to the reduced speed it should be used in conjunction with a pattern fingerprinter.
See RDKit::FPHolder
Definition at line 118 of file SubstructLibrary.h.
|
inline |
Definition at line 122 of file SubstructLibrary.h.
|
inline |
Adds a pickled binary molecule, no validity checking of the input is done.
Definition at line 132 of file SubstructLibrary.h.
References RDKit::EnumerationStrategyPickler::pickle().
|
inlineoverridevirtual |
Add a new molecule to the substructure search library Returns the molecules index in the library
Implements RDKit::MolHolderBase.
Definition at line 124 of file SubstructLibrary.h.
References RDKit::MolPickler::pickleMol().
|
inlineoverridevirtual |
Implements RDKit::MolHolderBase.
Definition at line 137 of file SubstructLibrary.h.
References RDKit::MolPickler::molFromPickle().
|
inline |
Definition at line 150 of file SubstructLibrary.h.
|
inline |
Definition at line 151 of file SubstructLibrary.h.
|
inlineoverridevirtual |
Get the current library size.
Implements RDKit::MolHolderBase.
Definition at line 146 of file SubstructLibrary.h.