19 #ifndef OST_CHAIN_VIEW_HH
20 #define OST_CHAIN_VIEW_HH
34 namespace ost {
namespace mol {
50 operator bool()
const {
return this->IsValid(); }
59 bool IsValid()
const {
return data_.get()!=0; }
69 int GetResidueCount()
const;
72 int GetAtomCount()
const;
80 int GetBondCount()
const;
152 int GetResidueIndex(
const ResNum& number)
const;
161 Real GetMass()
const;
176 void RemoveResidues();
202 bool HasAtoms()
const;
209 #endif // OST_CHAIN_VIEW_HH
const ChainViewDataPtr & ViewData() const
Get view data.
base class for ChainHandle and ChainView
bool DLLEXPORT_OST_GEOM operator==(const Line2 &l1, const Line2 &l2)
bool IsValid() const
check validity of handle
bool DLLEXPORT_OST_MOL InSequence(const ResidueHandle &residue_one, const ResidueHandle &residue_two)
Test if two residues are in next in sequence.
DLLEXPORT_OST_IMG_BASE bool operator!=(const ImageHandle &lhs, const ConstImageHandle &rhs)
boost::shared_ptr< ChainImpl > ChainImplPtr
std::vector< ResidueView > ResidueViewList
Three dimensional vector class, using Real precision.
#define DLLEXPORT_OST_MOL
boost::shared_ptr< ChainViewData > ChainViewDataPtr
EntityViewVisitor interface.