Chemical Data Processing Library C++ API - Version 1.4.0
Pharmacophore.hpp
Go to the documentation of this file.
1 /*
2  * Pharmacophore.hpp
3  *
4  * This file is part of the Chemical Data Processing Toolkit
5  *
6  * Copyright (C) 2003 Thomas Seidel <thomas.seidel@univie.ac.at>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; see the file COPYING. If not, write to
20  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23 
29 #ifndef CDPL_PHARM_PHARMACOPHORE_HPP
30 #define CDPL_PHARM_PHARMACOPHORE_HPP
31 
32 #include <memory>
33 
34 #include "CDPL/Pharm/APIPrefix.hpp"
36 
37 
38 namespace CDPL
39 {
40 
41  namespace Pharm
42  {
43 
52  {
53 
54  public:
58  typedef std::shared_ptr<Pharmacophore> SharedPointer;
59 
64 
69 
73  virtual ~Pharmacophore() {}
74 
77 
81  virtual void clear() = 0;
82 
87  virtual Feature& addFeature() = 0;
88 
94  virtual void removeFeature(std::size_t idx) = 0;
95 
103 
109  virtual void copy(const Pharmacophore& pharm) = 0;
110 
116  virtual void copy(const FeatureContainer& cntnr) = 0;
117 
124  virtual void append(const Pharmacophore& pharm) = 0;
125 
132  virtual void append(const FeatureContainer& cntnr) = 0;
133 
139  virtual void remove(const FeatureContainer& cntnr) = 0;
140 
145  virtual SharedPointer clone() const = 0;
146 
157 
168 
179 
190 
200  };
201  } // namespace Pharm
202 } // namespace CDPL
203 
204 #endif // CDPL_PHARM_PHARMACOPHORE_HPP
Definition of class CDPL::Pharm::FeatureContainer.
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.
Common interface for data structures that support a random access to stored Pharm::Feature instances.
Definition: FeatureContainer.hpp:57
ConstFeatureIterator getFeaturesEnd() const
Returns a constant iterator pointing to the end of the stored const Pharm::Feature objects.
ConstFeatureIterator getFeaturesBegin() const
Returns a constant iterator pointing to the beginning of the stored const Pharm::Feature objects.
std::shared_ptr< FeatureContainer > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated FeatureContainer instances.
Definition: FeatureContainer.hpp:60
Abstract base class representing a single pharmacophore feature.
Definition: Feature.hpp:48
Abstract base class for mutable containers of Pharm::Feature instances representing a pharmacophore m...
Definition: Pharmacophore.hpp:52
virtual void copy(const FeatureContainer &cntnr)=0
Replaces the current set of pharmacophore features and properties by a copy of the features and prope...
Pharmacophore & operator-=(const FeatureContainer &cntnr)
Removes the pharmacophore features referenced by the feature container cntnr from this Pharmacophore ...
Pharmacophore & operator+=(const FeatureContainer &cntnr)
Extends the current set of pharmacophore features by a copy of the features in the feature container ...
virtual Feature & addFeature()=0
Creates a new pharmacophore feature and adds it to the pharmacophore.
std::shared_ptr< Pharmacophore > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated Pharmacophore instances.
Definition: Pharmacophore.hpp:58
virtual void append(const Pharmacophore &pharm)=0
Extends the current set of features by a copy of the features in the pharmacophore pharm.
FeatureContainer::FeatureIterator FeatureIterator
A mutable random access iterator used to iterate over the stored Pharm::Feature objects.
Definition: Pharmacophore.hpp:68
Pharmacophore & operator=(const FeatureContainer &cntnr)
Replaces the current set of pharmacophore features and properties by a copy of the features and prope...
virtual ~Pharmacophore()
Virtual destructor.
Definition: Pharmacophore.hpp:73
virtual SharedPointer clone() const =0
Creates a deep copy of the current pharmacophore state.
virtual void clear()=0
Removes all features and clears all properties of the pharmacophore.
virtual void append(const FeatureContainer &cntnr)=0
Extends the current set of pharmacophore features by a copy of the features in the feature container ...
FeatureIterator removeFeature(const FeatureIterator &it)
Removes the pharmacophore feature specified by the iterator it.
virtual void copy(const Pharmacophore &pharm)=0
Replaces the current set of pharmacophore features and properties by a copy of the features and prope...
FeatureContainer::ConstFeatureIterator ConstFeatureIterator
A constant random access iterator used to iterate over the stored const Pharm::Feature objects.
Definition: Pharmacophore.hpp:63
virtual void removeFeature(std::size_t idx)=0
Removes the pharmacophore feature at the specified index.
virtual void remove(const FeatureContainer &cntnr)=0
Removes the pharmacophore features referenced by the feature container cntnr from this instance.
Pharmacophore & operator=(const Pharmacophore &pharm)
Replaces the current set of pharmacophore features and properties by a copy of the features and prope...
Pharmacophore & operator+=(const Pharmacophore &pharm)
Extends the current set of pharmacophore features by a copy of the features in the pharmacophore phar...
STL compatible random access iterator for container elements accessible by index.
Definition: IndexedElementIterator.hpp:125
The namespace of the Chemical Data Processing Library.