11#ifndef _RD_FRAGCATALOGENTRY_H_
12#define _RD_FRAGCATALOGENTRY_H_
32 dp_props =
new Dict();
62 unsigned int getOrder()
const {
return dp_mol->getNumBonds(); }
71 void setProp(
const std::string_view &key, T &val)
const {
72 dp_props->setVal(key, val);
75 void setProp(
const std::string_view &key,
int val)
const {
76 dp_props->setVal(key, val);
79 void setProp(
const std::string_view &key,
float val)
const {
80 dp_props->setVal(key, val);
83 void setProp(
const std::string_view &key, std::string &val)
const {
84 dp_props->setVal(key, val);
88 void getProp(
const std::string_view &key, T &res)
const {
89 dp_props->getVal(key, res);
92 bool hasProp(
const std::string_view &key)
const {
96 return dp_props->hasVal(key);
99 void clearProp(
const std::string_view &key)
const { dp_props->clearVal(key); }
107 ROMol *dp_mol{
nullptr};
110 std::string d_descrip;
112 unsigned int d_order{0};
117 INT_INT_VECT_MAP d_aToFmap;
pulls in the core RDKit functionality
functionality for finding subgraphs and paths in molecules
Abstract base class to be used to represent an entry in a Catalog.
void setBitId(int bid)
sets our bit Id
The Dict class can be used to store objects of arbitrary type keyed by strings.
container for user parameters used to create a fragment catalog
void setDescription(const FragCatParams *params)
const INT_INT_VECT_MAP & getFuncGroupMap() const
~FragCatalogEntry() override
bool match(const FragCatalogEntry *other, double tol) const
void initFromStream(std::istream &ss) override
initializes from a stream pickle
void getProp(const std::string_view &key, T &res) const
void setDescription(const std::string &val)
Subgraphs::DiscrimTuple getDiscrims() const
void clearProp(const std::string_view &key) const
FragCatalogEntry(const ROMol *omol, const PATH_TYPE &path, const MatchVectType &aidToFid)
FragCatalogEntry(const std::string &pickle)
std::string Serialize() const override
returns a string with a serialized (pickled) representation
void setProp(const std::string_view &key, float val) const
unsigned int getOrder() const
void setProp(const std::string_view &key, int val) const
void initFromString(const std::string &text) override
initializes from a string pickle
std::string getDescription() const override
returns a text description of this entry
void setProp(const std::string_view &key, std::string &val) const
void toStream(std::ostream &ss) const override
serializes (pickles) to a stream
bool hasProp(const std::string_view &key) const
void setProp(const std::string_view &key, T &val) const
#define RDKIT_FRAGCATALOG_EXPORT
std::tuple< std::uint32_t, std::uint32_t, std::uint32_t > DiscrimTuple
used to return path discriminators (three unsigned ints):
std::vector< std::pair< int, int > > MatchVectType
used to return matches from substructure searching, The format is (queryAtomIdx, molAtomIdx)
std::map< int, INT_VECT > INT_INT_VECT_MAP
std::vector< int > PATH_TYPE