10 #ifndef _RD_FRAGCATALOGENTRY_H_ 11 #define _RD_FRAGCATALOGENTRY_H_ 30 dp_props =
new Dict();
71 template <
typename T>
void setProp(
const char *key, T &val)
const {
72 dp_props->
setVal(key, val);
75 template <
typename T>
void setProp(
const std::string &key, T &val)
const {
79 void setProp(
const char *key,
int val)
const {
80 dp_props->
setVal(key, val);
83 void setProp(
const std::string &key,
int val)
const {
87 void setProp(
const char *key,
float val)
const {
88 dp_props->
setVal(key, val);
91 void setProp(
const std::string &key,
float val)
const {
95 void setProp(
const std::string &key, std::string &val)
const {
101 dp_props->
getVal(key, res);
103 template <
typename T>
104 void getProp(
const std::string key, T &res)
const {
109 if (!dp_props)
return false;
110 return dp_props->
hasVal(key);
124 void toStream(std::ostream &ss)
const;
135 std::string d_descrip;
137 unsigned int d_order;
Subgraphs::DiscrimTuple getDiscrims() const
void setProp(const char *key, int val) const
bool match(const FragCatalogEntry *other, double tol) const
void clearProp(const std::string &key) const
void setVal(const std::string &what, T &val)
Sets the value associated with a key.
boost::tuples::tuple< boost::uint32_t, boost::uint32_t, boost::uint32_t > DiscrimTuple
used to return path discriminators (three unsigned ints):
void initFromString(const std::string &text)
initializes from a string pickle
std::string Serialize() const
returns a string with a serialized (pickled) representation
void setDescription(std::string val)
std::vector< std::pair< int, int > > MatchVectType
used to return matches from substructure searching, The format is (queryAtomIdx, molAtomIdx) ...
void toStream(std::ostream &ss) const
serializes (pickles) to a stream
void setProp(const char *key, float val) const
pulls in the core RDKit functionality
void setProp(const std::string &key, int val) const
ROMol is a molecule class that is intended to have a fixed topology.
void setProp(const std::string &key, std::string &val) const
void clearVal(const std::string &what)
Clears the value associated with a particular key, removing the key from the dictionary.
bool hasProp(const char *key) const
void getVal(const std::string &what, T &res) const
Gets the value associated with a particular key.
void clearProp(const char *key) const
void setBitId(int bid)
sets our bit Id
unsigned int getNumBonds(bool onlyHeavy=1) const
returns our number of Bonds
const INT_INT_VECT_MAP & getFuncGroupMap() const
void getProp(const char *key, T &res) const
Includes a bunch of functionality for handling Atom and Bond queries.
bool hasVal(const char *what) const
Returns whether or not the dictionary contains a particular key.
Abstract base class to be used to represent an entry in a Catalog.
container for user parameters used to create a fragment catalog
unsigned int getOrder() const
std::map< int, INT_VECT > INT_INT_VECT_MAP
functionality for finding subgraphs and paths in molecules
std::vector< int > PATH_TYPE
bool hasProp(const std::string &key) const
void setProp(const std::string &key, T &val) const
void setProp(const std::string &key, float val) const
void getProp(const std::string key, T &res) const
The Dict class can be used to store objects of arbitrary type keyed by strings.
void setProp(const char *key, T &val) const
std::string getDescription() const
returns a text description of this entry
void initFromStream(std::istream &ss)
initializes from a stream pickle