Data structure representing a single entry of a conformer generation fragment library.
More...
#include <FragmentLibraryEntry.hpp>
Data structure representing a single entry of a conformer generation fragment library.
Each entry is identified by the hash code of the associated ConfGen::CanonicalFragment and stores the canonical SMILES string plus a list of ConformerData instances (one per stored conformer).
◆ SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated FragmentLibraryEntry instances.
◆ ConstConformerIterator
A constant iterator over the stored conformers (dereferences to const ConformerData).
◆ ConformerIterator
A mutable iterator over the stored conformers (dereferences to ConformerData).
◆ FragmentLibraryEntry()
| CDPL::ConfGen::FragmentLibraryEntry::FragmentLibraryEntry |
( |
| ) |
|
Constructs an empty FragmentLibraryEntry instance.
◆ setHashCode()
| void CDPL::ConfGen::FragmentLibraryEntry::setHashCode |
( |
std::uint64_t |
hash_code | ) |
|
Sets the hash code identifying the entry within the FragmentLibrary.
- Parameters
-
| hash_code | The new hash code. |
◆ getHashCode()
| std::uint64_t CDPL::ConfGen::FragmentLibraryEntry::getHashCode |
( |
| ) |
const |
Returns the hash code identifying the entry within the FragmentLibrary.
- Returns
- The hash code.
◆ setSMILES()
| void CDPL::ConfGen::FragmentLibraryEntry::setSMILES |
( |
const std::string & |
smiles | ) |
|
Sets the canonical SMILES string describing the stored fragment.
- Parameters
-
| smiles | The new SMILES string. |
◆ getSMILES()
| const std::string& CDPL::ConfGen::FragmentLibraryEntry::getSMILES |
( |
| ) |
const |
Returns the canonical SMILES string describing the stored fragment.
- Returns
- A
const reference to the SMILES string.
◆ clearConformers()
| void CDPL::ConfGen::FragmentLibraryEntry::clearConformers |
( |
| ) |
|
Removes all stored conformers from the entry.
◆ getNumAtoms()
| std::size_t CDPL::ConfGen::FragmentLibraryEntry::getNumAtoms |
( |
| ) |
const |
Returns the number of atoms of the stored fragment.
- Returns
- The number of atoms (zero if no conformer has been added yet).
◆ getNumConformers()
| std::size_t CDPL::ConfGen::FragmentLibraryEntry::getNumConformers |
( |
| ) |
const |
Returns the number of stored conformers.
- Returns
- The number of stored conformers.
◆ addConformer()
Appends the given conformer to the entry.
- Parameters
-
| conf_data | A smart pointer to the conformer data to add. |
◆ getConformer() [1/2]
| const ConformerData& CDPL::ConfGen::FragmentLibraryEntry::getConformer |
( |
std::size_t |
idx | ) |
const |
Returns a const reference to the stored conformer at index idx.
- Parameters
-
| idx | The zero-based conformer index. |
- Returns
- A
const reference to the conformer.
- Exceptions
-
◆ getConformer() [2/2]
| ConformerData& CDPL::ConfGen::FragmentLibraryEntry::getConformer |
( |
std::size_t |
idx | ) |
|
Returns a reference to the stored conformer at index idx.
- Parameters
-
| idx | The zero-based conformer index. |
- Returns
- A reference to the conformer.
- Exceptions
-
◆ getConformersBegin() [1/2]
Returns a constant iterator pointing to the first stored conformer.
- Returns
- A constant iterator pointing to the first conformer.
◆ getConformersEnd() [1/2]
Returns a constant iterator pointing one past the last stored conformer.
- Returns
- A constant iterator pointing one past the last conformer.
◆ getConformersBegin() [2/2]
Returns a mutable iterator pointing to the first stored conformer.
- Returns
- A mutable iterator pointing to the first conformer.
◆ getConformersEnd() [2/2]
Returns a mutable iterator pointing one past the last stored conformer.
- Returns
- A mutable iterator pointing one past the last conformer.
◆ begin() [1/2]
Returns a constant iterator pointing to the first stored conformer (range-based for support).
- Returns
- A constant iterator pointing to the first conformer.
◆ end() [1/2]
Returns a constant iterator pointing one past the last stored conformer (range-based for support).
- Returns
- A constant iterator pointing one past the last conformer.
◆ begin() [2/2]
Returns a mutable iterator pointing to the first stored conformer (range-based for support).
- Returns
- A mutable iterator pointing to the first conformer.
◆ end() [2/2]
Returns a mutable iterator pointing one past the last stored conformer (range-based for support).
- Returns
- A mutable iterator pointing one past the last conformer.
◆ getData()
Returns a const reference to the underlying array of conformer-data smart pointers.
- Returns
- A
const reference to the conformer-data array.
The documentation for this class was generated from the following file: