Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

legoLBdy.H

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------
00002  *   Name:        legoLBdy.H
00003  *
00004  *   Designer:    Willie Glover
00005  *
00006  *   Created:     5/28/96
00007  *
00008  *   Description: This file contains the LEGO header file which
00009  *                defines the base block region derived class.
00010  *
00011  *   Location:    /ncsu/tinker/LEGO/src/derived/legoLBdy.H
00012  --------------------------------------------------------------------
00013  * 5/28/96 WTG: Initial file creation.
00014  * 6/11/97 WAH: Added GetOpCount method.
00015  --------------------------------------------------------------------*/
00016 
00017 #ifndef LEGOLOOPBODY_H
00018 #define LEGOLOOPBODY_H
00019 
00020 #include "region.H"
00021 
00022 //---------------------------------------------------------------------------
00023 
00024 class legoLoopBody : public legoRegion
00025 {
00026 
00027 public:
00028 
00029   legoLoopBody () : legoRegion(RT_LOOPBODY,0) {}
00030   legoLoopBody (unsigned rId = 0) : legoRegion(RT_LOOPBODY,rId) {}
00031   legoLoopBody (const legoLoopBody &orig) : legoRegion ((legoRegion) orig) {}
00032 
00033   ~legoLoopBody ()
00034   {
00035     RegionKiller();
00036   }
00037   int GetOpCount (void)
00038   {
00039     int opct = 0;
00040 
00041     for (int i = 0; i < GetCount(); i++)
00042       opct += ((legoRegion *) GetItem(i))->GetOpCount();
00043     return opct;
00044   }
00045 };
00046 
00047 #endif // LEGOLOOPBODY_H

Generated on Mon Jul 21 20:27:33 2003 for TINKER LEGO DOC by doxygen 1.3.2