|
Chemical Data Processing Library C++ API - Version 1.1.1
|
Go to the documentation of this file.
29 #ifndef CDPL_BIOMOL_HIERARCHYVIEWMODEL_HPP
30 #define CDPL_BIOMOL_HIERARCHYVIEWMODEL_HPP
35 #include <unordered_map>
38 #include <boost/iterator/indirect_iterator.hpp>
60 typedef std::shared_ptr<HierarchyViewChain> ChainPtr;
61 typedef std::vector<ChainPtr> ChainList;
64 typedef boost::indirect_iterator<ChainList::const_iterator, const HierarchyViewChain>
ConstChainIterator;
86 void initChainList()
const;
88 typedef std::unordered_map<std::string, ChainPtr> IDToChainMap;
90 mutable ChainList chains;
91 mutable IDToChainMap idToChainMap;
92 mutable bool initChains;
97 #endif // CDPL_BIOMOL_HIERARCHYVIEWMODEL_HPP
HierarchyViewModel.
Definition: HierarchyViewModel.hpp:56
HierarchyViewChain.
Definition: HierarchyViewChain.hpp:55
ConstChainIterator getChainsBegin() const
std::size_t getNumChains() const
const HierarchyViewChain & getChainByID(const std::string &id) const
boost::indirect_iterator< ChainList::const_iterator, const HierarchyViewChain > ConstChainIterator
Definition: HierarchyViewModel.hpp:64
bool hasChainWithID(const std::string &id) const
HierarchyViewNode.
Definition: HierarchyViewNode.hpp:48
const HierarchyViewChain & getChain(std::size_t idx) const
ConstChainIterator getChainsEnd() const
Definition of the preprocessor macro CDPL_BIOMOL_API.
ConstChainIterator end() const
The namespace of the Chemical Data Processing Library.
ConstChainIterator begin() const
A datastructure allowing a hierarchical view on biological macromolecules.
Definition: HierarchyView.hpp:55
Definition of the class CDPL::Biomol::HierarchyViewChain.
#define CDPL_BIOMOL_API
Tells the compiler/linker which classes, functions and variables are part of the library API.