00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaInstHeader.h 00004 // 00005 // This file contains the definition for the oaInstHeader class and its public 00006 // supporting classes. The oaInstHeader class implements an object that contains 00007 // information about a particular design master and all of the instances that 00008 // use it. 00009 // 00010 // ***************************************************************************** 00011 // Except as specified in the OpenAccess terms of use of Cadence or Silicon 00012 // Integration Initiative, this material may not be copied, modified, 00013 // re-published, uploaded, executed, or distributed in any way, in any medium, 00014 // in whole or in part, without prior written permission from Cadence. 00015 // 00016 // Copyright 2002-2005 Cadence Design Systems, Inc. 00017 // All Rights Reserved. 00018 // 00019 // $Author: icftcm $ 00020 // $Revision: #1 $ 00021 // $Date: 2010/08/09 $ 00022 // $State: Exp $ 00023 // ***************************************************************************** 00024 // ***************************************************************************** 00025 00026 00027 00028 #if !defined(oaInstHeader_P) 00029 #define oaInstHeader_P 00030 00031 00032 00033 // ***************************************************************************** 00034 // Nested includes 00035 // ***************************************************************************** 00036 #include "oaRefHeader.h" 00037 #include "oaBlock.h" 00038 00039 00040 00041 // ***************************************************************************** 00042 // Declare and define types in the OpenAccess namespace. 00043 // ***************************************************************************** 00044 BEGIN_OA_NAMESPACE 00045 00046 00047 00048 // ***************************************************************************** 00049 // oaInstHeader 00050 // ***************************************************************************** 00051 class OA_DESIGN_DLL_API oaInstHeader : public oaRefHeader { 00052 public: 00053 static oaInstHeader *find(const oaBlock *block, 00054 const oaDesign *master); 00055 static oaInstHeader *find(const oaBlock *block, 00056 const oaScalarName &libName, 00057 const oaScalarName &cellName, 00058 const oaScalarName &viewName); 00059 static void setMaster(oaInstHeader *header, 00060 const oaDesign *master, 00061 const oaParamArray *params = NULL); 00062 00063 void getLibName(oaScalarName &libName) const; 00064 void getCellName(oaScalarName &cellName) const; 00065 void getViewName(oaScalarName &viewName) const; 00066 void getLibName(const oaNameSpace &ns, 00067 oaString &libName) const; 00068 void getCellName(const oaNameSpace &ns, 00069 oaString &cellName) const; 00070 void getViewName(const oaNameSpace &ns, 00071 oaString &viewName) const; 00072 void getParams(oaParamArray ¶ms) const; 00073 void getAllParams(oaParamArray ¶ms) const; 00074 00075 oaBoolean findParam(const oaString &name, 00076 oaParam ¶m); 00077 00078 void setMasterBBox(const oaBox &bBox); 00079 00080 oaCollection<oaInst, oaInstHeader> getInsts(oaUInt4 filterFlags = oacInstIterNotImplicit) const; 00081 oaCollection<oaInstHeader, oaInstHeader> getSubHeaders() const; 00082 00083 enum {dtIndex = oacInstHeaderDataType}; 00084 }; 00085 00086 00087 00088 // ***************************************************************************** 00089 // Design Traits. 00090 // ***************************************************************************** 00091 template<> 00092 class oaTraits<oaInstHeader> { 00093 public: 00094 typedef oaRefHeader parentType; 00095 typedef oaInstHeaderModTypeEnum modTypeType; 00096 enum {domain = oacBlockDomain}; 00097 enum {dbType = oacDesignDBType}; 00098 enum {isMultiDomain = false}; 00099 enum {dtIndex = oacInstHeaderDataType}; 00100 enum {isConcrete = true}; 00101 enum {objectTypeEnumVal = oacInstHeaderType}; 00102 enum {dataTypeEnumVal = oacInstHeaderDataType}; 00103 }; 00104 00105 00106 00107 END_OA_NAMESPACE 00108 00109 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.