29 #ifndef CDPL_BIOMOL_HIERARCHYVIEWCHAIN_HPP
30 #define CDPL_BIOMOL_HIERARCHYVIEWCHAIN_HPP
36 #include <boost/iterator/indirect_iterator.hpp>
49 class HierarchyViewModel;
60 typedef std::shared_ptr<HierarchyViewFragment> FragmentPtr;
61 typedef std::vector<FragmentPtr> FragmentList;
65 typedef boost::indirect_iterator<FragmentList::const_iterator, const HierarchyViewFragment>
ConstFragmentIterator;
107 initFragments(true) {}
109 void initFragmentList()
const;
112 mutable FragmentList fragments;
113 mutable bool initFragments;
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.
Declaration of type CDPL::Util::BitSet.
Definition of class CDPL::Biomol::HierarchyViewFragment.
Data structure for the representation of biological macromolecule chains.
Definition: HierarchyViewChain.hpp:56
ConstFragmentIterator getFragmentsBegin() const
Returns a constant iterator pointing to the first chain fragment.
ConstFragmentIterator end() const
Returns a constant iterator pointing one past the last chain fragment (range-based for support).
std::size_t getNumFragments() const
Returns the number of fragments this chain consists of.
boost::indirect_iterator< FragmentList::const_iterator, const HierarchyViewFragment > ConstFragmentIterator
A constant iterator over the chain fragments.
Definition: HierarchyViewChain.hpp:65
ConstFragmentIterator begin() const
Returns a constant iterator pointing to the first chain fragment (range-based for support).
const HierarchyViewFragment & getFragment(std::size_t idx) const
Returns the chain fragment at index idx.
ConstFragmentIterator getFragmentsEnd() const
Returns a constant iterator pointing one past the last chain fragment.
Data structure for the representation of a single contiguous fragment of a biological macromolecule c...
Definition: HierarchyViewFragment.hpp:49
Data structure for the representation of individual biological macromolecule models.
Definition: HierarchyViewModel.hpp:57
Abstract base class for nodes of the Biomol::HierarchyView tree (models, chains, residues).
Definition: HierarchyViewNode.hpp:48
Abstract base class representing a chemical atom and its bonded neighborhood.
Definition: Atom.hpp:57
boost::dynamic_bitset BitSet
Dynamic bitset class.
Definition: BitSet.hpp:46
The namespace of the Chemical Data Processing Library.