19 #ifndef OST_CHAIN_BASE_HH
20 #define OST_CHAIN_BASE_HH
28 namespace ost {
namespace mol {
49 operator bool()
const {
return this->IsValid(); }
58 bool IsValid()
const {
return Impl().get()!=0; }
71 String GetDescription()
const;
81 bool IsPolymer()
const;
84 bool IsPolysaccharide()
const;
87 bool IsPolypeptide()
const;
90 bool IsPolynucleotide()
const;
100 void CheckValidity()
const;
106 const ChainBase& chain);
109 #endif // OST_CHAIN_BASE_HH
base class for ChainHandle and ChainView
boost::shared_ptr< ChainImpl > ChainImplPtr
DLLEXPORT_OST_MOL std::ostream & operator<<(std::ostream &os, const AtomBase &atom)
#define DLLEXPORT_OST_MOL
impl::ChainImplPtr & Impl()
base class for the implementation
bool IsValid() const
check validity of handle
const impl::ChainImplPtr & Impl() const
base class for the handler classes