![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Data structure providing a hierarchical view on biological macromolecules. More...
#include <HierarchyView.hpp>
Public Types | |
| typedef std::shared_ptr< HierarchyView > | SharedPointer |
A reference-counted smart pointer [SHPTR] for dynamically allocated HierarchyView instances. More... | |
| typedef boost::indirect_iterator< ModelList::const_iterator, const HierarchyViewModel > | ConstModelIterator |
| A constant iterator over the biological macromolecule models. More... | |
Public Member Functions | |
| HierarchyView () | |
Constructs an empty HierarchyView instance. More... | |
| HierarchyView (const Chem::MolecularGraph &molgraph) | |
Constructs a HierarchyView instance for the molecular graph molgraph. More... | |
| const ResidueList & | getResidues () const |
| Returns the flat list of all residues across all models of the biological macromolecule. More... | |
| std::size_t | getNumModels () const |
| Returns the number of stored models. More... | |
| const HierarchyViewModel & | getModel (std::size_t idx) const |
| Returns the model at index idx. More... | |
| bool | hasModelWithNumber (std::size_t num) const |
| Tells whether a model with number num exists. More... | |
| const HierarchyViewModel & | getModelByNumber (std::size_t num) const |
| Returns the model identified by model number num. More... | |
| ConstModelIterator | getModelsBegin () const |
| Returns a constant iterator pointing to the first model. More... | |
| ConstModelIterator | getModelsEnd () const |
| Returns a constant iterator pointing one past the last model. More... | |
| ConstModelIterator | begin () const |
| Returns a constant iterator pointing to the first model (range-based for support). More... | |
| ConstModelIterator | end () const |
| Returns a constant iterator pointing one past the last model (range-based for support). More... | |
| void | build (const Chem::MolecularGraph &molgraph) |
| Build the hierarchy view for the biological macromolecule represented by molgraph. More... | |
Data structure providing a hierarchical view on biological macromolecules.
| typedef std::shared_ptr<HierarchyView> CDPL::Biomol::HierarchyView::SharedPointer |
A reference-counted smart pointer [SHPTR] for dynamically allocated HierarchyView instances.
| typedef boost::indirect_iterator<ModelList::const_iterator, const HierarchyViewModel> CDPL::Biomol::HierarchyView::ConstModelIterator |
A constant iterator over the biological macromolecule models.
| CDPL::Biomol::HierarchyView::HierarchyView | ( | ) |
Constructs an empty HierarchyView instance.
| CDPL::Biomol::HierarchyView::HierarchyView | ( | const Chem::MolecularGraph & | molgraph | ) |
Constructs a HierarchyView instance for the molecular graph molgraph.
| molgraph | The molecular graph for which to build the hierarchy view. |
| const ResidueList& CDPL::Biomol::HierarchyView::getResidues | ( | ) | const |
Returns the flat list of all residues across all models of the biological macromolecule.
const reference to the residue list. | std::size_t CDPL::Biomol::HierarchyView::getNumModels | ( | ) | const |
Returns the number of stored models.
| const HierarchyViewModel& CDPL::Biomol::HierarchyView::getModel | ( | std::size_t | idx | ) | const |
Returns the model at index idx.
| idx | The zero-based model index. |
const reference to the model. | Base::IndexError | if the number of models is zero or idx is not in the range [0, getNumModels() - 1]. |
| bool CDPL::Biomol::HierarchyView::hasModelWithNumber | ( | std::size_t | num | ) | const |
Tells whether a model with number num exists.
| num | The PDB model number. |
true if such a model exists, and false otherwise. | const HierarchyViewModel& CDPL::Biomol::HierarchyView::getModelByNumber | ( | std::size_t | num | ) | const |
Returns the model identified by model number num.
| num | The PDB model number. |
const reference to the model. | Base::ItemNotFound | if no model with the requested number exists. |
| ConstModelIterator CDPL::Biomol::HierarchyView::getModelsBegin | ( | ) | const |
Returns a constant iterator pointing to the first model.
| ConstModelIterator CDPL::Biomol::HierarchyView::getModelsEnd | ( | ) | const |
Returns a constant iterator pointing one past the last model.
| ConstModelIterator CDPL::Biomol::HierarchyView::begin | ( | ) | const |
Returns a constant iterator pointing to the first model (range-based for support).
| ConstModelIterator CDPL::Biomol::HierarchyView::end | ( | ) | const |
Returns a constant iterator pointing one past the last model (range-based for support).
| void CDPL::Biomol::HierarchyView::build | ( | const Chem::MolecularGraph & | molgraph | ) |
Build the hierarchy view for the biological macromolecule represented by molgraph.
| molgraph | The molecular graph of the biological macromolecule for which to build the hierarchy view. |