#include <basepacking.h>
Inheritance diagram for OrientedPacking:
Public Types | |
enum | ORIENT { N, E, S, W, FN, FE, FS, FW, UNDEFINED = -1 } |
Static Public Member Functions | |
ORIENT | toOrient (char *orient) |
char * | toChar (ORIENT orient) |
ORIENT | flip (ORIENT orient) |
Public Attributes | |
vector< ORIENT > | orient |
vector< double > | xloc |
vector< double > | yloc |
vector< double > | width |
vector< double > | height |
|
Definition at line 59 of file basepacking.h. Referenced by BTreeCompactor::BTreeCompactor(), BTreeOrientedPacking::BTreeOrientedPacking(), flip(), NetType::getHPWL(), BTreeCompactor::operator=(), BTreeOrientedPacking::operator=(), BTreeCompactor::slimAssign(), and toOrient().
|
|
Definition at line 214 of file basepacking.h. References E, FE, FN, FS, FW, N, ORIENT, S, UNDEFINED, and W. Referenced by BTreeCompactor::BTreeCompactor(), BTreeCompactor::operator=(), and BTreeCompactor::slimAssign().
00216 { 00217 switch(orient) 00218 { 00219 case N: return FE; 00220 case E: return FN; 00221 case S: return FW; 00222 case W: return FS; 00223 case FN: return E; 00224 case FE: return N; 00225 case FS: return W; 00226 case FW: return S; 00227 case UNDEFINED: return UNDEFINED; 00228 default: 00229 cout << "ERROR: invalid orientation: " << orient << endl; 00230 exit(1); 00231 break; 00232 } 00233 } |
|
Definition at line 261 of file basepacking.h. References E, FE, FN, FS, FW, N, S, UNDEFINED, and W.
00262 { 00263 if(orient == N) 00264 return("N"); 00265 if(orient == E) 00266 return("E"); 00267 if(orient == S) 00268 return("S"); 00269 if(orient == W) 00270 return("W"); 00271 if(orient == FN) 00272 return("FN"); 00273 if(orient == FE) 00274 return("FE"); 00275 if(orient == FS) 00276 return("FS"); 00277 if(orient == FW) 00278 return("FW"); 00279 if (orient == UNDEFINED) 00280 return("--"); 00281 00282 cout << "ERROR in converting ORIENT to char* " << endl; 00283 exit(1); 00284 return "--"; 00285 } |
|
Definition at line 235 of file basepacking.h. References E, FE, FN, FS, FW, N, ORIENT, S, UNDEFINED, and W.
00236 { 00237 if(!strcmp(orient, "N")) 00238 return N; 00239 if(!strcmp(orient, "E")) 00240 return E; 00241 if(!strcmp(orient, "S")) 00242 return S; 00243 if(!strcmp(orient, "W")) 00244 return W; 00245 if(!strcmp(orient, "FN")) 00246 return FN; 00247 if(!strcmp(orient, "FE")) 00248 return FE; 00249 if(!strcmp(orient, "FS")) 00250 return FS; 00251 if(!strcmp(orient, "FW")) 00252 return FW; 00253 if (!strcmp(orient, "--")) 00254 return UNDEFINED; 00255 00256 cout << "ERROR: in converting char* to ORIENT" << endl; 00257 exit(1); 00258 return UNDEFINED; 00259 } |
|
Definition at line 53 of file basepacking.h. Referenced by BTreeOrientedPacking::BTreeOrientedPacking(), NetType::getHPWL(), BTreeOrientedPacking::operator=(), OutputPacking(), Read_bbb(), and Save_bbb(). |
|
Definition at line 60 of file basepacking.h. Referenced by BTreeOrientedPacking::BTreeOrientedPacking(), NetType::getHPWL(), BTreeOrientedPacking::operator=(), OutputPacking(), and Read_bbb(). |
|
Definition at line 52 of file basepacking.h. Referenced by BTreeOrientedPacking::BTreeOrientedPacking(), NetType::getHPWL(), BTreeOrientedPacking::operator=(), OutputPacking(), Read_bbb(), and Save_bbb(). |
|
Definition at line 50 of file basepacking.h. Referenced by BTreeOrientedPacking::BTreeOrientedPacking(), NetType::getHPWL(), BTreeOrientedPacking::operator=(), OutputPacking(), Read_bbb(), and Save_bbb(). |
|
Definition at line 51 of file basepacking.h. Referenced by BTreeOrientedPacking::BTreeOrientedPacking(), NetType::getHPWL(), BTreeOrientedPacking::operator=(), OutputPacking(), Read_bbb(), and Save_bbb(). |