32 #ifndef RDKIT_ENUMERATE_H 33 #define RDKIT_ENUMERATE_H 65 reagentMaxMatchCount(INT_MAX), sanePartialProducts(false) {
69 reagentMaxMatchCount(rhs.reagentMaxMatchCount),
70 sanePartialProducts(rhs.sanePartialProducts) {
140 std::vector<MOL_SPTR_VECT> next();
142 void toStream(std::ostream &ss)
const;
143 void initFromStream(std::istream &ss);
146 #ifdef RDK_USE_BOOST_SERIALIZATION 147 friend class boost::serialization::access;
148 template <
class Archive>
149 void save(Archive &ar,
const unsigned int )
const {
150 ar &boost::serialization::base_object<EnumerateLibraryBase>(*this);
151 size_t sz = m_bbs.size();
155 for (
size_t i = 0; i < m_bbs.size(); ++i) {
156 sz = m_bbs[i].size();
158 for (
size_t j = 0; j < m_bbs[i].size(); ++j) {
164 template <
class Archive>
165 void load(Archive &ar,
const unsigned int ) {
166 ar &boost::serialization::base_object<EnumerateLibraryBase>(*this);
173 for (
size_t i = 0; i < m_bbs.size(); ++i) {
177 for (
size_t j = 0; j < m_bbs[i].size(); ++j) {
181 m_bbs[i][j].reset(mol);
186 BOOST_SERIALIZATION_SPLIT_MEMBER();
This is a class for providing enumeration options that control.
static void pickleMol(const ROMol *mol, std::ostream &ss)
pickles a molecule and sends the results to stream ss
EnumerationTypes::BBS removeNonmatchingReagents(const ChemicalReaction &rxn, EnumerationTypes::BBS bbs, const EnumerationParams ¶ms=EnumerationParams())
Helper function, remove reagents that are incompatible.
RWMol is a molecule class that is intended to be edited.
This is a class for running reactions on sets of reagents.
This is a class for storing and applying general chemical reactions.
EnumerateLibrary(const std::string &s)
const EnumerationTypes::BBS & getReagents() const
Return the reagents used in the library.
std::vector< MOL_SPTR_VECT > BBS
EnumerationParams(const EnumerationParams &rhs)
Base class for enumerating chemical reactions from collections of.
static void molFromPickle(const std::string &pickle, ROMol *mol)
constructs a molecule from a pickle stored in a string
std::ostream & toStream(std::ostream &)
void pickle(const boost::shared_ptr< EnumerationStrategyBase > &enumerator, std::ostream &ss)
pickles a EnumerationStrategy and adds the results to a stream ss
bool EnumerateLibraryCanSerialize()