24 #include <SimpleBond.h>
27 namespace Victor {
namespace Biopool {
41 Bond(
unsigned int mI = 1,
unsigned int mO = 1);
46 virtual const Atom& getInBondRef(
unsigned int n)
const;
47 virtual Atom& getInBondRef(
unsigned int n);
48 virtual const Atom& getOutBondRef(
unsigned int n)
const;
49 virtual Atom& getOutBondRef(
unsigned int n);
51 virtual const Atom& getOpenInBondRef(
unsigned int n = 0)
const;
52 virtual Atom& getOpenInBondRef(
unsigned int n = 0);
53 virtual const Atom& getOpenOutBondRef(
unsigned int n = 0)
const;
54 virtual Atom& getOpenOutBondRef(
unsigned int n = 0);
75 virtual void pUnbindIn(
Bond& c,
bool unbind =
false);
76 virtual void pUnbindOut(
Bond& c,
bool unbind =
false);
79 vector<Atom*> inRef, outRef;
97 Bond::getInBondRef(
unsigned int n) {
98 PRECOND(n < inRef.size(), exception);
103 Bond::getInBondRef(
unsigned int n)
const {
104 PRECOND(n < inRef.size(), exception);
114 Bond::getOutBondRef(
unsigned int n) {
115 PRECOND(n < outRef.size(), exception);
120 Bond::getOutBondRef(
unsigned int n)
const {
121 PRECOND(n < outRef.size(), exception);
unsigned int getMaxInBonds() const
Definition: SimpleBond.h:193
Defines chemical and abstract bonds between objects which are compositions of atoms.
Definition: Bond.h:37
virtual void bindIn(Atom &_this, Bond &c, Atom &_other)
Definition: Bond.cc:92
Defines chemical and abstract bonds between objects. eg.: covalent bonds. Attention: copy() strips or...
Definition: SimpleBond.h:39
virtual void unbindOut(Bond &c)
Definition: Bond.cc:150
unsigned int sizeInBonds() const
Definition: SimpleBond.h:146
virtual void bindOut(Atom &_this, Bond &c, Atom &_other)
Definition: Bond.cc:116
unsigned int sizeOutBonds() const
Definition: SimpleBond.h:153
void copy(const Bond &orig)
Definition: Bond.cc:232
unsigned int sizeOpenInBonds() const
Definition: Bond.h:131
unsigned int sizeOpenOutBonds() const
Definition: Bond.h:140
Implements a simple atom type.
Definition: Atom.h:39
virtual void unbindIn(Bond &c)
Definition: Bond.cc:139
unsigned int getMaxOutBonds() const
Definition: SimpleBond.h:200