19 #ifndef OST_BOND_HANDLE_HE
20 #define OST_BOND_HANDLE_HE
28 namespace ost {
namespace mol {
45 operator bool()
const;
Three dimensional vector class, using Real precision.
base class for the handler classes
base class for the implementation
const impl::ConnectorImplP & Impl() const
geom::Vec3 GetOriginalPos() const
return midpoint between the two atoms (original coordinates)
geom::Vec3 GetPos() const
return midpoint between the two atoms (transformed coordinates)
void CheckValidity() const
Real GetLength() const
return the length of the bond
void SetBondOrder(unsigned char bo)
set the bond order ((1) single, (2) double, (3) triple, (4) aromatic)
AtomHandle GetOther(const AtomHandle &a) const
get other atom Returns one of the two atoms that does not match the given one.
unsigned char GetBondOrder() const
get the bond order ((1) single, (2) double, (3) triple, (4) aromatic)
bool DLLEXPORT_OST_MOL BondExists(const AtomHandle &a, const AtomHandle &b)
check whether a bond exists, that connects the two atom handles.
AtomHandle GetSecond() const
get second atom In python also available as the property second
bool operator!=(const BondHandle &rhs) const
unsigned long GetHashCode() const
unique bond id
GenericPropContainerImpl * GpImpl()
void Apply(EntityVisitor &v)
entry point for entity visitor
BondHandle(const impl::ConnectorImplP &im)
ctor for internal use, in public interface for convenience purposes
BondHandle()
necessary dummy ctor, creates invalid handle
bool operator==(const BondHandle &rhs) const
bool IsValid() const
check validity of handle
const GenericPropContainerImpl * GpImpl() const
void Apply(EntityViewVisitor &v)
impl::ConnectorImplP & Impl()
EntityViewVisitor interface.
#define DLLEXPORT_OST_MOL
boost::shared_ptr< ConnectorImpl > ConnectorImplP
std::vector< BondHandle > BondHandeList
DLLEXPORT_OST_MOL std::ostream & operator<<(std::ostream &os, const AtomBase &atom)