Defines chemical and abstract bonds between objects. eg.: covalent bonds. Attention: copy() strips orig from its SimpleBonds and attaches them to the new SimpleBond.
More...
Defines chemical and abstract bonds between objects. eg.: covalent bonds. Attention: copy() strips orig from its SimpleBonds and attaches them to the new SimpleBond.
SimpleBond |
( |
unsigned int |
mI = 1 , |
|
|
unsigned int |
mO = 4 |
|
) |
| |
Basic constructor
- Parameters
-
mI,maximum | in bonds |
mO,maximum | out bonds |
Sets and in-bond from this to c.
Reimplemented in Atom.
Sets and out-bond from this to c
Reimplemented in Atom.
Copy operator. Attention: copy() strips orig from its bonds and attaches them to the new bond.
const SimpleBond & getInBond |
( |
unsigned int |
n | ) |
const |
|
virtual |
unsigned int getMaxInBonds |
( |
| ) |
const |
unsigned int getMaxOutBonds |
( |
| ) |
const |
Get maximum of out-bonds.
const SimpleBond & getOutBond |
( |
unsigned int |
n | ) |
const |
|
virtual |
Is c bonded to this ?
Reimplemented in SideChain.
Checks if this is indirectly bonded to c. (ie. A to C if A bond B and B bond C)
bool isIndirectInBond |
( |
const SimpleBond & |
c | ) |
const |
Checks if this is indirectly bonded to c. (ie. A to C if A bond B and B bond C)
bool isIndirectOutBond |
( |
const SimpleBond & |
c | ) |
const |
Checks if this is indirectly bonded to c. (ie. A to C if A bond B and B bond C)
Is c out-bonded to this ?
Checks if this is torsion bond to c. (ie. A to D if A indirect bond C and C bond D)
Private method to find the matching in-bond from c to this to remove.
Private method to find the matching out-bond from c to this to remove.
void setMaxInBonds |
( |
unsigned int |
m | ) |
|
Sets maximum of in-bonds.
void setMaxOutBonds |
( |
unsigned int |
m | ) |
|
Sets maximum of out-bonds.
void setType |
( |
string |
_name | ) |
|
|
virtual |
unsigned int sizeInBonds |
( |
| ) |
const |
How many in-bonds are there ?
unsigned int sizeOutBonds |
( |
| ) |
const |
How many out-bonds are there ?
Removes an in-bond from this to c.
Reimplemented in Atom.
Removes an out-bond from this to c.
Reimplemented in Atom.
The documentation for this class was generated from the following files: