29 #ifndef CDPL_BIOMOL_HIERARCHYVIEWMODEL_HPP
30 #define CDPL_BIOMOL_HIERARCHYVIEWMODEL_HPP
35 #include <unordered_map>
38 #include <boost/iterator/indirect_iterator.hpp>
61 typedef std::shared_ptr<HierarchyViewChain> ChainPtr;
62 typedef std::vector<ChainPtr> ChainList;
66 typedef boost::indirect_iterator<ChainList::const_iterator, const HierarchyViewChain>
ConstChainIterator;
125 void initChainList()
const;
127 typedef std::unordered_map<std::string, ChainPtr> IDToChainMap;
129 mutable ChainList chains;
130 mutable IDToChainMap idToChainMap;
131 mutable bool initChains;
Definition of the preprocessor macro CDPL_BIOMOL_API.
#define CDPL_BIOMOL_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Definition of class CDPL::Biomol::HierarchyViewChain.
Data structure for the representation of biological macromolecule chains.
Definition: HierarchyViewChain.hpp:56
Data structure for the representation of individual biological macromolecule models.
Definition: HierarchyViewModel.hpp:57
const HierarchyViewChain & getChainByID(const std::string &id) const
Returns the chain identified by the given PDB chain ID.
ConstChainIterator getChainsEnd() const
Returns a constant iterator pointing one past the last chain.
std::size_t getNumChains() const
Returns the number of chains in this model.
ConstChainIterator end() const
Returns a constant iterator pointing one past the last chain (range-based for support).
ConstChainIterator begin() const
Returns a constant iterator pointing to the first chain (range-based for support).
boost::indirect_iterator< ChainList::const_iterator, const HierarchyViewChain > ConstChainIterator
A constant iterator over the contained chains.
Definition: HierarchyViewModel.hpp:66
bool hasChainWithID(const std::string &id) const
Tells whether this model contains a chain with the given PDB chain ID.
const HierarchyViewChain & getChain(std::size_t idx) const
Returns the chain at index idx.
ConstChainIterator getChainsBegin() const
Returns a constant iterator pointing to the first chain.
Abstract base class for nodes of the Biomol::HierarchyView tree (models, chains, residues).
Definition: HierarchyViewNode.hpp:48
Data structure providing a hierarchical view on biological macromolecules.
Definition: HierarchyView.hpp:55
The namespace of the Chemical Data Processing Library.