| 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> |
| 29 |
|
class TFASAtom; |
| 30 |
|
class TFASBond; |
| 31 |
|
|
| 32 |
+ |
namespace TResType |
| 33 |
+ |
{ |
| 34 |
+ |
|
| 35 |
+ |
|
| 36 |
+ |
|
| 37 |
+ |
} |
| 38 |
+ |
|
| 39 |
|
class TFASResidue |
| 40 |
|
{ |
| 41 |
|
protected: |
| 44 |
|
vector<TFASAtom *> _atomList; |
| 45 |
|
TFASMolecule *_mol; |
| 46 |
|
TFASModel * _model; |
| 47 |
< |
|
| 47 |
> |
|
| 48 |
> |
void Clear(); |
| 49 |
> |
|
| 50 |
|
public: |
| 51 |
|
TFASResidue(); |
| 52 |
+ |
TFASResidue(const unsigned int index); |
| 53 |
+ |
TFASResidue(const TFASResidue &residue); |
| 54 |
|
~TFASResidue(); |
| 55 |
< |
|
| 56 |
< |
//methods to set residue information |
| 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 |
< |
|
| 63 |
> |
|
| 64 |
|
//methods to get residue information |
| 65 |
< |
unsigned int GetIndex() { return _index;} |
| 66 |
< |
unsigned int GetResid() { return _resid;} |
| 67 |
< |
TFASMolecule *GetMol() { return _mol;} |
| 68 |
< |
TFASModel *GetModel() { return _model;} |
| 69 |
< |
|
| 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 *>::iteratorv &i); |
| 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<TBonds *> GetBonds(bool exterior = , TBondType bondType = ); |
| 79 |
< |
|
| 78 |
> |
vector<TFASBond *> GetBonds(bool exterior = false); |
| 79 |
> |
vector<TFASBond *> GetBondsByType(int bondType); |
| 80 |
> |
|
| 81 |
|
}; |
| 82 |
|
|
| 83 |
|
#endif |