00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaOccVectorInst.h 00004 // 00005 // This file contains the definition for the oaOccVectorInst class. This class 00006 // implements an occurrence of a vector instance of a design master. 00007 // 00008 // ***************************************************************************** 00009 // Except as specified in the OpenAccess terms of use of Cadence or Silicon 00010 // Integration Initiative, this material may not be copied, modified, 00011 // re-published, uploaded, executed, or distributed in any way, in any medium, 00012 // in whole or in part, without prior written permission from Cadence. 00013 // 00014 // Copyright 2002-2005 Cadence Design Systems, Inc. 00015 // All Rights Reserved. 00016 // 00017 // $Author: icftcm $ 00018 // $Revision: #1 $ 00019 // $Date: 2010/08/09 $ 00020 // $State: Exp $ 00021 // ***************************************************************************** 00022 // ***************************************************************************** 00023 00024 00025 00026 #if !defined(oaOccVectorInst_P) 00027 #define oaOccVectorInst_P 00028 00029 00030 00031 // ***************************************************************************** 00032 // Nested includes 00033 // ***************************************************************************** 00034 #include "oaVectorInst.h" 00035 #include "oaModVectorInst.h" 00036 #include "oaOccDesignInst.h" 00037 00038 00039 00040 // ***************************************************************************** 00041 // Declare and define types in the OpenAccess namespace. 00042 // ***************************************************************************** 00043 BEGIN_OA_NAMESPACE 00044 00045 00046 00047 // ***************************************************************************** 00048 // oaOccVectorInst 00049 // ***************************************************************************** 00050 class OA_DESIGN_DLL_API oaOccVectorInst : public oaOccDesignInst { 00051 public: 00052 static oaOccVectorInst *find(const oaOccurrence *occurrence, 00053 const oaScalarName &baseName, 00054 oaUInt4 start, 00055 oaUInt4 stop); 00056 00057 oaVectorInst *getInst() const; 00058 oaModVectorInst *getModInst() const; 00059 00060 oaOccVectorInstDef *getDef() const; 00061 oaUInt4 getStart() const; 00062 oaUInt4 getStop() const; 00063 oaOccVectorInstBit *getBit(oaUInt4 bitIndex) const; 00064 00065 using oaOccInst::getName; 00066 void getName(oaVectorName &name) const; 00067 00068 using oaOccInst::getPathName; 00069 void getPathName(oaVectorName &name) const; 00070 }; 00071 00072 00073 00074 // ***************************************************************************** 00075 // Design Traits. 00076 // ***************************************************************************** 00077 template<> 00078 class oaTraits<oaOccVectorInst> { 00079 public: 00080 typedef oaInstModTypeEnum modTypeType; 00081 typedef oaOccDesignInst parentType; 00082 enum {dtIndex = oacInstDataType}; 00083 enum {dataTypeEnumVal = oacInstDataType}; 00084 enum {domain = oacOccDomain}; 00085 enum {isMultiDomain = true}; 00086 enum {dbType = oacDesignDBType}; 00087 enum {isConcrete = true}; 00088 enum {objectTypeEnumVal = oacOccVectorInstType}; 00089 }; 00090 00091 00092 00093 END_OA_NAMESPACE 00094 00095 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.