Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Fragment.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *cr                                                                       
00003  *cr            (C) Copyright 1995-2019 The Board of Trustees of the           
00004  *cr                        University of Illinois                       
00005  *cr                         All Rights Reserved                        
00006  *cr                                                                   
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  * RCS INFORMATION:
00011  *
00012  *      $RCSfile: Fragment.h,v $
00013  *      $Author: johns $        $Locker:  $             $State: Exp $
00014  *      $Revision: 1.21 $       $Date: 2020/10/28 15:09:56 $
00015  *
00016  ***************************************************************************
00017  * DESCRIPTION:
00018  * A Fragment contains a list of residues which are connected
00019  * each other, and to no one else.  This is at the residue
00020  * level, and not the atom level.  The residue numbers are the
00021  * unique_resid as assigned in BaseMolecule
00022  *
00023  ***************************************************************************/
00024 #ifndef FRAGMENT_H
00025 #define FRAGMENT_H
00026 
00027 #include "ResizeArray.h"
00028 
00033 class Fragment {
00034 public:
00035   ResizeArray<int> residues;
00036   
00037   Fragment(void) : residues(1) {
00038   }
00039   
00040   int num(void) { return int(residues.num()); }
00041   int operator [](int i) { return residues[i]; }
00042   void append(int i) { residues.append(i); }
00043 };
00044 
00045 #endif
00046 

Generated on Thu Mar 28 02:43:13 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002