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;
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 the class CDPL::Biomol::HierarchyViewChain.
HierarchyViewChain.
Definition: HierarchyViewChain.hpp:55
HierarchyViewModel.
Definition: HierarchyViewModel.hpp:56
const HierarchyViewChain & getChainByID(const std::string &id) const
ConstChainIterator getChainsEnd() const
std::size_t getNumChains() const
ConstChainIterator end() const
ConstChainIterator begin() const
boost::indirect_iterator< ChainList::const_iterator, const HierarchyViewChain > ConstChainIterator
Definition: HierarchyViewModel.hpp:64
bool hasChainWithID(const std::string &id) const
const HierarchyViewChain & getChain(std::size_t idx) const
ConstChainIterator getChainsBegin() const
HierarchyViewNode.
Definition: HierarchyViewNode.hpp:48
A data structure allowing a hierarchical view on biological macromolecules.
Definition: HierarchyView.hpp:55
The namespace of the Chemical Data Processing Library.