|
MSpin-JCoupling
2.1
|
representation of a chemical bond More...
#include <bond.h>
Public Types | |
| enum | order { SINGLE =1, DOUBLE, TRIPLE, AROMATIC } |
| enum | stereo { NOSTEREO =0, UP, DOWN, RUP, RDOWN, WIGGLE } |
Public Member Functions | |
| Bond (size_t i, size_t j, order e=SINGLE) | |
| order & | Order () |
| const order & | Order () const |
| stereo & | Stereo () |
| const stereo & | Stereo () const |
| const size_t & | I () const |
| const size_t & | J () const |
Friends | |
| bool | operator== (const Bond &a, const Bond &b) |
representation of a chemical bond
This structure represents a chemical bond as the indexes of the atoms being connected and the bond order between them, each bond is stored internally as a coupled of indexes i and j being i < j. Therefore a the 1-4 bond can be built as Bond(1,4) or Bond(4,1). For bond comparation algorithms only the indexes and not the order matters.
| enum magnes::Bond::order |
The order of the bond
| magnes::Bond::Bond | ( | size_t | i, |
| size_t | j, | ||
| order | e = SINGLE |
||
| ) |
Construct a bond between atoms
| i | and |
| h | with order |
| e |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
1.8.12