10 #ifndef __CHEMICALFEATUREFACTORY_H_02122004_1545__ 11 #define __CHEMICALFEATUREFACTORY_H_02122004_1545__ 15 #include <boost/shared_ptr.hpp> 19 typedef boost::shared_ptr<MolChemicalFeature>
FeatSPtr;
31 return d_featDefs.begin();
35 return d_featDefs.end();
41 return d_featDefs.begin();
44 MolChemicalFeatureDef::CollectionType::const_iterator
endFeatureDefs()
const {
45 return d_featDefs.end();
50 MolChemicalFeatureDef::CollectionType::value_type featDef) {
51 d_featDefs.push_back(featDef);
61 const char *includeOnly =
"")
const;
FeatSPtrList getFeaturesForMol(const ROMol &mol, const char *includeOnly="") const
returns a list of features on the molecule
MolChemicalFeatureDef::CollectionType::iterator beginFeatureDefs()
returns an iterator referring to the first feature definition
The class for finding chemical features in molecules.
MolChemicalFeatureDef::CollectionType::iterator endFeatureDefs()
returns an iterator referring to the end of the feature definitions
FeatSPtrList::iterator FeatSPtrList_I
ROMol is a molecule class that is intended to have a fixed topology.
void addFeatureDef(MolChemicalFeatureDef::CollectionType::value_type featDef)
appends a feature definition to the collection of features defs.
std::list< boost::shared_ptr< MolChemicalFeatureDef > > CollectionType
MolChemicalFeatureDef::CollectionType::const_iterator beginFeatureDefs() const
returns a const_iterator referring to the first feature definition
MolChemicalFeatureFactory * buildFeatureFactory(std::istream &inStream)
constructs a MolChemicalFeatureFactory from the data in a stream
std::list< FeatSPtr > FeatSPtrList
int getNumFeatureDefs() const
returns the number of feature definitions
boost::shared_ptr< MolChemicalFeature > FeatSPtr
MolChemicalFeatureDef::CollectionType::const_iterator endFeatureDefs() const
returns a const_iterator referring to the end of the feature definitions