ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/FAS/src/fasresidue.h
Revision: 88
Committed: Mon Aug 19 20:49:08 2002 UTC (21 years, 10 months ago) by tim
Content type: text/plain
File size: 2375 byte(s)
Log Message:
*** empty log message ***

File Contents

# Content
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 #ifndef FASRESIDUE_H
21 #define FASRESIDUE_H
22 #include <iostream>
23 #include <vector>
24
25 using namespace std;
26
27 class TFASModel;
28 class TFASMolecule;
29 class TFASAtom;
30 class TFASBond;
31
32 namespace TResType
33 {
34
35
36
37 }
38
39 class TFASResidue
40 {
41 protected:
42 unsigned int _index;
43 unsigned int _resid;
44 vector<TFASAtom *> _atomList;
45 TFASMolecule *_mol;
46 TFASModel * _model;
47
48 void Clear();
49
50 public:
51 TFASResidue();
52 TFASResidue(const unsigned int index);
53 TFASResidue(const TFASResidue &residue);
54 ~TFASResidue();
55
56 TFASResidue &operator =(const TFASResidue &res);
57
58 //methods to set residue information
59 void SetIndex(unsigned int index) { _index = index;}
60 void SetResid(unsigned int resid) { _resid = resid;}
61 void SetMol(TFASMolecule *mol) { _mol=mol;}
62 void SetModel(TFASModel *model) { _model=model;}
63
64 //methods to get residue information
65 unsigned int GetIndex() const { return _index;}
66 unsigned int GetResid() const { return _resid;}
67 TFASMolecule *GetMol() const { return _mol;}
68 TFASModel *GetModel() const { return _model;}
69 vector<TFASAtom *> GetAtoms() const { return _atomList;}
70
71 //methods to manipulate atoms
72 TFASAtom *BeginAtom(vector<TFASAtom *>::iterator &i);
73 TFASAtom *NextAtom(vector<TFASAtom *>::iterator &i);
74 void AddAtom(TFASAtom *atom);
75 void DeleteAtom(TFASAtom *atom);
76
77 //methods to manipulate bonds
78 vector<TFASBond *> GetBonds(bool exterior = false);
79 vector<TFASBond *> GetBondsByType(int bondType);
80
81 };
82
83 #endif