19 #ifndef OST_ATOM_VIEW_HH
20 #define OST_ATOM_VIEW_HH
31 namespace ost {
namespace mol {
41 operator bool()
const {
return this->IsValid(); }
base class for AtomHandle and AtomView
void RemoveBondInternal(const BondHandle &bond)
void Apply(EntityViewVisitor &visitor)
AtomViewList GetBondPartners() const
Get all atoms this atom is bonded to.
EntityView GetEntity() const
Shortcut to entity.
ResidueView GetResidue() const
Get parent residue view.
bool operator!=(const AtomView &rhs) const
bool operator==(const AtomView &rhs) const
void Apply(EntityVisitor &visitor)
Apply entity visitor to this atom.
AtomView(const ResidueView &residue_view, const AtomHandle &atom)
unsigned long GetHashCode() const
get unique id
AtomHandle GetHandle() const
Get handle this view points to.
bool AddBond(const BondHandle &bond)
Add bond to atom. If the bond is already present, it will not be added again.
bool IsValid() const
check validity of handle
BondHandleList GetBondList() const
Get bond list Only bonds included in the view will be returned. To get all bonds of the the atom,...
int GetBondCount() const
Get bond count Only bonds included in the view will be counted. To count all bonds of the the atom,...
void RemoveBonds()
Remove all bonds this atom is involved in.
EntityViewVisitor interface.
#define DLLEXPORT_OST_MOL
std::vector< BondHandle > BondHandleList
std::vector< AtomView > AtomViewList
boost::shared_ptr< AtomViewData > AtomViewDataPtr