29 #ifndef CDPL_PHARM_BASICPHARMACOPHORE_HPP
30 #define CDPL_PHARM_BASICPHARMACOPHORE_HPP
34 #include <boost/iterator/indirect_iterator.hpp>
56 typedef std::vector<FeaturePointer> FeatureList;
64 typedef boost::indirect_iterator<FeatureList::iterator, BasicFeature>
FeatureIterator;
158 using Pharmacophore::operator=;
171 using Pharmacophore::operator+=;
201 template <
typename T>
202 void doCopy(
const T& pharm);
204 template <
typename T>
205 void doAppend(
const T& pharm);
207 void clearFeatures();
209 void renumberFeatures(std::size_t idx);
217 FeatureList features;
Definition of the class CDPL::Pharm::BasicFeature.
Definition of the class CDPL::Util::ObjectPool.
Definition of the preprocessor macro CDPL_PHARM_API.
#define CDPL_PHARM_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Definition of the class CDPL::Pharm::Pharmacophore.
BasicFeature.
Definition: BasicFeature.hpp:48
BasicPharmacophore.
Definition: BasicPharmacophore.hpp:52
void clear()
Removes all features and clears all properties of the pharmacophore.
ConstFeatureIterator getFeaturesBegin() const
Returns a constant iterator pointing to the beginning of the features.
void copy(const FeatureContainer &cntnr)
Replaces the current set of pharmacophore features and properties by a copy of the features and prope...
ConstFeatureIterator getFeaturesEnd() const
Returns a constant iterator pointing to the end of the features.
void remove(const FeatureContainer &cntnr)
Removes the pharmacophore features referenced by the feature container cntnr from this Pharmacophore ...
void removeFeature(std::size_t idx)
Removes the pharmacophore feature at the specified index.
boost::indirect_iterator< FeatureList::iterator, BasicFeature > FeatureIterator
Definition: BasicPharmacophore.hpp:64
BasicPharmacophore(const BasicPharmacophore &pharm)
Constructs a copy of the BasicPharmacophore instance pharm.
BasicPharmacophore(const FeatureContainer &cntnr)
Constructs a BasicPharmacophore instance with copies of the features in the Pharm::FeatureContainer i...
bool containsFeature(const Feature &feature) const
Tells whether the specified feature instance is stored in this pharmacophore.
BasicPharmacophore & operator=(const BasicPharmacophore &pharm)
Replaces the current set of features by a copy of the features and properties of the pharmacophore ph...
BasicFeature & getFeature(std::size_t idx)
Returns a non-const reference to the pharmacophore feature at index idx.
BasicFeature & addFeature()
Creates a new pharmacophore feature and adds it to the pharmacophore.
~BasicPharmacophore()
Destructor.
void copy(const BasicPharmacophore &pharm)
Replaces the current set of features and properties by a copy of the features and properties of the p...
Pharmacophore::SharedPointer clone() const
Creates a copy of the current pharmacophore state.
boost::indirect_iterator< FeatureList::const_iterator, const BasicFeature > ConstFeatureIterator
Definition: BasicPharmacophore.hpp:65
std::size_t getFeatureIndex(const Feature &feature) const
Returns the index of the specified feature in this pharmacophore.
std::size_t getNumFeatures() const
Returns the number of pharmacophore features.
std::shared_ptr< BasicPharmacophore > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated BasicPharmacophore instances.
Definition: BasicPharmacophore.hpp:62
void copy(const Pharmacophore &pharm)
Replaces the current set of pharmacophore features and properties by a copy of the features and prope...
void append(const BasicPharmacophore &pharm)
Extends the current set of features by a copy of the features in the pharmacophore pharm.
BasicPharmacophore & operator+=(const BasicPharmacophore &pharm)
Extends the current set of features by a copy of the features in the pharmacophore pharm.
FeatureIterator removeFeature(const FeatureIterator &it)
Removes the feature specified by the iterator it.
BasicPharmacophore()
Constructs an empty BasicPharmacophore instance.
void append(const FeatureContainer &cntnr)
Extends the current set of pharmacophore features by a copy of the features in the feature container ...
FeatureIterator getFeaturesEnd()
Returns a mutable iterator pointing to the end of the features.
FeatureIterator getFeaturesBegin()
Returns a mutable iterator pointing to the beginning of the features.
BasicPharmacophore(const Pharmacophore &pharm)
Constructs a copy of the Pharm::Pharmacophore instance pharm.
const BasicFeature & getFeature(std::size_t idx) const
Returns a const reference to the pharmacophore feature at index idx.
void append(const Pharmacophore &pharm)
Extends the current set of pharmacophore features by a copy of the features in the pharmacophore phar...
FeatureContainer.
Definition: FeatureContainer.hpp:53
Feature.
Definition: Feature.hpp:48
Pharmacophore.
Definition: Pharmacophore.hpp:48
std::shared_ptr< Pharmacophore > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated Pharmacophore instances.
Definition: Pharmacophore.hpp:54
std::shared_ptr< ObjectType > SharedObjectPointer
Definition: ObjectPool.hpp:65
constexpr unsigned int T
Specifies Hydrogen (Tritium).
Definition: AtomType.hpp:67
The namespace of the Chemical Data Processing Library.