MSpin-JCoupling  2.1
bond.h
1 /***************************************************************************
2  bond.h - description
3  -------------------
4  author : Armando Navarro-Vazquez
5  email : armando.deus@gmail.com
6  ***************************************************************************/
7 
8 /***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 
17 #ifndef MAGNES_BOND_H
18 #define MAGNES_BOND_H
19 
20 #include <vector>
21 #include <cstddef>
22 
23 #include "coreexport.h"
24 
25 namespace magnes
26 {
31 class MAGNES_CORE_API Bond
32 {
33  public:
35  enum order { SINGLE=1, DOUBLE, TRIPLE, AROMATIC, };
36  enum stereo { NOSTEREO=0,UP,DOWN, RUP, RDOWN, WIGGLE };
38  Bond ( size_t i, size_t j, order e= SINGLE );
40  order& Order() { return m_order; }
42  const order& Order() const { return m_order; }
44  stereo& Stereo() { return m_stereo; }
46  const stereo& Stereo() const { return m_stereo; }
48  const size_t& I() const { return m_i; }
50  const size_t& J() const { return m_j; }
52  friend bool operator == ( const Bond& a,const Bond& b ) { return ( ( a.m_i == b.m_i ) && ( a.m_j == b.m_j ) ); }
53  private:
54  size_t m_i;
55  size_t m_j;
56  order m_order;
57  stereo m_stereo;
58 };
59 
60 }
61 
62 #endif
63 
const size_t & I() const
Definition: bond.h:48
the global magnes namespace
Definition: ccchequation.h:38
stereo & Stereo()
Definition: bond.h:44
const stereo & Stereo() const
Definition: bond.h:46
order & Order()
Definition: bond.h:40
MAGNES_CORE_API bool operator==(const ChemicalShift &, const ChemicalShift &)
order
Definition: bond.h:35
const order & Order() const
Definition: bond.h:42
const size_t & J() const
Definition: bond.h:50
representation of a chemical bond
Definition: bond.h:31