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 (22 years, 1 month ago) by tim
Content type: text/plain
File size: 2375 byte(s)
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 tim 88 /**********************************************************************
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 tim 66 #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 tim 88 namespace TResType
33     {
34    
35    
36    
37     }
38    
39 tim 66 class TFASResidue
40     {
41     protected:
42     unsigned int _index;
43     unsigned int _resid;
44     vector<TFASAtom *> _atomList;
45     TFASMolecule *_mol;
46     TFASModel * _model;
47 tim 88
48     void Clear();
49    
50 tim 66 public:
51     TFASResidue();
52 tim 88 TFASResidue(const unsigned int index);
53     TFASResidue(const TFASResidue &residue);
54 tim 66 ~TFASResidue();
55 tim 88
56     TFASResidue &operator =(const TFASResidue &res);
57    
58     //methods to set residue information
59 tim 66 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 tim 88
64 tim 66 //methods to get residue information
65 tim 88 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 tim 66 //methods to manipulate atoms
72 tim 88 TFASAtom *BeginAtom(vector<TFASAtom *>::iterator &i);
73 tim 66 TFASAtom *NextAtom(vector<TFASAtom *>::iterator &i);
74     void AddAtom(TFASAtom *atom);
75     void DeleteAtom(TFASAtom *atom);
76    
77     //methods to manipulate bonds
78 tim 88 vector<TFASBond *> GetBonds(bool exterior = false);
79     vector<TFASBond *> GetBondsByType(int bondType);
80    
81 tim 66 };
82    
83     #endif