Go to the documentation of this file.
5 #ifndef BALL_KERNEL_BOND_H
6 #define BALL_KERNEL_BOND_H
8 #ifndef BALL_CONCEPT_PROPERTY_H
12 #ifndef BALL_CONCEPT_COMPOSITE_H
16 #ifndef BALL_CONCEPT_ATOMCONTAINER_H
20 #define BALL_BOND_DEFAULT_FIRST_ATOM 0
21 #define BALL_BOND_DEFAULT_SECOND_ATOM 0
22 #define BALL_BOND_DEFAULT_NAME ""
23 #define BALL_BOND_DEFAULT_ORDER ORDER__UNKNOWN
24 #define BALL_BOND_DEFAULT_TYPE TYPE__UNKNOWN
73 : public Exception::GeneralException
107 ORDER__QUADRUPLE = 4,
113 NUMBER_OF_BOND_ORDERS
129 TYPE__DISULPHIDE_BRIDGE = 3,
131 TYPE__SALT_BRIDGE = 4,
436 virtual void dump(std::ostream& s = std::cout,
Size depth = 0)
const;
463 void arrangeBonds_();
467 # ifndef BALL_NO_INLINE_FUNCTIONS
468 # include <BALL/KERNEL/bond.iC>
472 #endif // BALL_KERNEL_BOND_H
Atom * getSecondAtom()
Return a pointer to the second atom.
void setFirstAtom(Atom *atom)
const Atom * getBoundAtom(const Atom &atom) const
void setName(const String &name)
Assign the atom name.
BALL_EXPORT bool operator!=(const String &s1, const String &s2)
void setSecondAtom(Atom *atom)
virtual void dump(std::ostream &s=std::cout, Size depth=0) const
#define BALL_CREATE_DEEP(name)
#define BALL_BOND_DEFAULT_TYPE
Bond(const Bond &bond, bool deep=true)
Bond(const String &name, Atom &first, Atom &second, Order order=BALL_BOND_DEFAULT_ORDER, Type type=BALL_BOND_DEFAULT_TYPE)
#define BALL_BOND_DEFAULT_ORDER
void setType(Type bond_type)
Set the bond type.
Atom * getBoundAtom(const Atom &atom)
Order getOrder() const
Return the bond order.
bool isIntraBondOf(const AtomContainer &atom_container) const
const Atom * getFirstAtom() const
Return a pointer to the first atom.
void persistentWrite(PersistenceManager &pm, const char *name=0) const
void persistentRead(PersistenceManager &pm)
const Atom * getSecondAtom() const
Return a pointer to the second atom.
BALL_EXPORT bool operator==(const String &s1, const String &s2)
Type getType() const
Return the bond type.
void setOrder(Order bond_order)
Assign the bond order.
bool isInterBondOf(const AtomContainer &atom_container) const
Atom * getPartner(const Atom &atom) const
bool isBondOf(const Atom &atom) const
NotBound(const char *file, int line)
Atom * getFirstAtom()
Return a pointer to the first atom.
static Bond * createBond(Bond &bond, Atom &first, Atom &second)
const String & getName() const
Return the atom name.
virtual bool isValid() const