1 |
/********************************************************************** |
2 |
* Copyright (C) 2002-2003 by Gezelter's Group
|
3 |
*This program is free software; you can redistribute it and/or modify
|
4 |
*it under the terms of the GNU General Public License as published by
|
5 |
*the Free Software Foundation version 2 of the License.
|
6 |
*
|
7 |
*This program is distributed in the hope that it will be useful,
|
8 |
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
9 |
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
10 |
*GNU General Public License for more details.
|
11 |
*
|
12 |
************************************************************************ |
13 |
*Author: Teng Lin Email: tlin@nd.edu |
14 |
*Date: 08/13/2002 Version: 1.0 |
15 |
* |
16 |
************************************************************************ |
17 |
*Description: |
18 |
* |
19 |
***********************************************************************/ |
20 |
#include <iostream> |
21 |
#include <vector> |
22 |
#include "fasbond.h" |
23 |
|
24 |
using namespace std; |
25 |
|
26 |
TFASBond::TFASBond() |
27 |
{ |
28 |
_index = 0; |
29 |
} |
30 |
|
31 |
TFASBond::TFASBond(int index) |
32 |
{ |
33 |
_index = index; |
34 |
} |
35 |
|
36 |
TFASBond::~TFASBond() |
37 |
{ |
38 |
|
39 |
} |
40 |
|
41 |
bool TFASBond::IsHydrogenBond() |
42 |
{ |
43 |
|
44 |
} |
45 |
|
46 |
bool TFASBond::IsExteriorBond() |
47 |
{ |
48 |
|
49 |
} |
50 |
|
51 |
bool TFASBond::IsSingle() |
52 |
{ |
53 |
return _bondOrder == 1; |
54 |
} |
55 |
|
56 |
bool TFASBond::IsDouble() |
57 |
{ |
58 |
return _bondOrder == 2; |
59 |
} |
60 |
|
61 |
bool TFASBond::IsTriple() |
62 |
{ |
63 |
return _bondOrder == 3; |
64 |
} |
65 |
|
66 |
bool TFASBond::IsRotor() |
67 |
{ |
68 |
|
69 |
} |
70 |
|
71 |
bool TFASBond::IsAmide() |
72 |
{ |
73 |
|
74 |
} |
75 |
|
76 |
bool TFASBond::IsPrimaryAmide() |
77 |
{ |
78 |
|
79 |
} |
80 |
|
81 |
bool TFASBond::IsSecondaryAmide() |
82 |
{ |
83 |
|
84 |
} |
85 |
|
86 |
bool TFASBond::IsEster() |
87 |
{ |
88 |
|
89 |
} |
90 |
|
91 |
bool TFASBond::IsCarbonyl() |
92 |
{ |
93 |
|
94 |
} |
95 |
|
96 |
bool TFASBond::IsAromatic() |
97 |
{ |
98 |
|
99 |
} |
100 |
|
101 |
float TFASBond::GetBondLength(int frameNum) |
102 |
{ |
103 |
|
104 |
} |