00001 /*------------------------------------------------------------------- 00002 * Name: legoHB.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 hyperblock region derived class. 00010 * 00011 * Location: /ncsu/tinker/LEGO/src/derived/legoHB.H 00012 -------------------------------------------------------------------- 00013 * 5/28/96 WTG: Initial file creation. 00014 * 3/7/97 WAH: Began work on superblock construction. 00015 * 3/21/97 WAH: Revised work to build off traces. 00016 * 3/25/97 WAH: Ported over superblock stuff. (Above comments) 00017 * 6/11/97 WAH: Added GetOpCount method. 00018 * 3/3/98 WAH: Added include of legoOp.H. 00019 --------------------------------------------------------------------*/ 00020 00021 #ifndef LEGOHB_H 00022 #define LEGOHB_H 00023 00024 #include "legoMap.H" 00025 #include "legoOp.H" 00026 #include "region.H" 00027 00028 //--------------------------------------------------------------------------- 00029 00030 class legoHB : public legoRegion 00031 { 00032 00033 public: 00034 00035 legoHB () : legoRegion(RT_HB,0) {} 00036 legoHB (unsigned rId = 0): legoRegion(RT_HB, rId) {} 00037 legoHB (const legoHB &orig) : legoRegion ((legoRegion) orig) {} 00038 00039 ~legoHB () 00040 { 00041 OpKiller(); 00042 } 00043 int GetOpCount (void) 00044 { 00045 legoOp *op; 00046 int opct = 0, realopct; 00047 00048 realopct = GetCount(); 00049 for (int i = 0; i < realopct; i++) 00050 { 00051 op = (legoOp *) GetItem(i); 00052 if (!(op->IsDummy())) opct++; 00053 } // end for 00054 return opct; 00055 } 00056 00057 void RefreshOps (void); 00058 void RefreshEdges (void); 00059 // void SweepOps (int = 0); 00060 }; 00061 00062 #endif // LEGOHB_H 00063 00064
1.3.2